Forum Discussion
Enable WinRM through Intune
Hey PatrickF11,
you need to have a look at the Policy CSP documentation here: https://docs.microsoft.com/en-us/windows/client-management/mdm/policy-csp-remotemanagement#remotemanagement-allowremoteservermanagement and be careful if it is a ADMX-backed policy. Then you have to deal with the correct way of defining the value, which configures the policy.
In your case you have to carefully lookup the value definitions in the admx file and then you well get to the result like this:
./Vendor/MSFT/Policy/Config/RemoteManagement/AllowRemoteServerManagement
Value (string):
<enabled/>
<data id="AllowAutoConfig_IPv4Filter" value="*" />
<data id="AllowAutoConfig_IPv6Filter" value="" />
this works and is the correct way to address the value which you want to configure.
But! for this particular policy you have a way more convenient way to configure it, it is available in the Administrative templates:
best,
Oliver
- Dec 13, 2019
Hi Thijs Lecomte,
The CSP documentation gives you basically all info to look it up, see here:
ADMX Info:
- GP English name: Allow remote server management through WinRM
- GP name: AllowAutoConfig
- GP path: Windows Components/Windows Remote Management (WinRM)/WinRM Service
- GP ADMX file name: WindowsRemoteManagement.admx
Then go to C:\Windows\PolicyDefinitions on a Windows 10 device and look for:
WindowsRemoteManagement.admx
<policy name="AllowAutoConfig" class="Machine" displayName="$(string.AllowAutoConfig)" explainText="$(string.AutoConfigHelp)" presentation="$(presentation.AllowAutoConfig)" key="Software\Policies\Microsoft\Windows\WinRM\Service" valueName="AllowAutoConfig"> <parentCategory ref="WinRMService" /> <supportedOn ref="windows:SUPPORTED_WindowsVista" /> <enabledValue> <decimal value="1" /> </enabledValue> <disabledValue> <decimal value="0" /> </disabledValue> <elements> <text id="AllowAutoConfig_IPv4Filter" valueName="IPv4Filter" maxLength="1024" /> <text id="AllowAutoConfig_IPv6Filter" valueName="IPv6Filter" maxLength="1024" /> </elements> </policy>Follow the instruction "How to construct the value / enable a policy" here:
best,
Oliver
- Thijs LecomteDec 13, 2019Bronze ContributorI have learned something new today, thanks a lot!