O'Reilly logo

Beginning PowerShell for SharePoint 2016: A Guide for Administrators, Developers, and DevOps Engineers, Second Edition by John Edward Naguib, Nikolas Charlebois-Laprade

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix: Common Cmdlets

This appendix gives a brief overview of the various PowerShell cmdlets we covered in this book and some other useful cmdlets, along with examples of how to use them.

Set-SPServer

Sets the role in the SharePoint 2016 farm:

Set-SPServer -Identity <server name> -Role <server role>

Get-SPFarmConfig

Returns a global property or a collection of global properties for the local farm:

Get-SPFarmConfig [-AssignmentCollection <SPAssignmentCollection>] [-ServiceConnectionPoint <SwitchParameter>]

Set-SPPassPhrase

Sets the passphrase to a new value:

Set-SPPassPhrase -ConfirmPassPhrase <SecureString> -PassPhrase <SecureString> [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required