Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (20 sloc) 977 Bytes
title updated subtitle tags
WinRM
2018-11-30 18:25:28 UTC
Checking WinRM
notes, winrm, windows

Checks WinRM service is listening

Port 5985 is default, 5986 for https

curl \
  http://192.168.0.10:5985/wsman \
  --header "Content-Type: application/soap+xml;charset=UTF-8" \
  --data '<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsmid="http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd"><s:Header/><s:Body><wsmid:Identify/></s:Body></s:Envelope>'

# basic auth
--basic -u user:password

Oneliner for copy and paste

curl http://192.168.0.10:5985/wsman --header "Content-Type: application/soap+xml;charset=UTF-8" --data '<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsmid="http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd"><s:Header/><s:Body><wsmid:Identify/></s:Body></s:Envelope>'
You can’t perform that action at this time.