My random rumblings

Something of everything and nothing at all

Windows Time

The time of a Windows computer can be updated from time servers on the Internet as follow:

w32tm /config /manualpeerlist:"0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org" /syncfromflags:manual /reliable:yes /update

Update blogengine.net password

The password of the blogengine.net application's password can be found in the users.xml file.

The following PowerShell script can be used to generate a new password.


$password = "The new password"

$passwordBytes = [System.Text.Encoding]::UTF8.GetBytes($password)

$sha256 = New-Object System.Security.Cryptography.SHA256Managed

$sha256.TransformFinalBlock($passwordBytes, 0, $passwordBytes.Length)

$passwordHash = [System.Convert]::ToBase64String($sha256.Hash)

$passwordHash