sqldbawithabeard.com
Creating a Windows User and adding to a SQL Server Role with PowerShell
Another post in the PowerShell Box of Tricks series. In a previous post Checking SQL Server User Role Membership we showed how to check which roles users were added to. This function allows you to …