< Back

Start-ImpersonateUser

Mon Jan 13, 2020 5:30 am

NAME Start-ImpersonateUser



SYNTAX

Start-ImpersonateUser [-ScriptBlock] <scriptblock> [-Username] <string> [[-ComputerName] <string>] [[-Credential]

<pscredential>] [<CommonParameters>]





PARAMETERS

-ComputerName <string>



Required? false

Position? 2

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-Credential <pscredential>



Required? false

Position? 3

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-ScriptBlock <scriptblock>

Scriptblock to be ran



Required? true

Position? 0

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-Username <string>

User to impersonate



Required? true

Position? 1

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).





INPUTS

None





OUTPUTS

System.Object



ALIASES

None





REMARKS

None