#LL #Blog
The #Blog# starts from here
Pages
(Move to ...)
Home
▼
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
‹
›
Home
View web version
No comments:
Post a Comment