Skip to content
Permalink
Browse files

Add wimrm notes

  • Loading branch information
KyleOndy committed Nov 15, 2019
1 parent 397170b commit b332cd4e56868198ddfd70ffdc52d4e35db12ec3
Showing with 26 additions and 0 deletions.
  1. +26 −0 provider/notes/winrm.markdown
@@ -0,0 +1,26 @@
---
title: WinRM
updated: 2018-11-30T18:25:28Z
subtitle: Checking WinRM
tags: notes, winrm, windows
---

# Checks WinRM service is listening

Port `5985` is default, `5986` for `https`

~~~{.bash}
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

~~~{.bash}
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>'
~~~

0 comments on commit b332cd4

Please sign in to comment.
You can’t perform that action at this time.