What's New Here?Subscribe to RSS feed
#PSTip Detecting if the console is in Interactive mode
So, in your scripts you want to gather information from the user who runs it and you use the Read-Host cmdlet. This of course works most of time but there…
Measuring PowerShell scripts
Earlier this year, Microsoft released the Windows PowerShell 3.0 SDK Sample Pack which includes a lot of code samples that show how to build applications based on Windows PowerShell 3.0….
#PSTip Verify if a SQL database is mirrored or not
Note: This tip requires PowerShell 2.0 or above. When using SQL SMO to work with mirroring configuration, it is essential to verify if the database is mirrored, or not, before…
#PSTip Working with the Windows.Forms.Screen Class
When working with Windows PowerShell it can be important to know the screen configuration and resolution of the current computer monitors. The System.Windows.Forms.Screen class provides this information for every monitor attached…
#PSTip ValidatePattern – Friendlier error messages
Note: This tip requires PowerShell 2.0 or above. PowerShell has a very nice list of built-in parameter validation attributes. They help validating parameter values before any code runs and give…
PowerShell Summit 2013 session recordings
Haven’t had the chance to attend the PowerShell Summit? You can now watch the recordings on YouTube thanks to Aaron Hoover, one of the great PowerShell enthusiasts who attended this successful…
#PSTip Validate your custom objects
Note: This tip requires PowerShell 3.0 or above. In PowerShell 3.0 validation attributes work for regular variables in the same way they worked previously for parameters. They give us many…
#PSTip List all AD attributes currently in use for AD users
This question was asked on the forums recently, is it possible to list all the Active Directory attributes that are currently in use for Active Directory users. It turns out this…

