Thank you very much, It worked like a charm here! Now I im looking for a script to install in silent mode, without any interaction, do you have ever know?
hello, i delete all the mysql files and reinstalled it. while im reinstalling it is asking for current password. but i forgot the password. so how can i resolve it
brother i faced the same issue now i resolved it first go to file manager and goto c drive and program files and delete MySQL folder completely and then go to c drive program data and delete the MySQL folder once again completely and after that you can uninstall the mysql and every mysql applications and then reinstall mysql by usually how we do it
Thank you so much for your support! Please don't forget to subscribe and share with others. Your appreciation really motivates me to create more valuable content!
Excuse me, sir. Two years ago, I downloaded MySQL, but I have forgotten the current password. I have uninstalled and reinstalled it several times, but it keeps asking for the current password. I watched your video, and the first step you mentioned was to stop the service, but I cannot find the MySQL service option on my system....please give me one solution sir
C:\Program Files\MySQL\MySQL Server 8.0\bin>mysql.exe -uroot -p Enter password: ***** ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Very helpful, thank you! I've been looking for days for anyone actually walking us through how to do this but no one else does. Glad I finally found your channel!
# Import the Active Directory module Import-Module ActiveDirectory # Specify the path to the CSV file containing user information $csvFilePath = "C:\Path\To\Your\Users.csv" # Specify the path for the output CSV file $outputCsvFilePath = "C:\Path\To\Your\Output.csv" # Read user information from the CSV file $userData = Import-Csv $csvFilePath # Initialize an array to store output data $outputData = @() # Function to set account expiration date for AD user and return the result function Set-ADUserExpiryDate { param ( [string]$username, [int]$daysToAdd ) $user = Get-ADUser -Identity $username if ($user) { $expiryDate = (Get-Date).AddDays($daysToAdd) Set-ADAccountExpiration -Identity $username -DateTime $expiryDate # Prepare the output object $outputObject = [PSCustomObject]@{ Username = $username ExpiryDate = $expiryDate Status = "Success" } } else { # Prepare the output object for a user not found case $outputObject = [PSCustomObject]@{ Username = $username ExpiryDate = $null Status = "User not found" } } # Return the output object return $outputObject } # Loop through each user in the CSV and set the expiration date foreach ($user in $userData) { $result = Set-ADUserExpiryDate -username $user.Username -daysToAdd 2 $outputData += $result } # Export the output data to a CSV file $outputData | Export-Csv -Path $outputCsvFilePath -NoTypeInformation Write-Host "The operation is complete. Results saved to $outputCsvFilePath"
@@InfoAlias Great! I couldn't get mine to work - I can only get the output to show on the console. This one works - it does give an error message for the names it cannot find, but as long as it feeds the names into the csv file, I am happy. Nice one!
I get "C:\Program Files\MySQL\MySQL Server 8.0\bin>mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server 8.0\my.ini" --init-file="C:\ eset.txt mysqld: [ERROR] Failed to open required defaults file: C:\Program Files\MySQL\MySQL Server 8.0\my.ini mysqld: [ERROR] Fatal error in defaults handling. Program aborted!" I don`t have my.ini file in mySQL Server 8.0 folder what is it for and is it important ? Should i just cut the command to mySQL Server 8.0 and be done ?
Thank you for this! This saved me when I was exporting group and member lists from a company with over 1000 employees. Do you know how to add displayName and mail to this script? I tried adding "$memberList = Get-ADGroupMember -Identity $group.Name | Select-Object SamAccountName, displayName, mail" and $output = """$($group.Name)"",""$($member.SamAccountName)"",""$($member.displayName)"",""$($member.mail)""" but no luck, is there something I am missing?
This is very important in the process of converting physical to virtual. If you don't select it, you will only get files from the live volume instead of the shadow copy.