Created
November 26, 2025 19:22
-
-
Save SweetAsNZ/ab53b9006b312efbf1d769bebc8ed502 to your computer and use it in GitHub Desktop.
Retrieves the current WinRM configuration settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Get-WinRMConfig { | |
| <# | |
| .SYNOPSIS | |
| Retrieves the current WinRM configuration settings. | |
| .DESCRIPTION | |
| This function fetches and displays the current Windows Remote Management (WinRM) configuration settings, including client settings, authentication methods, and listener configurations. | |
| .EXAMPLE | |
| Get-WinRMConfig | |
| This command retrieves and displays the current WinRM configuration settings. | |
| .NOTES | |
| Author: Tim West | |
| Company: Air New Zealand | |
| Created: 25/11/25 | |
| Status: Production | |
| Version: 1.0 | |
| #> | |
| winrm get winrm/config/client | |
| winrm enumerate winrm/config/client/auth | |
| Write-Warning "This command needs to be Run As Administrator:" | |
| winrm enumerate winrm/config/listener | |
| # Client auth | |
| Get-Item WSMan:\localhost\Client\Auth | Format-List * | |
| # Service auth | |
| Get-Item WSMan:\localhost\Service\Auth | Format-List * | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment