Hi - I am trying to create a new entry suspect characters such as <> / are reason its failing , I can query the path just cannot add
New-ItemProperty "HKLM:\SOFTWARE\Policies\Microsoft\Windows\SrpV2\Exe\11759873-1713-4c87-b95b-925c887337a5" -Name "Value" -Value "<FilePublisherRule Id="11759873-1713-4c87-b95b-925c887337a5" Name="MICROSOFT DYNAMICS 365 COMMERCE, from O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US" Description="" UserOrGroupSid="S-1-1-0" Action="Allow"><Conditions><FilePublisherCondition PublisherName="O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US" ProductName="MICROSOFT DYNAMICS 365 COMMERCE" BinaryName=""><BinaryVersionRange LowSection="" HighSection="*"/></FilePublisherCondition></Conditions></FilePublisherRule>" -PropertyType "String"
Additionally I can import the key from another PC from both DOS ( reg import) and actual registry editor , however the actual data with value is will not so am thinking if this is Microsoft limitation
Hi - I am trying to create a new entry suspect characters such as <> / are reason its failing , I can query the path just cannot add
New-ItemProperty "HKLM:\SOFTWARE\Policies\Microsoft\Windows\SrpV2\Exe\11759873-1713-4c87-b95b-925c887337a5" -Name "Value" -Value "<FilePublisherRule Id="11759873-1713-4c87-b95b-925c887337a5" Name="MICROSOFT DYNAMICS 365 COMMERCE, from O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US" Description="" UserOrGroupSid="S-1-1-0" Action="Allow"><Conditions><FilePublisherCondition PublisherName="O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US" ProductName="MICROSOFT DYNAMICS 365 COMMERCE" BinaryName=""><BinaryVersionRange LowSection="" HighSection="*"/></FilePublisherCondition></Conditions></FilePublisherRule>" -PropertyType "String"