+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 18
Wireless Networks Thread, Logon script .reg in Technical; Hi, I have a .reg file which is in Logon scripts and it applys the change for what i want ...
  1. #1
    Steven's Avatar
    Join Date
    Apr 2007
    Location
    Morecambe
    Posts
    114
    Thank Post
    6
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Logon script .reg

    Hi, I have a .reg file which is in Logon scripts and it applys the change for what i want etc but it asks if you want to apply the change yes or no How can i make it so it automatically says yes without prompting you.

    Thanks Steven.

  2. #2

    Join Date
    Oct 2008
    Location
    Worcestershire
    Posts
    12
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Wink

    Hi there, I've done this before to merge a registry change for users' keyboard layout. Not sure how your script is structured, but mine was tagged onto the bottom of the user's logon script as follows:

    %systemroot%\regedit.exe /s \\<your-server-name>\<your-hidden-share-name>\<your-registry-filename>.reg

    the /s after "regedit.exe" makes it a silent merge so the user doesn't have to intervene.

    hope that helps...let me know,

    Arge

  3. #3

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,068 Times in 625 Posts
    Rep Power
    740
    I do quite a bit of registry manipulation for our workstations - but I tend to use the RegWrite function in AutoIT:

    RegWrite ( "keyname" [,"valuename", "type", value] )

  4. #4
    Steven's Avatar
    Join Date
    Apr 2007
    Location
    Morecambe
    Posts
    114
    Thank Post
    6
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Hi i have attached my script for you to have a look it basically makes the theme silver
    Attached Files Attached Files

  5. #5

    AngryTechnician's Avatar
    Join Date
    Oct 2008
    Posts
    3,730
    Thank Post
    698
    Thanked 1,211 Times in 761 Posts
    Rep Power
    394
    I've recently begun using Group Policy Preferences for this sort of thing. I'm liking it. I may never write another ADM template again, and I was recently able to gut our global login script of all its increasingly unreliable VBScript drive mapping code.

  6. #6

    Join Date
    Oct 2008
    Location
    Worcestershire
    Posts
    12
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    preferences is a 2008 feature isn't it? they sound pretty useful...

  7. #7

    Join Date
    Oct 2008
    Location
    Worcestershire
    Posts
    12
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    stephen, have you got the actual login script that you are using? not just the reg file you are merging?

  8. #8
    Steven's Avatar
    Join Date
    Apr 2007
    Location
    Morecambe
    Posts
    114
    Thank Post
    6
    Thanked 1 Time in 1 Post
    Rep Power
    0
    That script 'theme' which i uploaded is a .reg and thats just in startup scripts if you could download that and then save it as a .reg and then run it till it doesnt ask to apply the setting then that would be really good, Thanks steven.

  9. #9

    Join Date
    Oct 2008
    Location
    Worcestershire
    Posts
    12
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    is the computer not part of a domain then?

  10. #10
    Steven's Avatar
    Join Date
    Apr 2007
    Location
    Morecambe
    Posts
    114
    Thank Post
    6
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Yep all computers on the network are joined to the domain, Sorry about that forgot to mention.

  11. #11

    Join Date
    Oct 2008
    Location
    Worcestershire
    Posts
    12
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    ok, so rather than do it locally you could make the change via the server. when the user logs on, do they run a logon script from the server? if so is it a .bat file?

  12. #12
    Steven's Avatar
    Join Date
    Apr 2007
    Location
    Morecambe
    Posts
    114
    Thank Post
    6
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Nope they dont the only .bat is mapping network drives the other is that .reg which works only problem is it asks to apply yes/no etc

  13. #13

    Join Date
    Oct 2008
    Location
    Worcestershire
    Posts
    12
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    right. let me explain a bit more about how mine worked...

    when the user logs on, they run a .bat file which is stored on the server in the sysvol folder and connects their network drives and printers. this .bat file is a property of their user account in Active Directory. I therefore added the line

    %systemroot%\regedit.exe /s \\<your-server-name>\<your-hidden-share-name>\<your-registry-filename>.reg

    to the user's logon script (.bat file) and shared the registry file from a folder on the network that everyone had access to. The result being that when the .bat is run at logon it references the .reg file and makes the registry change silently.

    does this sound something you could replicate on your network?

    i'm still working on your problem btw

  14. #14

    Join Date
    Oct 2008
    Location
    Worcestershire
    Posts
    12
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Smile

    ok, this works: (its not the nicest solution, but it does work)

    create a shared folder somewhere on your users machine. drop your registry file into that folder. (we'll assume your computer is called stephen and your share called silvertheme)

    check you can access the folder from the run command by typing \\stephen\silvertheme

    if so you'll see you .reg file.

    in the users startup folder create a .bat file with the line

    %systemroot%\regedit.exe /s \\stephen\silvertheme\theme.reg

    log off and back on again a couple of times and it should work.

    its a little crude, but i've tested it a few times now and it works.

  15. #15
    Steven's Avatar
    Join Date
    Apr 2007
    Location
    Morecambe
    Posts
    114
    Thank Post
    6
    Thanked 1 Time in 1 Post
    Rep Power
    0
    When i run the command it says: UNC paths are not supported defaulting to windows directory, also how can i get this change accross to all machines?

    Thanks a lot for the help as well.

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Logon Script Help
    By djones in forum Scripts
    Replies: 17
    Last Post: 13th March 2008, 06:00 PM
  2. Logon script & Printer script question.
    By Galway in forum Windows
    Replies: 3
    Last Post: 29th August 2007, 11:00 AM
  3. script to change permissions on Reg Key
    By e_g_r in forum Windows
    Replies: 4
    Last Post: 16th February 2007, 05:48 PM
  4. Yet another Logon Script
    By ajbritton in forum Windows
    Replies: 3
    Last Post: 19th June 2006, 09:47 AM
  5. Loading .reg files in a startup script
    By Ric_ in forum Windows
    Replies: 7
    Last Post: 27th September 2005, 04: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
  •