SOLVED
Home

Understanding of custom policies / oma-uri / registry

%3CLINGO-SUB%20id%3D%22lingo-sub-1057705%22%20slang%3D%22en-US%22%3EUnderstanding%20of%20custom%20policies%20%2F%20oma-uri%20%2F%20registry%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1057705%22%20slang%3D%22en-US%22%3E%3CDIV%3E%3CFONT%3EHi%2C%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CFONT%3Ei%20would%20like%20to%20understand%20the%20whole%20topic%20belonging%20custom%20policies%20%2F%20OMA-URI%20%2F%20registry%20a%20little%20deeper.%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%3E%3CBR%20%2F%3EI%20hope%20that%20some%20of%20you%20guys%20would%20like%20to%20join%20the%20disscussion%20to%20gain%20some%20new%20knowledge%20together.%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%3EThe%20first%20goals%20should%20be%3A%3C%2FFONT%3E%3C%2FDIV%3E%3CUL%3E%3CLI%3E%3CFONT%3EConfiguring%20some%20basic%20%22onboard%22%20registry%20values%3C%2FFONT%3E%3C%2FLI%3E%3CLI%3EI%3CFONT%3Emplementation%20of%20some%20Group%20Policy%20Objects%20through%20Intune%20Config%3C%2FFONT%3E%3C%2FLI%3E%3C%2FUL%3E%3CDIV%3E%3CFONT%3ELet%20me%20outline%20one%20or%20two%20examples%3A%3C%2FFONT%3E%3C%2FDIV%3E%3COL%3E%3CLI%3E%3CFONT%3EI%20would%20like%20to%20create%20%2F%20edit%20a%20registry%20value%20at%20a%20specific%20path.%20(e.g.%20HKCU%5CSoftware%5Csample%5Csubfolder)%3CBR%20%2F%3E%3C%2FFONT%3E%3C%2FLI%3E%3CLI%3E%3CFONT%3EI%20would%20like%20to%20take%20an%20existing%20GPO%20and%20move%20this%20one%20completely%20to%20Intune%20management%20(e.g.%20User%20Configuration%20%5C%20Preferences%20%5C%20Folder%20Options%20-%26gt%3B%20hide%20known%20file%20extensions%3Afalse)%3C%2FFONT%3E%3C%2FLI%3E%3C%2FOL%3E%3CDIV%3E%3CFONT%3EMy%20thoughts%20on%20this%3A%3C%2FFONT%3E%3C%2FDIV%3E%3COL%3E%3CLI%3ETh%3CFONT%3Eis%20should%20be%20possible%2C%20right%3F%20%3AD%3C%2Fimg%3E%3C%2FFONT%3E%3C%2FLI%3E%3CLI%3E%3CFONT%3EI%20already%20used%20%22admx%20ingesting%22%20before%20e.g.%20for%20use%20with%20Google%20Chrome%20ADMX%20%2F%20Google%20Update%20ADMX%2C%20which%20worked%20fine%20after%20understanding%20it.%20%3B)%3C%2Fimg%3E%3CBR%20%2F%3EIs%20it%20possible%20to%20use%20all%20the%20other%20gpo%20related%20settings%20within%20intune%2C%20when%20they'%20aren't%20present%20in%20the%20%22administrative%20templates%20profile%22%2C%20yet%3F%20If%20yes%2C%20how%3F%3C%2FFONT%3E%3C%2FLI%3E%3C%2FOL%3E%3CDIV%3E%3CFONT%3EAny%20participation%20in%20discussion%20is%20highly%20appreciated.%20%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CFONT%3ERegards%3CBR%20%2F%3EPatrick%3C%2FFONT%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1057705%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Egpo%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGroup%20Policy%20Object%3C%2FLINGO-LABEL%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%3CLINGO-LABEL%3ERegistry%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1058480%22%20slang%3D%22en-US%22%3ERe%3A%20Understanding%20of%20custom%20policies%20%2F%20oma-uri%20%2F%20registry%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1058480%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%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%3Ein%20regards%20to%20question%20number%201%2C%20there%20is%20no%20generic%20registry%20functionality%20to%20set%20values%20like%20this.%20For%20third%20party%20settings%20you%20can%20ingest%203rd%20party%20admx%20templates%20like%20Google%20Chrome%20and%20then%20set%20the%20values%20(they%20represent%20registry%20keys).%20This%20should%20not%20be%20done%20for%20Microsoft%20admx%20files%20as%20MS%20is%20providing%20for%20this%20in%20a%20dedicated%20profile%20type%20Administrative%20template%20naively%20in%20Intune%2C%20see%20here%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%2F160925iBD4642F00D248494%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%3EIf%20you%20ingest%20MS%20admx%20files%20you%20are%20running%20into%20potential%20conflict%20with%20future%20MS%20administrative%20templates%2C%20as%20MS%20is%20regularly%20updating%20them.%20Last%20additions%20were%20Office%20and%20Edge%20settings.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGeneric%20%22onboarding%22%20registry%20keys%20can%20be%20set%20by%20PowerShell%20script%20for%20example.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20regards%20to%20question%20number%202%20you%20can't%20move%20all%20GPOs%20to%20Intune.%20MS%20provides%20a%20rich%20set%20on%20settings%20you%20can%20use%20and%20you%20can%20extend%20this%20for%203rd%20party%20settings%20via%20ADMX%20ingestion.%20Other%20missing%20pieces%20should%20be%20addressed%20by%20PowerShell%20scripts.%20Your%20example%20hide%20known%20file%20extension%20can%20be%20easily%20accomplished%20by%20a%20one%20line%20PowerShell%20script%20e.g.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3ESet-ItemProperty%20-Path%20HKCU%3A%5CSoftware%5CMicrosoft%5CWindows%5CCurrentVersion%5CExplorer%5CAdvanced%20-Name%20HideFileExt%20-Value%200%20-ErrorAction%20Stop%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMS%20is%20constantly%20expanding%20settings%20to%20provide%20all%20necessary%20settings%2C%20but%20don't%20expect%20the%20%22overload%22%20like%20we%20had%20with%20GPOs.%20They%20focus%20on%20necessary%20and%20important%20settings.%20A%20manageable%20amount%20of%20settings%20will%20make%20sure%20IT%20admins%20have%20enough%20control%2C%20will%20not%20generate%20conflicts%20and%20compatibility%20issues%20with%20further%20upgrades.%20IT%20admins%20can%20keep%20track%20of%20their%20setting%20and%20they%20are%20actually%20knowing%20what%20they%20are%20setting.%20So%2C%20my%20advice%20re-think%20what%20is%20really%20necessary%20and%20follow%20a%20%22light%20management%22%20strategy.%20Necessary%20settings%20are%20in%20general%20security%20setting%20and%20some%20things%20for%20productivity%20or%20corporate%20branding%20like%20common%20logon%20background.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1059747%22%20slang%3D%22en-US%22%3ERe%3A%20Understanding%20of%20custom%20policies%20%2F%20oma-uri%20%2F%20registry%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1059747%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%2F174439%22%20target%3D%22_blank%22%3E%40Oliver%20Kieselbach%3C%2FA%3E%26nbsp%3B%26amp%3B%20thank%20you%20for%20your%20reply.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20already%20know%20the%20administrative%20templates%2C%20but%20of%20course%20many%20options%20are%20not%20yet%20implemented.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThat's%20why%20i'm%20asking%20on%20how%20to%20deal%20with%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20potential%20conflicts%20when%20using%20admx%20ingest%20seems%20clear%20to%20me%2C%20but%20only%26nbsp%3Bhypothetically%20it%20is%20possible%20to%20ingest%20any%20admx%20files%2C%20not%20only%203rd%20Party%2C%20right%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20powershell%20example.%3C%2FP%3E%3CP%3EAt%20this%20point%20i%20've%20avoided%20using%20powershell%20scripts%20with%20intune%20because%20a)%20i%20didn't%20tested%20it%2C%20yet%20%2F%20b)%20i%20didn't%20know%20how%20they%20work%20exactly.%3C%2FP%3E%3CP%3EAre%20the%20scripts%20only%20running%20once%3F%20How%20can%20i%20monitor%20settings%20i%20set%20via%20script%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20in%20advance.%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1059781%22%20slang%3D%22en-US%22%3ERe%3A%20Understanding%20of%20custom%20policies%20%2F%20oma-uri%20%2F%20registry%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1059781%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%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%3Ein%20theory%20you%20can%20ingest%20every%20admx%20file%20but%20there%20are%20some%20path%20in%20the%20registry%20which%20are%20black%20listed%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fclient-management%2Fmdm%2Fwin32-and-centennial-app-policy-configuration%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fclient-management%2Fmdm%2Fwin32-and-centennial-app-policy-configuration%3C%2FA%3E).%3C%2FP%3E%0A%3CP%3EAs%20already%20outlined%20I%20would%20focus%20on%20what%20is%20really%20necessary%20then%20I%20do%20not%20miss%20so%20much.%20Important%20are%20especially%20security%20settings%20and%20they%20are%20mostly%20all%20available.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20an%20introduction%20in%20Intune%20PowerShell%20script%20processing%20look%20at%20my%20blog%20posts%20here%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Foliverkieselbach.com%2F2017%2F11%2F29%2Fdeep-dive-microsoft-intune-management-extension-powershell-scripts%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EDeep%20dive%20Microsoft%20Intune%20Management%20Extension%20%E2%80%93%20PowerShell%20Scripts%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Foliverkieselbach.com%2F2018%2F02%2F12%2Fpart-2-deep-dive-microsoft-intune-management-extension-powershell-scripts%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EPart%202%2C%20Deep%20dive%20Microsoft%20Intune%20Management%20Extension%20%E2%80%93%20PowerShell%20Scripts%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Foliverkieselbach.com%2F2018%2F10%2F02%2Fpart-3-deep-dive-microsoft-intune-management-extension-win32-apps%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EPart%203%2C%20Deep%20dive%20Microsoft%20Intune%20Management%20Extension%20%E2%80%93%20Win32%20Apps%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-1062077%22%20slang%3D%22en-US%22%3ERe%3A%20Understanding%20of%20custom%20policies%20%2F%20oma-uri%20%2F%20registry%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1062077%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%2F174439%22%20target%3D%22_blank%22%3E%40Oliver%20Kieselbach%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20i%20just%20have%20to%20rethink%20a%20little%20my%20mindset%20regarding%20the%20%22GPO-World%22%20%3AD%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20ideas%20belonging%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20worked%20throught%20your%20really%20great%20blogposts%201%26amp%3B2%20and%20i%20'll%20continue%20with%20the%203rd%20one.%3C%2FP%3E%3CP%3EThank%20you%20very%20much%20for%20your%20wonderful%20work%20which%20is%20really%26nbsp%3Bcomprehensible%20with%20great%20examples%20and%20samples.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMany%20kudos%20to%20you!%26nbsp%3BYou're%20really%20a%20big%20benefit%20to%20the%20community.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1067516%22%20slang%3D%22en-US%22%3ERe%3A%20Understanding%20of%20custom%20policies%20%2F%20oma-uri%20%2F%20registry%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1067516%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%3B%3C%2FP%3E%3CP%3EHey%20Patrick%2C%3C%2FP%3E%3CP%3EI%20believe%20the%20PowerShell%20scripts%20operate%20according%20to%20this%20logic%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20it%20runs%20successfully%20-%20It%20will%20never%20run%20again%20unless%20the%20policy%20is%20updated%20(i.e.%20update%20script%2C%20assignment%20etc)%3C%2FP%3E%3CP%3EIf%20it%20fails%2C%20it%20will%20retry%20a%20maximum%20of%202%20more%20times%2C%20and%20will%20never%20run%20again%20unless%20the%20policy%20is%20updated%20(i.e.%20update%20script%2C%20assignment%20etc)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20need%20to%20use%20Write-Error%20or%20force%20an%20exit%20code%20of%200%20for%20Intune%20to%20detect%20the%20script%20as%20failed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAt%20this%20stage%2C%20there%20is%20no%20built%20in%20way%20to%20monitor%20the%20settings%20you%20configure%20with%20a%20script.%20You%20would%20need%20to%20write%20multiple%20scripts%20to%20configure%20individual%20settings.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20methodology%20i%20tend%20to%20work%20with%20is%3CBR%20%2F%3E1.%20Use%20a%20native%20configuration%20profile%20(Device%20restrictions%20etc)%3C%2FP%3E%3CP%3E2.%20If%20that's%20not%20possible%2C%20use%20an%20Administrative%20template%3C%2FP%3E%3CP%3E3.%20If%20it's%20not%20available%20there%2C%20can%20i%20do%20it%20with%20a%20custom%20profile%3C%2FP%3E%3CP%3E4.%20No%3F%20or%20for%20quick%201-offs%20-%20PowerShell%20Script%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor
Hi,
 
