#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.
Read MoreSo, in your scripts you want to gather information from the user who runs it and you use the Read-Host cmdlet.
Read MoreNote: 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 performing any other operations.
Read MoreWhen working with Windows PowerShell it can be important to know the screen configuration and resolution of the current computer monitors.
Read MoreNote: 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 end-user consistent pre-configured error messages:
Read MoreNote: 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.
Read MoreThis 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.
Read More