This repository has been archived by the owner on Mar 11, 2020. It is now read-only.
SharePoint 101 B. PowerShell A SharePoint Admin's Best Friend
Philippe Lavoie edited this page Mar 11, 2020
·
1 revision
PowerShell helps you automate your deployment and monitoring processes.
- Windows PowerShell
- Basic PowerShell profile
- Activate Developer Dashboard (caveat AJAX requests)
- PowerShell's standard conventions
- PowerGUI / PowerShell ISE for development
References:
- Location of the SharePoint PowerShell profile
- Granting SharePoint PowerShell Admin Permissions
Add-SPShellAdmin -UserName domain\user -Database (Get-SPContentDatabase -WebApplication http://webappurl)
-
Set-ExecutionPolicy
(about_Execution_Policy)
- Exercises:
- Create a new site collection using a specific template
- List all sites in the farm
References:
- Technet: Use Windows PowerShell to administer SharePoint 2013
- Technet: Index of all SharePoint 2013 cmdlets - Alternate index
- Windows PowerShell for SharePoint 2013 learning roadmap
- Tokenize your PowerShell scripts to make them portable across environments
- Use AutoSPInstaller to setup new SharePoint environments automatically
- Install Gary Lapointe's cmdlets because they are awesome and he is the man