i would like to understand the whole topic belonging custom policies / OMA-URI / registry a little deeper.

I hope that some of you guys would like to join the disscussion to gain some new knowledge together.
The first goals should be:
  • Configuring some basic "onboard" registry values
  • Implementation of some Group Policy Objects through Intune Config
Let me outline one or two examples:
  1. I would like to create / edit a registry value at a specific path. (e.g. HKCU\Software\sample\subfolder)
  2. I would like to take an existing GPO and move this one completely to Intune management (e.g. User Configuration \ Preferences \ Folder Options -> hide known file extensions:false)
My thoughts on this:
  1. This should be possible, right? :D
  2. I already used "admx ingesting" before e.g. for use with Google Chrome ADMX / Google Update ADMX, which worked fine after understanding it. ;)
    Is it possible to use all the other gpo related settings within intune, when they' aren't present in the "administrative templates profile", yet? If yes, how?
Any participation in discussion is highly appreciated.
 
Regards
Patrick
5 Replies

Hi @PatrickF11,

 

in regards to question number 1, there is no generic registry functionality to set values like this. For third party settings you can ingest 3rd party admx templates like Google Chrome and then set the values (they represent registry keys). This should not be done for Microsoft admx files as MS is providing for this in a dedicated profile type Administrative template naively in Intune, see here:

 

