10 PowerShell Commands Every Admin Should Know David Price.

32
10 PowerShell Commands Every Admin Should Know David Price

Transcript of 10 PowerShell Commands Every Admin Should Know David Price.

Page 1: 10 PowerShell Commands Every Admin Should Know David Price.

10 PowerShell Commands Every

Admin Should KnowDavid Price

Page 2: 10 PowerShell Commands Every Admin Should Know David Price.
Page 3: 10 PowerShell Commands Every Admin Should Know David Price.
Page 4: 10 PowerShell Commands Every Admin Should Know David Price.
Page 5: 10 PowerShell Commands Every Admin Should Know David 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

Page 6: 10 PowerShell Commands Every Admin Should Know David Price.
Page 7: 10 PowerShell Commands Every Admin Should Know David Price.

Commands = Cmdlets (pronounced command lets)

Page 8: 10 PowerShell Commands Every Admin Should Know David Price.

Get-Help

Page 9: 10 PowerShell Commands Every Admin Should Know David Price.

PS C:\Windows\system32> $MyWorld = "Hello World"PS C:\Windows\system32> $MyWorld | Get-Member

Page 10: 10 PowerShell Commands Every Admin Should Know David Price.
Page 11: 10 PowerShell Commands Every Admin Should Know David Price.

STSADMRIP

Page 12: 10 PowerShell Commands Every Admin Should Know David Price.

Add-PSsnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

Page 13: 10 PowerShell Commands Every Admin Should Know David Price.

SPFarm

SPWebApplication

SPSite

SPWeb

SPList

SPListItem

SPField

Page 14: 10 PowerShell Commands Every Admin Should Know David Price.
Page 15: 10 PowerShell Commands Every Admin Should Know David Price.

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

Page 16: 10 PowerShell Commands Every Admin Should Know David Price.

Get-SPFarm

Page 17: 10 PowerShell Commands Every Admin Should Know David Price.
Page 18: 10 PowerShell Commands Every Admin Should Know David Price.
Page 19: 10 PowerShell Commands Every Admin Should Know David Price.
Page 20: 10 PowerShell Commands Every Admin Should Know David Price.
Page 21: 10 PowerShell Commands Every Admin Should Know David Price.
Page 22: 10 PowerShell Commands Every Admin Should Know David Price.
Page 23: 10 PowerShell Commands Every Admin Should Know David Price.
Page 24: 10 PowerShell Commands Every Admin Should Know David Price.
Page 25: 10 PowerShell Commands Every Admin Should Know David Price.
Page 26: 10 PowerShell Commands Every Admin Should Know David Price.
Page 27: 10 PowerShell Commands Every Admin Should Know David Price.
Page 28: 10 PowerShell Commands Every Admin Should Know David Price.
Page 29: 10 PowerShell Commands Every Admin Should Know David Price.
Page 30: 10 PowerShell Commands Every Admin Should Know David Price.

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

Page 31: 10 PowerShell Commands Every Admin Should Know David Price.

Usergroup contacts:• @SharePointUtah• www.facebook.com/UtahSharePointUsersGroup• www.UTSharePoint.com

Page 32: 10 PowerShell Commands Every Admin Should Know David Price.

Please join us for SharePint!

SharePint will be held at Red Rock Brewing, 254 South 200 West, Salt Lake City, following the prize raffle