I’ve been working with quite a few PowerShell/SMO scripts for the last little while, and so far so good. Just recently I needed to map some orphaned users, and I thought – why not? Let’s do it in PowerShell.
This would have been the script that *should* work:
#unfortunately this doesn't work $user.Login = "marymargaret"; $user.Alter(); $user.Refresh(); |
No Comments
Filed under:
musings