#LL #Blog
The #Blog# starts from here
Thursday, April 19, 2018
PowerShell RunAs
To execute PowerShell to Run As a different credential:
>
$cred
=
Get-Credential
>
Start-Process
powershell.exe
-Credential
$cred
-NoNewWindow -ArgumentList
"-noprofile -command &{
Start-Process
-FilePath
C:\blah\prog.exe}"
No comments:
Post a Comment
Newer Post
Older Post
Home
No comments:
Post a Comment