Advertisement
goldnera

Untitled

May 27th, 2023
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
REG 0.22 KB | None | 0 0
  1. $regPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion"
  2. $valueName = "ProductName"
  3. $newValue = "New Product Name"
  4. Set-ItemProperty -Path $regPath -Name $valueName -Value $newValue
  5. Write-Host "Registry value updated."
  6.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement