The Truth About WinRM

by Aug 26, 2016

PowerShell 3+

The popular winrm command to manage and configure PowerShell Remoting is really just a batch and a VBS file:

 
PS> Get-Command winrm -All | ft -AutoSize

CommandType Name      Version Source                       
----------- ----      ------- ------                       
Application winrm.cmd 0.0.0.0 C:\WINDOWS\system32\winrm.cmd
Application winrm.vbs 0.0.0.0 C:\WINDOWS\system32\winrm.vbs
 

Here is a way how you can examine its internals:

#requires -Version 3
Get-Command winrm -All |
  ForEach-Object {
    notepad $_.Source
  }

This will open both files in Notepad.

Twitter This Tip! ReTweet this Tip!