Enable WinRM through Intune

%3CLINGO-SUB%20id%3D%22lingo-sub-1052841%22%20slang%3D%22en-US%22%3EEnable%20WinRM%20through%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1052841%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20everybody%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20trying%20to%20enable%20WinRM%20to%20remotely%20manage%20our%20devices%2C%20when%20onprem.%3C%2FP%3E%3CP%3ETherefore%20i%20tried%20to%20add%20a%20custom%20profile%20with%20the%20following%20OMA-URI%3A%3C%2FP%3E%3CP%3E.%2FDevice%2FVendor%2FMSFT%2FPolicy%2FConfig%2FRemoteManagement%2FAllowRemoteServerManagement%3C%2FP%3E%3CP%3E(With%20value%20%3CENABLED%3E).%3C%2FENABLED%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUnfortunatelly%20the%20result%20is%20%22-2016281112%20(Remediation%20failed)%22.%3C%2FP%3E%3CP%3EWhat%20am%20i%20making%20wrong%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance.%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3EPatrick%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1052841%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMobile%20Device%20Management%20(MDM)%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eoma-uri%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1053079%22%20slang%3D%22en-US%22%3ERe%3A%20Enable%20WinRM%20through%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1053079%22%20slang%3D%22en-US%22%3EHi%3CBR%20%2F%3E%3CBR%20%2F%3EI%20would%20recommend%20checking%20out%20the%20CSP%20documentation%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fclient-management%2Fmdm%2Fpolicy-csp-remotemanagement%23remotemanagement-allowremoteservermanagement%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fclient-management%2Fmdm%2Fpolicy-csp-remotemanagement%23remotemanagement-allowremoteservermanagement%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20seems%20that%20a%20special%20SyncML%20format%20is%20required%20to%20use%20this%20policy.%20Have%20you%20looked%20into%20this%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1055164%22%20slang%3D%22en-US%22%3ERe%3A%20Enable%20WinRM%20through%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1055164%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F186539%22%20target%3D%22_blank%22%3E%40Thijs%20Lecomte%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20your%20response.%3C%2FP%3E%3CP%3EI've%20read%20through%20this%2C%20unfortunatelly%20i%20don't%20get%20it.%20That's%20why%20i%20thought%20trying%20the%20syntax%20i%20used.%20(Which%20isn't%20working.)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1055253%22%20slang%3D%22en-US%22%3ERe%3A%20Enable%20WinRM%20through%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1055253%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F275685%22%20target%3D%22_blank%22%3E%40PatrickF11%3C%2FA%3E%26nbsp%3Bhave%20you%20tried%20the%20value%20%22%3CENABLED%3E%3C%2FENABLED%3E%22%20with%20closing%20slash%20as%20this%20would%20represent%20the%20required%20syntax%20to%20enable%20an%20admx%20backend%20policy.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1055282%22%20slang%3D%22en-US%22%3ERe%3A%20Enable%20WinRM%20through%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1055282%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F264252%22%20target%3D%22_blank%22%3E%40nicolonsky%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20sharing%20your%20thoughts.%3C%2FP%3E%3CP%3EYes%2C%20i'm%20using%20the%20value%20%22%3CENABLED%3E%3C%2FENABLED%3E%22%20as%20in%20many%20other%20settings%2C%20too.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1057516%22%20slang%3D%22en-US%22%3ERe%3A%20Enable%20WinRM%20through%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1057516%22%20slang%3D%22en-US%22%3EI%20will%20try%20this%20in%20my%20test%20environment%20and%20get%20back%20to%20you%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1057621%22%20slang%3D%22en-US%22%3ERe%3A%20Enable%20WinRM%20through%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1057621%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F186539%22%20target%3D%22_blank%22%3E%40Thijs%20Lecomte%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20very%20much!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1063242%22%20slang%3D%22en-US%22%3ERe%3A%20Enable%20WinRM%20through%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1063242%22%20slang%3D%22en-US%22%3EI%20just%20checked%20and%20I%20am%20getting%20the%20same%20error.%3CBR%20%2F%3EWhen%20I%20check%20in%20the%20logs%20the%20error%20'The%20system%20cannot%20find%20the%20file%20specified'%20is%20shown.%20I%20would%20advise%20to%20open%20up%20a%20support%20ticket%20for%20this.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1063661%22%20slang%3D%22en-US%22%3ERe%3A%20Enable%20WinRM%20through%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1063661%22%20slang%3D%22en-US%22%3E%3CP%3EHey%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F275685%22%20target%3D%22_blank%22%3E%40PatrickF11%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eyou%20need%20to%20have%20a%20look%20at%20the%20Policy%20CSP%20documentation%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fclient-management%2Fmdm%2Fpolicy-csp-remotemanagement%23remotemanagement-allowremoteservermanagement%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fclient-management%2Fmdm%2Fpolicy-csp-remotemanagement%23remotemanagement-allowremoteservermanagement%3C%2FA%3E%26nbsp%3Band%20be%20careful%20if%20it%20is%20a%20ADMX-backed%20policy.%20Then%20you%20have%20to%20deal%20with%20the%20correct%20way%20of%20defining%20the%20value%2C%20which%20configures%20the%20policy.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20your%20case%20you%20have%20to%20carefully%20lookup%20the%20value%20definitions%20in%20the%20admx%20file%20and%20then%20you%20well%20get%20to%20the%20result%20like%20this%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E.%2FVendor%2FMSFT%2FPolicy%2FConfig%2FRemoteManagement%2FAllowRemoteServerManagement%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%3EValue%20(string)%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3CENABLED%3E%3C%2FENABLED%3E%0A%3CDATA%20id%3D%22AllowAutoConfig_IPv4Filter%22%20value%3D%22*%22%3E%3C%2FDATA%3E%0A%3CDATA%20id%3D%22AllowAutoConfig_IPv6Filter%22%20value%3D%22%22%3E%3C%2FDATA%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Ethis%20works%20and%20is%20the%20correct%20way%20to%20address%20the%20value%20which%20you%20want%20to%20configure.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBut!%20for%20this%20particular%20policy%20you%20have%20a%20way%20more%20convenient%20way%20to%20configure%20it%2C%20it%20is%20available%20in%20the%20Administrative%20templates%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F161543iC929EC24783CE58C%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ebest%2C%3C%2FP%3E%0A%3CP%3EOliver%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1064194%22%20slang%3D%22en-US%22%3ERe%3A%20Enable%20WinRM%20through%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1064194%22%20slang%3D%22en-US%22%3EAwesome!%20How%20do%20you%20find%20out%20the%20correct%20parameter%20names%20for%20'AllowAutoConfig_IPv4Filter'%2C%20because%20those%20are%20not%20listed%20in%20the%20CSP%20docs%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1064213%22%20slang%3D%22en-US%22%3ERe%3A%20Enable%20WinRM%20through%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1064213%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F186539%22%20target%3D%22_blank%22%3E%40Thijs%20Lecomte%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20CSP%20documentation%20gives%20you%20basically%20all%20info%20to%20look%20it%20up%2C%20see%20here%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EADMX%20Info%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EGP%20English%20name%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EAllow%20remote%20server%20management%20through%20WinRM%3C%2FEM%3E%3C%2FLI%3E%0A%3CLI%3EGP%20name%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EAllowAutoConfig%3C%2FEM%3E%3C%2FLI%3E%0A%3CLI%3EGP%20path%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EWindows%20Components%2FWindows%20Remote%20Management%20(WinRM)%2FWinRM%20Service%3C%2FEM%3E%3C%2FLI%3E%0A%3CLI%3EGP%20ADMX%20file%20name%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EWindowsRemoteManagement.admx%3C%2FEM%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThen%20go%20to%20C%3A%5CWindows%5CPolicyDefinitions%20on%20a%20Windows%2010%20device%20and%20look%20for%3A%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EWindowsRemoteManagement.admx%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%20%20%20%20%3CPOLICY%20name%3D%22AllowAutoConfig%22%20class%3D%22Machine%22%20displayname%3D%22%24(string.AllowAutoConfig)%22%20explaintext%3D%22%24(string.AutoConfigHelp)%22%20presentation%3D%22%24(presentation.AllowAutoConfig)%22%20key%3D%22Software%5CPolicies%5CMicrosoft%5CWindows%5CWinRM%5CService%22%20valuename%3D%22AllowAutoConfig%22%3E%0A%20%20%20%20%20%20%3CPARENTCATEGORY%20ref%3D%22WinRMService%22%3E%3C%2FPARENTCATEGORY%3E%0A%20%20%20%20%20%20%3CSUPPORTEDON%20ref%3D%22windows%3ASUPPORTED_WindowsVista%22%3E%3C%2FSUPPORTEDON%3E%0A%20%20%20%20%20%20%3CENABLEDVALUE%3E%0A%20%20%20%20%20%20%20%20%3CDECIMAL%20value%3D%221%22%3E%3C%2FDECIMAL%3E%0A%20%20%20%20%20%20%3C%2FENABLEDVALUE%3E%0A%20%20%20%20%20%20%3CDISABLEDVALUE%3E%0A%20%20%20%20%20%20%20%20%3CDECIMAL%20value%3D%220%22%3E%3C%2FDECIMAL%3E%0A%20%20%20%20%20%20%3C%2FDISABLEDVALUE%3E%0A%20%20%20%20%20%20%3CELEMENTS%3E%0A%20%20%20%20%20%20%20%20%3CTEXT%20id%3D%22AllowAutoConfig_IPv4Filter%22%20valuename%3D%22IPv4Filter%22%20maxlength%3D%221024%22%3E%3C%2FTEXT%3E%0A%20%20%20%20%20%20%20%20%3CTEXT%20id%3D%22AllowAutoConfig_IPv6Filter%22%20valuename%3D%22IPv6Filter%22%20maxlength%3D%221024%22%3E%3C%2FTEXT%3E%0A%20%20%20%20%20%20%3C%2FELEMENTS%3E%0A%20%20%20%20%3C%2FPOLICY%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFollow%20the%20instruction%20%22How%20to%20construct%20the%20value%20%2F%20enable%20a%20policy%22%20here%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fclient-management%2Fmdm%2Funderstanding-admx-backed-policies%23enabling-a-policy%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fclient-management%2Fmdm%2Funderstanding-admx-backed-policies%23enabling-a-policy%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ebest%2C%3C%2FP%3E%0A%3CP%3EOliver%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1064221%22%20slang%3D%22en-US%22%3ERe%3A%20Enable%20WinRM%20through%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1064221%22%20slang%3D%22en-US%22%3EI%20have%20learned%20something%20new%20today%2C%20thanks%20a%20lot!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1096202%22%20slang%3D%22en-US%22%3ERe%3A%20Enable%20WinRM%20through%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1096202%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F174439%22%20target%3D%22_blank%22%3E%40Oliver%20Kieselbach%3C%2FA%3E%26nbsp%3BThank%20you%20very%20much.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUnfortunately%20enabling%20WinRM%20isn't%20enough.%3C%2FP%3E%3COL%3E%3CLI%3ETo%20achive%20remote%20management%20for%20registry%20i%20need%20to%20remotely%20enable%20the%20service%20%22RemoteRegistry%22.%20How%20to%20deal%20with%20this%20via%20intune%3F%3C%2FLI%3E%3CLI%3ETo%20achive%20remote%20management%20for%20EventViewer%20i%20need%20to%20remotely%20enable%20the%20firewall%20rules%20Remote%20Event%20Log%20Management%20(RPC).%20How%20to%20deal%20with%20this%20via%20intune%3F%20I've%20found%20out%20that%20i%20can%20configure%20firewall%20rules%20inside%20of%20the%20endpoint%20protection%20profile.%20Unfortunately%20i%20don't%20know%20how%20to%20enable%20the%20rule%20which%20is%20already%20present%20but%20disabled.%20Inside%20of%20the%20GUI%20%22Windows%20Defender%20Firewall%20with%20Advanced%20Security%22%20i%20already%20found%20the%20rule%20but%20i%20don't%20know%20how%20to%20depict%20the%20%22local%20port%20%3D%20RPC%20Dynamic%20Ports%22%20in%20intune.%3C%2FLI%3E%3C%2FOL%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

