Upload
jasmine-doyle
View
230
Download
1
Embed Size (px)
Citation preview
10 PowerShell Commands Every
Admin Should KnowDavid Price
Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework.http://en.wikipedia.org/wiki/Windows_PowerShell
Commands = Cmdlets (pronounced command lets)
Get-Help
PS C:\Windows\system32> $MyWorld = "Hello World"PS C:\Windows\system32> $MyWorld | Get-Member
STSADMRIP
Add-PSsnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
SPFarm
SPWebApplication
SPSite
SPWeb
SPList
SPListItem
SPField
1. Check SharePoint version2. Change the SharePoint Logo3. Create a new Site Collection4. Change the URL of the new Site Collection5. Give Domain Admins full control of the new site6. Move the new site collection to a new content
database7. Install and enable a new farm solution8. Look up an error message9. Change the location of the log files10. Backup the new site collection
Get-SPFarm
PowerShell Resources
• Windows PowerShell for SharePoint 2013 reference• https://technet.microsoft.com/en-us/library/ee890108.aspx
• Stsadm to Windows PowerShell mapping in SharePoint 2013• https://technet.microsoft.com/en-us/library/ff621084.aspx
• SharePoint 2013 Site Template ID List• http://
absolute-sharepoint.com/2013/06/sharepoint-2013-site-template-id-list-for-powershell.html
• How to enable Remote PowerShell for SharePoint 2013 for Non-Administrators• http://
blogs.technet.com/b/anneste/archive/2014/09/17/how-to-enable-remote-powershell-for-sharepoint-2013-for-non-administrators.aspx
• Windows PowerShell for SharePoint Online• https://technet.microsoft.com/en-us/library/fp161362.aspx
Usergroup contacts:• @SharePointUtah• www.facebook.com/UtahSharePointUsersGroup• www.UTSharePoint.com
Please join us for SharePint!
SharePint will be held at Red Rock Brewing, 254 South 200 West, Salt Lake City, following the prize raffle