Hey i'm fairly new to PowerShell but understand basic commands and outputs. I've gone through previous posts to no avail.
I basically need to run a script that will reset the local admin password each month which i will automate once i have the script. I have gone so far to be able to configure a date with the name of the computer and generate a random password so that if i run it for this month and then again next month the password has been set and the date for that password has been changed. What i need to do is take the pre generated password output and set it as the password for the local admin account. Anyone have any ideas on how i can go about this?
Powershell
# Get the current year and month + local computer name as the text to hash.$date=get-date$hashtext=$date.ToString("yyyyMM")+$env:computername# Calculate the MD5 hash -...