I'm trying to use Unlock-ADAccount in a powershell script running on a Windows Server 2012 R2 box. This is what I get:
PS C:\> unlock-adaccount unlock-adaccount : The term 'unlock-adaccount' 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. At line:1 char:1
I did find a SpiceWorks thread that says RSAT needs to be installed, but its for Windows 10. Can I even install RSAT on Server 2012 R2, and would that fix the missing cmdlet?