Skip to content

Instantly share code, notes, and snippets.

@SweetAsNZ
Created November 26, 2025 19:22
Show Gist options
  • Select an option

  • Save SweetAsNZ/ab53b9006b312efbf1d769bebc8ed502 to your computer and use it in GitHub Desktop.

Select an option

Save SweetAsNZ/ab53b9006b312efbf1d769bebc8ed502 to your computer and use it in GitHub Desktop.
Retrieves the current WinRM configuration settings
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