Board index » Visual Studio » scripts

scripts

Visual Studio116
does anyone have any knowledge with logon scripts?



I have created a .bat file and used the following syntax



net use f:\\server\filename



i have placed this in the profile of the user and also placed it in the

sysvol netlogon folder on the server and when the user logs on it does not

work.



do i need the quotation marks? any ideas? thx


-
 

Re:scripts

Thomas wrote:



Quote
does anyone have any knowledge with logon scripts?



I have created a .bat file and used the following syntax



net use f:\\server\filename



i have placed this in the profile of the user and also placed it in the

sysvol netlogon folder on the server and when the user logs on it does not

work.



do i need the quotation marks? any ideas? thx



I have an FAQ on logon scripts linked here:



www.rlmueller.net/LogonScriptFAQ.htm">www.rlmueller.net/LogonScriptFAQ.htm



Specifically, in a batch file the command would be:



net use f: \\server\sharename



where "server" is the name of a server and "sharename" is the name of a

share.



--

Richard

Microsoft MVP Scripting and ADSI

Hilltop Lab - www.rlmueller.net">www.rlmueller.net





-

Re:scripts

Richard Mueller a écrit :

Quote
Thomas wrote:



>does anyone have any knowledge with logon scripts?

>

>I have created a .bat file and used the following syntax

>

>net use f:\\server\filename

>

>i have placed this in the profile of the user and also placed it in the

>sysvol netlogon folder on the server and when the user logs on it does not

>work.

>

>do i need the quotation marks? any ideas? thx

>

I have an FAQ on logon scripts linked here:



www.rlmueller.net/LogonScriptFAQ.htm">www.rlmueller.net/LogonScriptFAQ.htm



Specifically, in a batch file the command would be:



net use f: \\server\sharename



where "server" is the name of a server and "sharename" is the name of a

share.



If your wkstations are under w2k or xp you can also map a letter in a

path inside a share, ie net use f: \\server\share\folder1\folder2

You've also to take care to your script extension, the windows default

settings are not to show the files extensions, so your script may be

script.bat.txt (txt files aren't run)

HTH

-