Posted On March 29, 2019

Run Windows Commands Remotely

kimconnect 0 comments
blog.KimConnect.com >> Windows >> Run Windows Commands Remotely

# RPC 
WMIC /node:SERVER1 process call create ‘powershell.exe’

# WinRM 
winrs -r:SERVER1 powershell.exe

# Systernals 
psexec //SERVER1 powershell.exe

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Get Connected Port by Process Name

# getProcessConnectionPort.ps1 $computerlist=@' SQL1 SQL2 '@ $computernames=@($computerList -split "`n")|%{$_.Trim()} $processname='sqlservr' $state='Established' $results=@() foreach ($computername in…

Proposal: Network Optimization (Simplified)

Kim ConnectNetwork Optimization Proposal June 23, 2017 Overview 1.    Project Background and Description We are…

Set up centralized logging on Windows Server

Server: # winrm qc If this computer has VMWare workstation installed, it's "public network" needs…