Using a jump server to connect from your computer to different servers in your network makes it quite uncomfortable to change your password in a Windows Server 2012 environment.

Pressing Ctrl + Alt + End (instead of Delete) opens Windows Security on the jump server and not on the server you are remoting on using the jump server.

There is an easy solution, though: create a new .vbs file on the remote computer i.e. “WindowsSecurity.vbs” and add the following code:

1 2 Set objShell = CreateObject("Shell.Application") objShell.WindowsSecurity

Now all you have to do is just double click the file and Windows Security pops up which allows you to change your password.

Creating a ZIP Archive with PowerShell Version <5.0

The PowerShell command “Compress-Archive” comes pretty handy when it comes to creating a .zip file/archive. Sadly it only available since PowerShell version 5.0. which comes with Windows 10 (can be installed on Windows 8.1 and Windows Server 2012 R2 as well, though).
No worries, there is a solution as well which works with Powershell <5.0. The following function requires the output filename e.g. "C:\temp\MyOutputArchive.zip" and the full path of the directory to be archived eg. "C:\temp\ToBeArchived\".

Converting an IPv4 IP Address into a HEX String

The following function converts a given IPv4 IP address into an eight char hex string. Two hex chars in a row presenting eight bits of the IP address.

The idea behind it was to write a nice PowerShell function and to make the IP addresses easily sortable in a database.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 function ipv4ToHexString($ipv4){ # Validation$valid = $true$ipv4.split(".") | foreach { if([int]$_ -ge 0 -and [int]$_ -le 255) { } else { $valid =$false } }   if($valid -eq$true){   # Conversion $hexString = ""$hexList = @("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f") $ipv4.split(".") | foreach {$mod = [int]$_ % 16$first = $hexList[(([int]$_ - $mod) / 16)]$second = $hexList[$mod] $hexString +=$first+$second } return$hexString } else{ return \$false } }