we are trying to change a local security policy by changing the registry value. The setting to be changed is “Turn on Module Logging” is to be Enabled in Windows powershell of gpedit.msc.
I enabled it manually and checked the registry modification and created a fixlet to do the same modification via windows registry wizard. The registry is getting changed but the change is not reflecting in the gpedit.msc.
Is there any other way to do it?
the action script I used:
action uses wow64 redirection false
delete __createfile
delete wizardedit.reg
createfile until @end_create_reg_file
Windows Registry Editor Version 5.00
I’m not sure whether things are getting lost (format scripts when you post them using the </> button) but I believe the value name and contents should be an asterisk, not an empty string
Are the registry values actually being set? It’s not clear to me whether the values are not being applied,or whether they are being applied but not having the effect you want.
The Values are being set, but not having the effect I want.
I want the Policy “Turn on module logging” to be set as “Enabled”. in path
"Computer Configuration\ Administrative Templates\ Windows Components\ Windows PowerShell".