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: Install Apps On List of Computers

[string[]]$computers=@( 'SERVER01', 'SERVER02', 'SERVER03' ) [string]$chocoAppName='notepad2' [version]$minVersion='4.2.25.20160422' $results=[hashtable]@{} foreach ($computer in $computers){ $result=invoke-command -computer $computer…

How to Fix Duplicate Computer Account Names Issue in Active Directory

Automatic cleanup: # disableDuplicateComputers.ps1 # Version 0.0.1 $defaultPasswordPeriod=30 $disabledComputersReport='c:\disabledComputersReport.csv' function disableDuplicateComputers{ param( $lastLogonDaysExceeding=30, $disabledComputersReport='c:\disabledComputersReport.csv' )…

How To Use NXLog On A Windows Client

Step 1: Setup Server - Install a log aggregation server is out of scope of…