Hello everybody,

 

I'm trying to enable WinRM to remotely manage our devices, when onprem.

Therefore i tried to add a custom profile with the following OMA-URI:

./Device/Vendor/MSFT/Policy/Config/RemoteManagement/AllowRemoteServerManagement

(With value <enabled>).

 

Unfortunatelly the result is "-2016281112 (Remediation failed)".

What am i making wrong?

 

Thanks in advance. :)

Regards

Patrick

 

 

12 Replies
Highlighted
Hi

I would recommend checking out the CSP documentation:
https://docs.microsoft.com/en-us/windows/client-management/mdm/policy-csp-remotemanagement#remoteman...

It seems that a special SyncML format is required to use this policy. Have you looked into this?
Highlighted

@Thijs Lecomte 

Thanks for your response.

I've read through this, unfortunatelly i don't get it. That's why i thought trying the syntax i used. (Which isn't working.)

Highlighted

@PatrickF11 have you tried the value "<enabled/>" with closing slash as this would represent the required syntax to enable an admx backend policy.

Highlighted

@nicolonsky 

Thank you for sharing your thoughts.

Yes, i'm using the value "<enabled />" as in many other settings, too.

Highlighted
I will try this in my test environment and get back to you
Highlighted

@Thijs Lecomte 

Thank you very much!

Highlighted
I just checked and I am getting the same error.
When I check in the logs the error 'The system cannot find the file specified' is shown. I would advise to open up a support ticket for this.
Highlighted

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#remoteman... 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:

 

clipboard_image_0.png

 

best,

Oliver

Highlighted
Awesome! How do you find out the correct parameter names for 'AllowAutoConfig_IPv4Filter', because those are not listed in the CSP docs?
Highlighted

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:

https://docs.microsoft.com/en-us/windows/client-management/mdm/understanding-admx-backed-policies#en...

 

best,

Oliver

Highlighted
I have learned something new today, thanks a lot!
Highlighted

@Oliver Kieselbach Thank you very much.

 

Unfortunately enabling WinRM isn't enough.

  1. To achive remote management for registry i need to remotely enable the service "RemoteRegistry". How to deal with this via intune?
  2. To achive remote management for EventViewer i need to remotely enable the firewall rules Remote Event Log Management (RPC). How to deal with this via intune? I've found out that i can configure firewall rules inside of the endpoint protection profile. Unfortunately i don't know how to enable the rule which is already present but disabled. Inside of the GUI "Windows Defender Firewall with Advanced Security" i already found the rule but i don't know how to depict the "local port = RPC Dynamic Ports" in intune.