Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $regPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion"
- $valueName = "ProductName"
- $newValue = "New Product Name"
- Set-ItemProperty -Path $regPath -Name $valueName -Value $newValue
- Write-Host "Registry value updated."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement