Advertisement
nt_authority_system

psExec -i -s powershell.ps1

Jul 13th, 2019
123
0
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'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement