I am trying to script User Mapping for different Login accounts. I have scripted the creation of users and individual server roles, but I can't figure out how to set User Mapping with Powershell, I will also need to set the Database Role membership
, in Particular, db_backupoperator
Anyone know how to do this with Powershell?
dbUserName
as the User, I want thelogin
which in my case is a group to be the User...I will add the code in for what I have. – Nolitta