Script: Test TCP port

The are many ways to test to see if a TCP port is open on another server. Some people use Telnet and some use Powershell cmdlets.   Telnet Pros: Legacy application and will work on older version of windows. Telnet Cons: Telnet is not installed by default, and you must enable this feature. When you get a connection, most of the times you must close the prompt and start a…

Read More

Issue: Windows Backup error 517

So we had an issue when half of our Domain Controllers in an environment failed with the Windows Backup (System State). All servers were installed the same way. The backup location is a dedicated disk on the server. The Backups was working when it was setup and the suddenly started to fail. Even if you try to manually backup. In the Backup Console we see that the backups failed due…

Read More

Tip of the Week: $?

Never been fond of using Try and Catch. Don´t like it´s not recommended to use in scripts. Powershell has a built in variable (boolean) that holds if the last command did execute or not ($?). So inPowershell we test executing something that will nor work. and then check $? to see what happens. asdfasdf $? We see that it returned False, eg the last command did not execute. And if…

Read More