SHARE
TWEET

psExec -i -s powershell.ps1

nt_authority_system Jul 13th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <#
  2.     DDL: https://download.sysinternals.com/files/PSTools.zip
  3.     O/P: https://imgur.com/8pa5woS
  4.  
  5.     Syntax: psexec [\\computer[,computer2[,...] | @file\]][-u user [-p psswd][-n s][-r servicename][-h][-l][-s|-e][-x][-i [session]][-c executable [-f|-v]][-w directory][-d][-<priority>][-a n,n,...] cmd [arguments]
  6.  
  7.     Args:
  8.         -i - Run the program so that it interacts with the desktop of the specified session on the remote system. If no         session is specified the process runs in the console session.
  9.  
  10.         -s - Run the remote process in the System account.
  11. #>
  12.  
  13. #Draft
  14. start-process -filePath .\PsExec.exe -verb runAs -arguemntList '-i -s powershell'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top