+ Post New Thread
Results 1 to 7 of 7
Windows Thread, Script To Change A Registry Key in Technical; Removed....
  1. #1

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,982
    Thank Post
    352
    Thanked 1,300 Times in 890 Posts
    Blog Entries
    4
    Rep Power
    1131

    Script To Change A Registry Key

    Removed.

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Script To Change A Registry Key

    The command line program 'reg' can do this (I'm assuming REG_SZ is the data type here):

    Code:
    REG ADD  HKLM\SOFTWARE\QCA\DPS\TDS\Configuration /v APSAddress /t REG_SZ /d 172.19.40.1
    which can be run as a startup script in group policies.

    More info on the reg command here:

    http://www.microsoft.com/resources/d....mspx?mfr=true
    http://www.petri.co.il/reg_command_in_windows_xp.htm

  3. #3

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,713
    Thank Post
    667
    Thanked 1,636 Times in 1,462 Posts
    Rep Power
    424

    Re: Script To Change A Registry Key

    Dave: I thought that information was set in the DPSConfig.ini can you not create a new one of those and use a startup script to copy it to the machines?

    Ben

  4. #4
    mrforgetful's Avatar
    Join Date
    May 2006
    Posts
    1,639
    Thank Post
    7
    Thanked 15 Times in 15 Posts
    Rep Power
    22

    Re: Script To Change A Registry Key

    Can you not just export the key that's correct, put it in the netlogon share, create a .cmd file making the registry file run and assign the .cmd to run at startup?

    Or tell them the KS3 is awful and you don't want it to work?

    While I'm here, is it possible to change the security on a registry key using a script or GP?

  5. #5

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,982
    Thank Post
    352
    Thanked 1,300 Times in 890 Posts
    Blog Entries
    4
    Rep Power
    1131

    Re: Script To Change A Registry Key

    Hi Ben,

    Yes it is set in DPSConfig.ini, but for some reason some of my stations are 'remembering' the IP of the server as it was last year: Between last year and this I have had to change the IP address of the server. This is just an attempt to force the stations to co-operate until I can find another more permant answer.

  6. #6

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Script To Change A Registry Key

    While I'm here, is it possible to change the security on a registry key using a script or GP?
    Have a look at the RegINI command.

    http://support.microsoft.com/kb/245031

  7. #7

    Join Date
    Sep 2006
    Location
    Essex
    Posts
    783
    Thank Post
    1
    Thanked 33 Times in 31 Posts
    Rep Power
    24

    Re: Script To Change A Registry Key

    Copy the reg frag you have created to the net logon share

    Create a txt file and copy the code below into it replacing the filename with the name of your reg frag.

    Code:
    REGEDIT -s filename.reg
    Rename the txt file with CMD as the file extension

    Execute the CMD file via GPO as a startup script.

    Hope this helps.

    Registration Info Editor (REGEDIT) Command-Line Switches

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 2
    Last Post: 14th December 2007, 10:33 AM
  2. script to change permissions on Reg Key
    By e_g_r in forum Windows
    Replies: 4
    Last Post: 16th February 2007, 05:48 PM
  3. Replies: 4
    Last Post: 23rd November 2006, 09:33 PM
  4. Replies: 8
    Last Post: 12th November 2006, 02:02 PM
  5. Script to change user email in AD (or Exchange)
    By SpuffMonkey in forum Scripts
    Replies: 16
    Last Post: 8th November 2005, 10:31 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •