From b6bd39ef3dae793723ab25931fef30dec8c09561 Mon Sep 17 00:00:00 2001 From: Darwin Date: Wed, 11 Jul 2018 21:43:54 -0400 Subject: [PATCH] Support for Server 2008 R2 --- Undo-WinRMConfig.ps1 | 41 ++++++++++++++++++- .../undo-winrmconfig-during-shutdown.nuspec | 2 +- 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/Undo-WinRMConfig.ps1 b/Undo-WinRMConfig.ps1 index 312f298..80c7ea3 100644 --- a/Undo-WinRMConfig.ps1 +++ b/Undo-WinRMConfig.ps1 @@ -45,7 +45,7 @@ Param ( [switch]$Version ) -$ThisScriptVersion = '1.1.8' +$ThisScriptVersion = '1.1.9' If ($version) { @@ -305,4 +305,43 @@ Windows Registry Editor Version 5.00 '@ +${Pristine-WSMan-6.1.reg} = @' +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WSMAN] +"StackVersion"="2.0" +"SupportsCompatListeners"=dword:00000001 +"UpdatedConfig"="58262FF8-3F83-4B48-A1FB-054FA5700982" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WSMAN\CertMapping] + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WSMAN\Client] + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WSMAN\Listener] + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WSMAN\Plugin] + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WSMAN\Plugin\Event Forwarding Plugin] +"ConfigXML"="" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WSMAN\Plugin\Microsoft.PowerShell] +"ConfigXML"=" " + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WSMAN\Plugin\Microsoft.ServerManager] +"ConfigXML"=" " + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WSMAN\Plugin\SEL Plugin] +"ConfigXML"="" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WSMAN\Plugin\WMI Provider] +"ConfigXML"="" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WSMAN\Service] + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WSMAN\WinRS] + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WSMAN\WinRS\CustomRemoteShell] + +'@ + Setup-Undo \ No newline at end of file diff --git a/chocolateypackaging/undo-winrmconfig-during-shutdown.nuspec b/chocolateypackaging/undo-winrmconfig-during-shutdown.nuspec index 50f3b89..47f5146 100644 --- a/chocolateypackaging/undo-winrmconfig-during-shutdown.nuspec +++ b/chocolateypackaging/undo-winrmconfig-during-shutdown.nuspec @@ -3,7 +3,7 @@ undo-winrmconfig-during-shutdown - 1.1.8-alpha2 + 1.1.9-alpha2 https://github.com/DarwinJS/CloudyWindowsAutomationCode/tree/master/Undo-WinRMConfig DarwinJS undo-winrmconfig-during-shutdown (Install)