Why try to get the value of AllowSideloadingOfExtensions by manipulating & interrogating the GPEdit MMC GUI when you can get the value directly from the source (where gpedit is getting it), the registry? #include <Constants.au3> example() Func example() Local $vValue ;Get value of AllowSideloadingOfExtensions (if Not Configured, then return with error message) $vValue = RegRead("HKLM\Software\Policies\Microsoft\MicrosoftEdge\E