Download presentation
Presentation is loading. Please wait.
Published byDarlene Jackson Modified over 9 years ago
1
©2012 Microsoft Corporation. All rights reserved.
5
http://www.harbar.net/archive/2010/05/03/adding-sharepoint-2010-poweshell-cmdlets-to-your-powershell-ise.aspx
6
©2012 Microsoft Corporation. All rights reserved. 6
10
http://www.microsoft.com/resources/TechNet/en-us/Office/media/WindowsPowerShell/WindowsPowerShellCommandBuilder.html
11
©2012 Microsoft Corporation. All rights reserved. 11
12
©2012 Microsoft Corporation. All rights reserved.
20
CommandDescription New-SPManagedAccountRegisters a new managed account New-SPWebApplicationCreates a new web application New-SPContentDatabaseCreates a new content database for a web application New-SPManagedPathCreates a managed path New-SPSiteCreates a new site collection New-SPWebCreates a new web within a site collection
21
©2012 Microsoft Corporation. All rights reserved. 21
22
©2012 Microsoft Corporation. All rights reserved.
24
PS C:\> Add-SPShellAdmin –UserName “contoso\annew”
25
©2012 Microsoft Corporation. All rights reserved. 25 Get-SPContentDatabase "WSS_Content_Intranet" | Add-SPShellAdmin -UserName "contoso\annew"
26
©2012 Microsoft Corporation. All rights reserved. Farm componentMember of Administrators group on the local computer Member of Farm Administrators SharePoint group Full Control on backup folder FarmYesNoYes Service applicationYesNoYes Content databaseYesNoYes Site collectionNoYes Site, list, document library YesNoYes
27
©2012 Microsoft Corporation. All rights reserved. 27
28
©2012 Microsoft Corporation. All rights reserved.
29
29
30
©2012 Microsoft Corporation. All rights reserved. Cmdlet NameExample Get-SPServiceInstance $svc = (Get-SPServiceInstance | ? {$_.TypeName -eq "Managed Metadata Web Service"}) Start-SPServiceInstance if ($svc.Status –eq "Disabled") { $svc | Start-SPServiceInstance } while($svc.Status -ne "Online") { Write-Host "Waiting to provision"; sleep 5; } New-SP*ServiceApplication PS C:\> Get-Command New-SP*ServiceApplication New-SP*ServiceApplicationProxy PS C:\> Get-Command New-SP*ServiceApplicationProxy New-SPServiceApplicationProxyGroup Add-SPServiceApplicationProxyGroupMember New-SPServiceApplicationProxyGroup "Demo" $mms = Get-SPServiceApplicationProxy | ?{$_.TypeName -eq "Managed Metadata Service Connection"} Add-SPServiceApplicationProxyGroupMember -Identity "Demo" - Member $mms
31
©2012 Microsoft Corporation. All rights reserved. Cmdlet NameDescription Backup-SPConfigurationDatabase Backup-SPFarm Backup-SPSite Backup a farm, site collection or just the configuration database. Restore-SPFarm Restore-SPSite Restores a farm or site collection. Test-SPContentDatabase Tests a content database for issues such as orphaned sites, schema issues, etc. Add-SPSolution Install-SPSolution Uninstall-SPSolution Remove-SPSolution Update-SPSolution Cmdlets equivalent to the STSADM addsolution, deploysolution, retractsolution, deletesolution, and updatesolution. Disable-SPFeature Enable-SPFeature Deactivates and activates SharePoint Features. Start-SPTimerJob Starts a timer job. Get-SPLogEvent Returns information about events. Can also accept a correlation ID. The following example returns back all critical events: Get-SPLogEvent -MinimumLevel Critical | select Category, Message | ft -Wrap -AutoSize New-SPLogFile Ends the current log file and creates a new one. Useful for debugging issues.
32
©2012 Microsoft Corporation. All rights reserved.
36
36
37
©2012 Microsoft Corporation. All rights reserved.
39
Connect-SPOService –Url https://apps2013demo-admin.sharepoint.comhttps://apps2013demo-admin.sharepoint.com –credential administrator@apps2013demo.onmicrosoft.com
40
©2012 Microsoft Corporation. All rights reserved.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.