List/Grid Tag Archives: NET
#PSTip Enumerate Time Zones that support day light savings
I was recently working on WPF based UI for one of my PowerShell modules and in the process, I had to figure out a way to find out if a…
#PSTip Validate if proxy credentials are required
I write scripts that include downloading content from the Internet. Now, I want these scripts to work even when I am behind a proxy server. There is a simple way…
#PSTip Retrieve a redirected URL – PowerShell 3.0 way!
Note: This tip requires PowerShell 3.0 or above. In an earlier tip, we looked at how we can retrieve the redirected URL using a .NET class. In today’s tip, we…
#PSTip Retrieve a redirected URL
When you look at online documentation for resources and downloadable content, you will often find URLs that redirect you to another place. Most of the web masters prefer this way…
#PSTip Validate if a folder exists
There are multiple ways to verify if a folder exists or not in PowerShell. The below two are my favorite ways of doing it. 1. Using the System.IO.Directory .NET namespace…
#PSTip Resolving an IP Address to host name and vice versa using .NET
Note: This tip requires PowerShell 1.0 or above. In an earlier tip, we showed you how to resolve IP addresses using WMI. In PowerShell, there is always more than one…
