Hi there.
I am currently trying to edit a login script batch file in order to change the decimal value of a registry key.
This is the text for my batch file (actual server names have been replaced with ServerName):-
net use p: /delete
net use q: /delete
net use t: /delete
net use p: 'serverName'
net use q: 'serverName'
net use t: 'serverName'
regedit /s \\128.54.12.17\netlogon\Del_disableditems.bat
/**regedit.exe /s ScheduleContactManager.reg**/
ftype MSPaper.Document="C:\Program Files\Common Files\Microsoft
Shared\MODI\11.0\MSPVIEW.EXE"
assoc .tif=MSPaper.Document
ftype MSPaper.Document="C:\Program Files\Common Files\Microsoft
Shared\MODI\11.0\MSPVIEW.EXE"
assoc .tiff=MSPaper.Document
This login script is currently used for when certain users log in, i added the part marked with /** **/.
The .reg file is saved in the same folder as the .bat file, I have gone into AD and changed my logon script to this newly created one but it doesn't seem to edit the registry when i log back in.
Any ideas would be very welcome.
David
Does it import if you add it manually?
you could try bolting a pause at the end and asking Group Policy to show logon script in process should tell you stuff.
I think (not sure, was a while ago) that I had problems with importing stuff into the registry because group policy denied access to it for students, so I had to come up with an alternative solution - I added it to the mandatory profile.
I think you should add the full path name before ScheduleContactManager.reg
bio..
Im not brilliant with bat scripts as have not really played around with them much but shouldn't the following line
Del_disableditems.bat
Be a .reg file extension ?
Just at the start of the line is regedit ( I mean unless you are using the del_disableditems.bat to call the reg file or something ( not sure )
ok so this morning i played around again and i seemed to have this fixed. However, i need to modify the registry within a citrix environment.
I have tried this but without success, the registry changes on my local machine when i log in but not when i log in to a citrix session. Both my local login and citrix login are using the same login script.
There are currently 1 users browsing this thread. (0 members and 1 guests)