Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

start powershell as different user

$user = "domainservice.account" 
$pwd1 = "big long huge string of characters"
$pwd = ($pwd1 | ConvertTo-SecureString)
$Credential = New-Object System.Management.Automation.PSCredential $user, $pwd
$args = "domain.locallocationlocationlocationScriptscript.ps1"
Start-Process powershell.exe -Credential $Credential -ArgumentList ("-file $args")
Comment

start powershell as different user

start powershell -credential ""
Comment

PREVIOUS NEXT
Code Example
Shell :: conda install tokenizers 
Shell :: mongodb did not start 
Shell :: bash print output to one line 
Shell :: install raylib osx 
Shell :: arch linux charcode logo 
Shell :: use latex in github readme 
Shell :: how to get deployment token from firebase 
Shell :: install tomcat on mac brew 
Shell :: bash get last field in line 
Shell :: npm uninstall package 
Shell :: kill process linux 
Shell :: bash cut delimiter last field 
Shell :: brew install xcode 
Shell :: git language 
Shell :: rsync only updated files 
Shell :: how to branch from a branch in git 
Shell :: # /bin/bash for launching ec2 
Shell :: find change permissions to subdirectories 
Shell :: macos make file executable 
Shell :: npm install webpack 
Shell :: push an existing repository 
Shell :: service redis restart 
Shell :: delete commit 
Shell :: generate crt and key openssl 
Shell :: how to find all the dir in current working directory in linux 
Shell :: wsl 
Shell :: ubuntu folder size 
Shell :: root folders via gui ubuntu 
Shell :: fix kde root themes 
Shell :: linux change permission 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =