Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi
We have Windows 2003 server with XP pro client on a network.
I have some login script that maps drives, install printers at login. They are .bat and .vbs files. I have also written a .vbs file that disables the dial-up check box (log on using dial-up connection) that adds to the register but it doesn't work.
Any suggestions? The login users don't have admin rights to their local machine but I thought at login, you can do this with a vbs script. It's a rule that the domain and client machine can do. Is it only for simple map drives and not for altering the registry?
Thanks
Ken

Must be a problem with the script. Have you tested the script on a machine, logged on as a local administrator and monitor the registry key it's spose to alter before, and after, you run the script? When doing that, does it change the key? If it doesn't, that script needs to be edited because it doesn't work. :)
I'm almost positive this can be done via a GPO, which are much easier to adjust than a lenghtly script file.
I will check and get back to you with a soultion.
Holy Wow.

Thanks
I have checked the .vbs script and it works if I login as adminitrator of the local machine. I couldn't find it in GPO that's why I try this method.

it shouldnt be a login script since those arent applied until a user logs in, it should be a startup script, set in group policy, and make sure your putting the script in the correct directory in your SYSVOL share

Isn't this registry change system wide, and it requires a restart. After running it once as an administrator and restarting the button should be disabled, for all accounts. Correct? That machine that you tested it on, did that button ever come back on?
Holy Wow.

When I was testing it by logging in as Administrator of the local machine. Double clicked on the .vbs script and logoff.
The button was greyed out. Didin't have to restart

i think i figured it out:
open regedit and find this key:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
then right click and make a REG_SZ (String Value)
set the name as RasDisable key and set its value to 1

i know what the registry key is and I have created a .vbs script to add this in, the problem is running the .vbs script at login.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |