posts

Changing Current Time Zone

In a previous tip you learned how PowerShell can list all available time zone IDs. Today, we show you how to set the time zone using the utility...

Get Time Zone Info

There is a little known utility called tzutil.exe which can both set the current time zone and get all available time zones. Today, let's check...

Analyzing PowerShell Errors

PowerShell logs all errors in $error variable (unless the cmdlet uses -ErrorAction Ignore). $error contains the error records which in turn contain...

Waiting for Service State

Most high-level cmdlets dealing with services have built-in code to wait for state changes. So when you run Restart-Service to restart a service,...

1 68 69 70 71 72 80