Horje
windows execute powershell script define user Code Example
windows execute powershell script define user
$username = "DOMAIN\User"
$password = "Password"
$secstr = New-Object -TypeName System.Security.SecureString
$password.ToCharArray() | ForEach-Object {$secstr.AppendChar($_)}
$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $username, $secstr
Invoke-Command -FilePath "C:\Script\To\Execute.ps1" -Credential $cred -Computer localhost




Shell

Related
plank dock Code Example plank dock Code Example
sed remove until first occurrence Code Example sed remove until first occurrence Code Example
conda install flask-cors Code Example conda install flask-cors Code Example
error Cannot find module 'metro-config' Code Example error Cannot find module 'metro-config' Code Example
bat cd to directory Code Example bat cd to directory Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10