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.
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.
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
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] )
Hi i have attached my script for you to have a look it basically makes the theme silver
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.
preferences is a 2008 feature isn't it? they sound pretty useful...
stephen, have you got the actual login script that you are using? not just the reg file you are merging?
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.
is the computer not part of a domain then?
Yep all computers on the network are joined to the domain, Sorry about that forgot to mention.
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?
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
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
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.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)