HI All I am trying to add registry with following syntax using Powershell , cant seem to get it working , is it the curly brackets ??? I can run it on the machine fine so I know syntax is correct, just the way Bigfix handles the { and } has me stumped since its there twice as part of the registry key.
waithidden { pathname of file ((it as string) of value āPathā of key āHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShellā of native registry) } -ExecutionPolicy Bypass -File powershell.ps1
//**Begin Closing Marker
// Get the return code of the previous action.
parameter āreturnCodeā = ā{exit code of action}ā
// Task will now exit.
exit {parameter āreturnCodeā}
//**End Closing Marker
You need to escape each opening curly bracket that is not surrounding relevance with an additional curly bracket. Your key name has a lot of opening curly brackets - you just double up each of them.
Without using Powershell:
action uses wow64 redirection {not x64 of operating system}
if {x64 of operating system}
regset64 "[HKEY_LOCAL_MACHINE\SYSTEM\KES{{{{9b03c1d9-3138-44ed-9fae-d9f4c034b88d}}{{{{16e0423f-7058-48c9-a204-725362b67639}}\Default]" "GroupingTags"="Alpha"
else
regset "[HKEY_LOCAL_MACHINE\SYSTEM\KES{{{{9b03c1d9-3138-44ed-9fae-d9f4c034b88d}}{{{{16e0423f-7058-48c9-a204-725362b67639}}\Default]" "GroupingTags"="Alpha"
endif
trn - many thanks using QNA tool I can see its fine however it does not add the registry value
To clarify the actual registry key is as following - notes {} brackets are single
: HKLM:SYSTEM\KES{9b03c1d9-3138-44ed-9fae-d9f4c034b88d}{16e0423f-7058-48c9-a204-725362b67639}\Default"
Originally I tried double
HKLM:SYSTEM\KES{{9b03c1d9-3138-44ed-9fae-d9f4c034b88d}}{{16e0423f-7058-48c9-a204-725362b67639}}\Default"