SPCmdletAttribute.RequireUserMachineAdmin Property
Gets or sets a Boolean value specifying whether the cmdlet requires that a user have administrative privileges on the computer on which the cmdlet is invoked.
Namespace: Microsoft.SharePoint.PowerShell
Assembly: Microsoft.SharePoint.PowerShell (in Microsoft.SharePoint.PowerShell.dll)
Syntax
'Declaration
Public Property RequireUserMachineAdmin As Boolean
Get
Set
'Usage
Dim instance As SPCmdletAttribute
Dim value As Boolean
value = instance.RequireUserMachineAdmin
instance.RequireUserMachineAdmin = value
public bool RequireUserMachineAdmin { get; set; }
Property Value
Type: System.Boolean
Returns Booleantrue if the user must be an administrator to invoke the cmdlet.
Remarks
Defining this property has the same effect as invoking RequireUserMachineAdmin() on SPCmdlet.