powershellmagazine.com
#PSTip Validate if a SQL login exists using PowerShell
Note: This tip requires PowerShell 3.0 or above. Before performing tasks like adding roles to a SQL login, it is desired to validate the existence of SQL login. This can be done using the Server SM…