File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function Set-RegistryValue {
2727 )
2828 if ($global :dryrun ) {
2929 Write-Host " [DRY-RUN] Would set $Path \$Name = $Value ($Type )" - ForegroundColor DarkYellow
30- Write-ModuleLog " [DRY-RUN] Would set $Path \ $ Name = $Value ($Type )"
30+ Write-ModuleLog " [DRY-RUN] Would set $ ( $ Path) \ $ ( $ Name) = $Value ($Type )"
3131 } else {
3232 try {
3333 if ($Type -eq " DWord" -or $Type -eq " QWord" ) {
@@ -41,10 +41,10 @@ function Set-RegistryValue {
4141 } else {
4242 Set-ItemProperty - Path $Path - Name $Name - Value $Value - Type $Type
4343 }
44- Write-ModuleLog " Set $Path \ $ Name = $Value ($Type )"
44+ Write-ModuleLog " Set $ ( $ Path) \ $ ( $ Name) = $Value ($Type )"
4545 } catch {
46- Write-Host " [ERROR] Failed to set $Path \ $ Name : $_ " - ForegroundColor Red
47- Write-ModuleLog " [ERROR] Failed to set $Path \ $ Name : $_ "
46+ Write-Host " [ERROR] Failed to set $ ( $ Path) \ $ ( $ Name) : $_ " - ForegroundColor Red
47+ Write-ModuleLog " [ERROR] Failed to set $ ( $ Path) \ $ ( $ Name) : $_ "
4848 }
4949 }
5050}
You can’t perform that action at this time.
0 commit comments