header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Adding a Registry Key Remotely
Last Post 29 Jun 2010 04:38 AM by Shay Levy. 7 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
TalUser is Offline
New Member
New Member
Posts:43
Avatar

--
28 Jun 2010 05:30 AM
    Hello everyone , i would like to know how to add a Reg Key to a Remote Client trough PS.

    i add it with New-ItemProperty but i don't know how to add it remotely

    would like to see an example.
    PoSherLifeUser is Offline
    Basic Member
    Basic Member
    Posts:364
    Avatar

    --
    28 Jun 2010 06:05 AM
    from Brandon Shell:
    http://bsonposh.com/archives/207

    or with a custom module from Shay - Preferred (requires 2.0):
    http://code.msdn.microsoft.com/PSRemoteRegistry
    When at first you don't succeed Step-Into

    http://theposherlife.blogspot.com
    http://www.jandctravels.com

    cameronoveUser is Offline
    Basic Member
    Basic Member
    Posts:332
    Avatar

    --
    28 Jun 2010 02:27 PM
    Here is a suit of Registry functions I wrote for the 2010 scripting games

    http://2010sg.poshcode.org/code/387.xhtml
    PoSherLifeUser is Offline
    Basic Member
    Basic Member
    Posts:364
    Avatar

    --
    28 Jun 2010 02:58 PM
    lol - I keep forgetting about the entries from The Games!

    http://2010sg.poshcode.org/code/1240.xhtml
    When at first you don't succeed Step-Into

    http://theposherlife.blogspot.com
    http://www.jandctravels.com

    TalUser is Offline
    New Member
    New Member
    Posts:43
    Avatar

    --
    28 Jun 2010 10:54 PM
    Thanks but didn't quit understood what to do with the scripts, i don't want to customize all the script , isn't there any other way to do so?
    Shay LevyUser is Offline
    PowerShell MVP, Admin
    Veteran Member
    Veteran Member
    Posts:1362
    Avatar

    --
    29 Jun 2010 12:22 AM
    Tal, here's an example using my remote registry module. You need to have PowerShell 2.0 installed. Download the module and load it.

    The following will create a new string value named 'NewString' on 3 computers ( pc1,pc2,pc3 ) under HKLM:\SOFTWARE\Microsoft.
    The -Force switch is used to suppress confirmations and the -Ping switch is used to ping the computers first.

    Set-RegString -Hive LocalMachine -ComputerName pc1,pc2,pc3 -Key SOFTWARE\Microsoft -Value NewString -Data foo -Force -Ping

    Shay Levy
    Windows PowerShell MVP
    http://PowerShay.com
    PowerShell Community Toolbar
    Twitter: @ShayLevy
    TalUser is Offline
    New Member
    New Member
    Posts:43
    Avatar

    --
    29 Jun 2010 04:20 AM
    From where can i download the module? i lokked for it
    Shay LevyUser is Offline
    PowerShell MVP, Admin
    Veteran Member
    Veteran Member
    Posts:1362
    Avatar

    --
    29 Jun 2010 04:38 AM

    Shay Levy
    Windows PowerShell MVP
    http://PowerShay.com
    PowerShell Community Toolbar
    Twitter: @ShayLevy
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer