• DevPro
  • SharePoint Pro
  • SQL Server Pro
  • SuperSite for Windows
  • Windows IT PRO
  • Data Center Knowledge
  • The WHIR
  • dBforums
  • Windows Secrets
  • Hot Scripts
myITforum.com
  • Community
    • Site-Wide Activity
    • Groups
    • Members
    • Email Lists
    • Support Forums
  • Sponsors
  • Events
    • IT/Dev Connections 2017
    • Midwest Mgmt Summit 2017
  • Training
Newsletters
Register
Log in

Join myITforum Community

I acknowledge and agree to Penton's Terms of Service and to Penton's use of my contact information to communicate with me about offerings by Penton, its brands, affiliates and/or third-party partners, consistent with Penton's Privacy Policy.
By clicking below, I acknowledge and agree to Penton's Terms of Service and to Penton's use of my contact information to communicate with me about offerings by Penton, its brands, affiliates and/or third-party partners, consistent with Penton's Privacy Policy.

or connect with

Welcome Back!

Forgotten password?

or login with
  • Login
  • Register
  • Newsletters
  • Community
    • Site-Wide Activity
    • Groups
    • Members
    • Email Lists
    • Support Forums
  • Sponsors
  • Events
    • IT/Dev Connections 2017
    • Midwest Mgmt Summit 2017
  • Training

PowerShell Script to create new registry key value on remote computers

Posted 5 years ago
Written by Ying Li

In this post, I explore the ways to get remote registry key property. Here is a PowerShell script to create a new registry key value in remote registry.

$colComputers = gc c:\myworkspace\computerlist.txt

foreach ($strComputer in $colComputers)

{

#Open remote registry

$reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey(‘LocalMachine’, $strComputer)

#Open the targeted remote registry key/subkey for read and write ($True)

$regKey= $reg.OpenSubKey("SOFTWARE\\Whatever\\General",$True)

#Create a new (string)value –“Override System Verification” and assign “Yes” to it

$regKey.Setvalue(‘Override System Verification’, ‘Yes’, ‘String’)

    IT/Dev Connections 2017

    Upcoming Training

    View All
    • October 23 - October 26, 2017 @WeeklyIT/Dev Connections 2017!
    • On-demand @-Penton Technology Professional Education
    • TBA @-In-person Training

    Follow us on Twitter

    My Tweets
  • DevPro
  • SharePoint Pro
  • SQL Server Pro
  • SuperSite for Windows
  • Windows IT PRO
  • Data Center Knowledge
  • The WHIR
  • dBforums
  • Windows Secrets
  • Hot Scripts
 
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms of Service
  • Report a Problem
  • News
  • Sponsors
  • Events
Copyright © 2015 Penton
Powered by