clipboard_image_0.png

If you ingest MS admx files you are running into potential conflict with future MS administrative templates, as MS is regularly updating them. Last additions were Office and Edge settings.

 

Generic "onboarding" registry keys can be set by PowerShell script for example.

 

In regards to question number 2 you can't move all GPOs to Intune. MS provides a rich set on settings you can use and you can extend this for 3rd party settings via ADMX ingestion. Other missing pieces should be addressed by PowerShell scripts. Your example hide known file extension can be easily accomplished by a one line PowerShell script e.g.

 

Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name HideFileExt -Value 0 -ErrorAction Stop

 

MS is constantly expanding settings to provide all necessary settings, but don't expect the "overload" like we had with GPOs. They focus on necessary and important settings. A manageable amount of settings will make sure IT admins have enough control, will not generate conflicts and compatibility issues with further upgrades. IT admins can keep track of their setting and they are actually knowing what they are setting. So, my advice re-think what is really necessary and follow a "light management" strategy. Necessary settings are in general security setting and some things for productivity or corporate branding like common logon background.

Hi @Oliver Kieselbach & thank you for your reply.

 

I already know the administrative templates, but of course many options are not yet implemented.

That's why i'm asking on how to deal with this.

 

The potential conflicts when using admx ingest seems clear to me, but only hypothetically it is possible to ingest any admx files, not only 3rd Party, right?

 

Thank you for your powershell example.

At this point i 've avoided using powershell scripts with intune because a) i didn't tested it, yet / b) i didn't know how they work exactly.

Are the scripts only running once? How can i monitor settings i set via script?

 

Thank you in advance. :)

Solution

Hi @PatrickF11,

 

in theory you can ingest every admx file but there are some path in the registry which are black listed (https://docs.microsoft.com/en-us/windows/client-management/mdm/win32-and-centennial-app-policy-confi...).

As already outlined I would focus on what is really necessary then I do not miss so much. Important are especially security settings and they are mostly all available.

 

For an introduction in Intune PowerShell script processing look at my blog posts here:

 

Deep dive Microsoft Intune Management Extension – PowerShell Scripts

Part 2, Deep dive Microsoft Intune Management Extension – PowerShell Scripts

Part 3, Deep dive Microsoft Intune Management Extension – Win32 Apps

 

best,

Oliver

Hi @Oliver Kieselbach 

 

I think i just have to rethink a little my mindset regarding the "GPO-World" :D

 

Thank you for your ideas belonging this.

 

I've worked throught your really great blogposts 1&2 and i 'll continue with the 3rd one.

Thank you very much for your wonderful work which is really comprehensible with great examples and samples.

 

Many kudos to you! You're really a big benefit to the community.

@PatrickF11 

Hey Patrick,

I believe the PowerShell scripts operate according to this logic:

 

If it runs successfully - It will never run again unless the policy is updated (i.e. update script, assignment etc)

If it fails, it will retry a maximum of 2 more times, and will never run again unless the policy is updated (i.e. update script, assignment etc)

 

You need to use Write-Error or force an exit code of 0 for Intune to detect the script as failed.

 

At this stage, there is no built in way to monitor the settings you configure with a script. You would need to write multiple scripts to configure individual settings.

 

The methodology i tend to work with is
1. Use a native configuration profile (Device restrictions etc)

2. If that's not possible, use an Administrative template

3. If it's not available there, can i do it with a custom profile

4. No? or for quick 1-offs - PowerShell Script