+ Post New Thread
Results 1 to 7 of 7
Windows Thread, need .reg file or script please in Technical; Please can someone put this into a reg file or .bat or .vbs script as I have no idea how ...
  1. #1
    Grommit's Avatar
    Join Date
    Sep 2006
    Location
    Weston-super-Mare
    Posts
    1,335
    Thank Post
    31
    Thanked 54 Times in 31 Posts
    Rep Power
    25

    need .reg file or script please

    Please can someone put this into a reg file or .bat or .vbs script as I have no idea how to do it even after googling

    Delete the following registry setting if present:-

    Registry location: HKLM\Software\Productive Computer Insight\PCICTL\
    ValueName: NSSregkey
    Value: hklm
    ValueType: String

    Add the following registry setting:-

    Registry location: HKLM\Software\Productive Computer Insight\PCICTL\
    ValueName: NSSuseHKLM
    Value: 1
    ValueType: String

    Thanks in Advance

  2. #2

    SYSMAN_MK's Avatar
    Join Date
    Sep 2005
    Posts
    4,012
    Thank Post
    490
    Thanked 1,345 Times in 731 Posts
    Rep Power
    429
    Should do the trick.

    Code:
    Windows Registry Editor Version 5.00
    
    [-HKEY_LOCAL_MACHINE\Software\Productive Computer Insight\PCICTL]
    "NSSregkey"="hklm"
    "NSSuseHKLM"="1"
    Just checked again and the above code deletes the hive HKEY_LOCAL_MACHINE\Software\Productive Computer Insight\PCICTL rather than the keys. Humm
    Last edited by SYSMAN_MK; 18th December 2009 at 10:53 AM.

  3. #3

    Join Date
    Feb 2006
    Location
    Derbyshire
    Posts
    1,381
    Thank Post
    181
    Thanked 211 Times in 171 Posts
    Rep Power
    66
    Quote Originally Posted by SYSMAN_MK View Post
    Should do the trick.
    Doesn't that delete both keys rather than add the second?

  4. #4

    SYSMAN_MK's Avatar
    Join Date
    Sep 2005
    Posts
    4,012
    Thank Post
    490
    Thanked 1,345 Times in 731 Posts
    Rep Power
    429
    Doh didn't read the post properly.

    This one should be right.

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\Software\Productive Computer Insight\PCICTL]
    "NSSregkey"=-
    "NSSuseHKLM"="1"
    Last edited by SYSMAN_MK; 18th December 2009 at 11:00 AM.

  5. Thanks to SYSMAN_MK from:

    Grommit (30th December 2009)

  6. #5

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,345
    Thank Post
    242
    Thanked 1,602 Times in 1,278 Posts
    Rep Power
    346
    SYSMAN_MK is right second time around. Adding the minus will just remove that single entry. Even if it's not there the reg file will run, it just won't delete anything.

  7. Thanks to Michael from:

    SYSMAN_MK (18th December 2009)

  8. #6
    Grommit's Avatar
    Join Date
    Sep 2006
    Location
    Weston-super-Mare
    Posts
    1,335
    Thank Post
    31
    Thanked 54 Times in 31 Posts
    Rep Power
    25
    Quote Originally Posted by SYSMAN_MK View Post
    Doh didn't read the post properly.

    This one should be right.

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\Software\Productive Computer Insight\PCICTL]
    "NSSregkey"=-
    "NSSuseHKLM"="1"
    Baie Dankie... Do I save this as a VBS or Bat ? *blush* that's a .reg

  9. #7

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,345
    Thank Post
    242
    Thanked 1,602 Times in 1,278 Posts
    Rep Power
    346
    You save the file as whatever.reg, then within a logon script enter:

    Code:
    regedit /S \\SERVERNAME\NETLOGON\whatever.reg

  10. Thanks to Michael from:

    Grommit (30th December 2009)



SHARE:
+ Post New Thread

Similar Threads

  1. Logon script .reg
    By Steven in forum Wireless Networks
    Replies: 17
    Last Post: 5th October 2009, 09:24 AM
  2. Onscreen keyboard- Need reg file
    By jrp131191 in forum Windows
    Replies: 1
    Last Post: 3rd October 2009, 10:27 AM
  3. script to change permissions on Reg Key
    By e_g_r in forum Windows
    Replies: 4
    Last Post: 16th February 2007, 06:48 PM
  4. deploy a reg file
    By alonebfg in forum Windows
    Replies: 12
    Last Post: 7th November 2006, 10:19 AM
  5. Loading .reg files in a startup script
    By Ric_ in forum Windows
    Replies: 7
    Last Post: 27th September 2005, 05:23 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
  •