October 24, 2011

Subscribe

Drop Users & Logins from Sql Server with Powershell

by Scott Newman

With our trust being severed, we now have a bunch of windows logins that need to be removed from the untrusted domain. This script will iterate through all the databases and drop all the users specified in the array, then drop the login from the server. Use at your own risk!