Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

cannot run the script

$
0
0

Unlock-ADAccount | Set-ADAccountPassword -Identity -PassThru -NewPassword (ConvertTo-SecureString -AsPlainText "123456" -force)

when i copy it into powershell it works like a charm... but i wanted it to prompt me for password. and then promt me for the username i want to reset.

i have my MMC for the GUI users and computers interface, the shortcut is like this,

C:\WINDOWS\system32\runas.exe /user:administration\%username%adm "mmc.exe \\servername\Tools\Admin\Administration.msc"


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>