I'm having problems running a powershell script. The script is short. It asks for my AD credentials and then checks when my password will expire.
I've installed a new Windows 10 machine and it's not running despite having downloaded PS 5.1 and the RSAT for Windows 10. I've done the usual enabling of script running, but despite having downloaded the RSAT (for 64-bit Windows) I get the error message:
"Get-ADUser : The term 'Get-ADUser' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."
I recall seeing this before when I haven't downloaded the RSAT module, but I've tried now to do this combo also on some Windows 7 images I run in VMWare Workstation. Is there perhaps something about the PS 5.1 that is causing issues? Something in a path? I don't recall having run into this before, but I only recall having downloaded PS 5.0 before.