Windows Server 2008: PowerShell Change Local Administrator Password 2015 01

Here is the full article:

First we will find the local computer name:

Now we use the ADSI type accelerator:

// we can do also this:

That value is the number of seconds since the password was changed on this computer.
We can see this value in days with:

Now, to make password change all I have to do is to call SetPassword Method and specify the password in the parenthesis:

So I hit enter and the password has now been changed.

Good Links:
Here is Microsoft explanation of ADSI WinNT Provider:

Windows Server 2008 PowerShell 2 Ten Tasks, by Jeffery Hicks (03:01-05:51):