Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logon Script Directory not found

Status
Not open for further replies.

kazurin

IS-IT--Management
Aug 16, 2006
5
US
Set wshNetwork = CreateObject("WScript.Network")
wshNetwork.MapNetworkDrive "t:","\\server\o$\USERS" & wshNetwork.UserName


This gives me a directory not found, now the question is is there a directory on win2003 server were there is a list of users, which i think this line needs to continue.??
 
I see two problems with this

wshNetwork.MapNetworkDrive "t:","\\server\[red]o$[/red]\USERS[red]\[/red]" & wshNetwork.UserName

You should not be using an administrative share. Your users won't have access to it and if they do your security is not where it should be. Second you need a backslash after the users share name.

I advise you read my FAQ on login scripts. faq329-5798


I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
 
wshNetwork.MapNetworkDrive "t:","\\server\USERS" & wshNetwork.UserName

I changed it to this but i still get directory not found, is there supposed to be a list of users here or why is it still not seeing it?
 
First off do you have a share at that location?

Second do you have user directories in that folder?

I don't understand what you mean by is there supposed to be a list of users there. You will find a listing of all of your users in AD Users & Computers.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
 
Insert next string before mapping and look at result:
wscript.echo "t:","\\server\o$\USERS" & wshNetwork.UserName

WBR, Vadim V. Petukhov,
MCSE2003, CCEA4.0
vadimp@yandex.ru
 
Odissey, what is the purpose you hope the original poster will accomplish with your post?

As I have pointed out above, the output of that would look like:

t: \\server\o$\USERSmarkmac

When the desired output would need to be something like:
t: \\server\USERS\markmac

...based on the assumption that there is a share called Users on server.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
 
First off do you have a share at that location?

Second do you have user directories in that folder?

Yes there is a share at that location, and no there are no user directories in that directory, Im i supposed to create each user directory. Or how are this directories supposed to be created.

Thanks for the replies
 
You are trying to map a drive to a folder that does not exist, so it only makes sense you would have a failure.

You need to create the folders and assign permissions to them first.

You should consider how the security needs to be configured. Should other user be able to access each others folders? Or should the folders be private? Configure your NTFS permissions based on those decisions.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top