+ Post New Thread
Results 1 to 6 of 6
Windows Server 2000/2003 Thread, Regedit /s in Technical; I am looking to run add a registry entry when a user first logs onto a workstation via group policy ...
  1. #1

    Join Date
    May 2008
    Posts
    28
    Thank Post
    9
    Thanked 2 Times in 2 Posts
    Rep Power
    13

    Regedit /s

    I am looking to run add a registry entry when a user first logs onto a workstation via group policy by having a startup script (.bat) run a .reg file.
    The batch file is "regedit /s outlook.reg" which runs but still requires user intervention to actually install the reg change although i am using the /s silent switch. The strange thing is is that if i go into the user gpo>user configuration>administrative templates>system and enable "prevent access to registry editing tools" and the user then logs on, the user gets the error message stating that they are unable to edit the registry due to restrictions (which is what i would expect) they can then click ok and it enters the reg key anyway!

    I would either like the regedit /s key to do its stuff I.E not prompt the user to add the key or remove the dialogue box stating that registry editing tools has been disabled by your administrator.

    Any suggestions?

  2. #2
    Bezwick's Avatar
    Join Date
    Feb 2008
    Location
    Nottinghamshire
    Posts
    355
    Thank Post
    92
    Thanked 56 Times in 42 Posts
    Rep Power
    25
    You might find it easier to run using a script instead as that wont require user intervention to modify registry settings.

    Here is a script we use that modifies several registry settings, you might be able to use it as a guide on how to make one that changes the settings you want.
    __________________________________________________ _____________________________________
    Set WshShell = CreateObject("WScript.Shell")
    On error Resume Next

    WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\In ternet Settings\MaxConnectionsPer1_0Server",10,"REG_DWORD "
    WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\In ternet Settings\MaxConnectionsPerServer",10,"REG_DWORD"
    WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Ex plorer\Desktop\CleanupWiz\NoRun",0,"REG_DWORD"
    WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Ex plorer\Advanced\EnableBalloonTips",0,"REG_DWORD"
    WSHShell.RegWrite "HKCU\software\microsoft\windows\CurrentVersion\Ex plorer\Advanced\NoNetCrawling",1,"REG_DWORD"
    WSHShell.RegWrite "HKCU\Control Panel\Desktop\MenuShowDelay", 999
    WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Po licies\Explorer\NoLowDiskSpaceChecks",0,"REG_DWORD "
    WSHShell.RegWrite "HKCU\Control Panel\Desktop\DragHeight",4
    WSHShell.RegWrite "HKCU\Control Panel\Desktop\DragWidth",4
    WSHShell.RegWrite "HKLM\System\CurrentControlSet\Control\PriorityCon trol\IRQ8PRiority" ,1,"REG_DWORD"
    WSHShell.RegWrite "HKLM\System\CurrentControlSet\Control\Update\Upda teMode" ,0,"REG_DWORD"
    WSHShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Ex plorer\AlwaysUnloadDLL\","1"
    WSHShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf","@SY SoesNotExist"

    __________________________________________________ ___________________________________________

    good luck

  3. Thanks to Bezwick from:

    madcyryl (24th April 2009)

  4. #3

    Join Date
    Apr 2007
    Location
    Christchurch
    Posts
    420
    Thank Post
    41
    Thanked 64 Times in 62 Posts
    Rep Power
    25
    Hiyah ... just a thought, have you tried using the full path to regedit? ie c:\windows\regedit.exe /s outlook.reg

    Ive always done it that way and have never had any problems

    Cheers

    Brian

  5. Thanks to Brpilot99 from:

    madcyryl (24th April 2009)

  6. #4

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,156
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    124
    It's just possible that the "/" is somehow being lost - try doing it with regedit -s

    The other thing you can try to see what's going on is to run sysinternals procexp when the regedit pop up is on screen - this will tell you the exact command that has been used and you can see if it's regedit that is somehow misbehaving or if it's being called in the wrong way.

  7. #5


    Join Date
    Jul 2007
    Location
    Rural heck
    Posts
    2,662
    Thank Post
    120
    Thanked 434 Times in 353 Posts
    Rep Power
    126
    You probably need to specify the location of the .reg file and it'll need to be somewhere a users can access it. Bare in mind that the script is running at the workstation, not the server.

    You could also use the reg write command Reg - Edit Registry

  8. #6

    Join Date
    Jun 2008
    Posts
    718
    Thank Post
    118
    Thanked 64 Times in 52 Posts
    Rep Power
    31
    In a .BAT file I have this..

    Code:
    @echo off
    %windir%\regedit.exe /s \\Servername\netlogon\LogonScripts\outlook.reg
    Hope this helps.

SHARE:
+ Post New Thread

Similar Threads

  1. disable IE7 popup blocker via regedit
    By LCPSWolf in forum Windows
    Replies: 1
    Last Post: 19th March 2009, 03:20 PM
  2. Regedit Silent Mode
    By karldenton in forum Windows
    Replies: 4
    Last Post: 8th August 2008, 02:54 PM
  3. windows defender & regedit
    By projector1 in forum How do you do....it?
    Replies: 2
    Last Post: 12th May 2008, 08:43 AM
  4. regedit/folder options
    By kevin_lane in forum Windows
    Replies: 1
    Last Post: 18th April 2008, 12:24 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
  •