Link to home
Start Free TrialLog in
Avatar of Chris Jefferies
Chris JefferiesFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Login script to map network drive not working

Hi,
So I have the below login script set for all users to map a network drive located on another network which the office has a VPN tunnel to:

@echo off

echo Please type your network user name

set /p username=


echo Please type your network password

set /p password=

Net use Z: \\Share\Shared$ /user:DOMAIN\%username% %password% /persistent:YES

The script works fine when run manually, but I just cant seem to see why it doesn't run on logon. When I pull gpresult it states it has applied successfully.

Thanks
Craig
ASKER CERTIFIED SOLUTION
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
GPP best option for drive mappings