Partilhar via


SPCmdlet.RequireUserFarmAdmin Method

Specifies whether a cmdlet needs farm-level administrator privileges in order to execute.

Namespace:  Microsoft.SharePoint.PowerShell
Assembly:  Microsoft.SharePoint.PowerShell (in Microsoft.SharePoint.PowerShell.dll)

Syntax

'Declaration
Protected Overridable Function RequireUserFarmAdmin As Boolean
'Usage
Dim returnValue As Boolean

returnValue = Me.RequireUserFarmAdmin()
protected virtual bool RequireUserFarmAdmin()

Return Value

Type: System.Boolean
Returns Booleantrue if the cmdlet requires farm-level administrator privileges to execute. The default is false.

See Also

Reference

SPCmdlet Class

SPCmdlet Members

Microsoft.SharePoint.PowerShell Namespace