Last active
June 11, 2018 20:39
-
-
Save vaderj/14997dbe9642deb3f0430eca181d46bd to your computer and use it in GitHub Desktop.
PowerShell - Open prompt as Admin user who has access, set URL var, run command #PowerShell #SharePoint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$url = "." | |
new-spuser -UserAlias 'domain\userName' -web $url -SiteCollectionAdmin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment