Question Locked

Logon Script Error - Drive Mapping

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello

First time i've tried creating a vbscript and also my first post. Trying to create a script that will automatically log our thinclient users on to a network drive\folder when they login to windwos. I think I got it written correctly and I've put into the startup folder, but I am receiving the following message whenever it tries to start... "There is no file extension in "C:\Documents". Any ideas?

here's the vbs
set Net = WScript.CreateObject("WScript.Network")
Net.MapNetworkDrive "X:", "\\server\file location", False, "domain\employee", "password"

3 replies

by 1bn0

Sapien Technologies
Logon Script Generator

Download page:
http://www.primaltools.com/freetools/

Download link:
http://www.primaltools.com/freetools/signup.asp?tool=logonhta

I don't know what the False part is for , but shoulldn't the user be granted access based on the credentials already provided at logon?

In my logon scripts I map drive to shares based on Security Group memberships.

The Security Group is assigned access rights in the shares ACL. Then, if the user is a member of the group, the logon script maps the drive letter to the appropriate share and access is granted based on the user being a member of the security group.

This discussion is closed to new replies.