Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

admin passwort powershell script

$User = "Username"
$Password = "Password" | ConvertTo-SecureString -asPlainText -Force
$MyCredential = New-Object System.Management.Automation.PSCredential($User,$Password)
 
Start-Process -WindowStyle Hidden powershell.exe -Credential $MyCredential -ArgumentList '-noprofile -command &{Start c:programprogram.exe -Verb RunAs}'
 
PREVIOUS NEXT
Tagged: #admin #passwort #powershell #script
ADD COMMENT
Topic
Name
9+9 =