Jump to content

Recommended Posts

Posted

We are having problems with login scripts not mapping network shares. The

login script is:

 

net use * /delete /yes

net use S: \\afpdcsrv\customer service

net use z: \\afpdcsrv\user storage

  • Replies 3
  • Created
  • Last Reply
Guest Richard Mueller [MVP]
Posted

Re: Script

 

 

"Anna" <Anna@discussions.microsoft.com> wrote in message

news:4D3B2F59-DEB7-4746-951B-F3448BE15843@microsoft.com...

> We are having problems with login scripts not mapping network shares. The

> login script is:

>

> net use * /delete /yes

> net use S: \\afpdcsrv\customer service

> net use z: \\afpdcsrv\user storage

>

 

Can the user run the script after logging on without error and the drives

are mapped? If so, perhaps the script is not even running during logon. If

the user gets error messages you can troubleshoot.

 

How do you specify the logon script, on the Profile Tab of the user

properties in ADUC, or using a Group Policy? If you use the Profile tab to

configure logon scripts for each individual user the batch file (*.bat)

should be saved in the folder:

 

%SystemRoot%\sysvol\sysvol\<domain DNS name>\scripts

 

If you use Group Policy, navigate to "User Configuration", "Windows

Settings", "Scripts (Logon/Logoff)", "Logon". Best practice is to copy the

file you want for the Logon script to the Windows clipboard, open the

"Logon" setting in the Group Policy editor, press the "Show Files..."

button, and paste the desired file in the dialog. This places the file in

the correct location. For more see this FAQ:

 

http://www.rlmueller.net/LogonScriptFAQ.htm

 

--

Richard Mueller

Microsoft MVP Scripting and ADSI

Hilltop Lab - http://www.rlmueller.net

--

Guest Ryan Hanisco
Posted

RE: Script

 

Have you tried:

 

net use z: "\\afpdcsrv\user storage"

 

for the last line?

--

Ryan Hanisco

MCSE, MCTS: SQL 2005, Project+

http://www.techsterity.com

Chicago, IL

 

Remember: Marking helpful answers helps everyone find the info they need

quickly.

 

 

"Anna" wrote:

> We are having problems with login scripts not mapping network shares. The

> login script is:

>

> net use * /delete /yes

> net use S: \\afpdcsrv\customer service

> net use z: \\afpdcsrv\user storage

>

Posted

Re: Script

 

The scripts are not part of a group policy but are in \\dcname\sysvol\domain

name\scripts. I troubleshot the error messages with the login scripts. How

do I keep the drive mappings as I have them in the login script even if a

user manually maps their own drive?

 

"Richard Mueller [MVP]" wrote:

>

> "Anna" <Anna@discussions.microsoft.com> wrote in message

> news:4D3B2F59-DEB7-4746-951B-F3448BE15843@microsoft.com...

> > We are having problems with login scripts not mapping network shares. The

> > login script is:

> >

> > net use * /delete /yes

> > net use S: \\afpdcsrv\customer service

> > net use z: \\afpdcsrv\user storage

> >

>

> Can the user run the script after logging on without error and the drives

> are mapped? If so, perhaps the script is not even running during logon. If

> the user gets error messages you can troubleshoot.

>

> How do you specify the logon script, on the Profile Tab of the user

> properties in ADUC, or using a Group Policy? If you use the Profile tab to

> configure logon scripts for each individual user the batch file (*.bat)

> should be saved in the folder:

>

> %SystemRoot%\sysvol\sysvol\<domain DNS name>\scripts

>

> If you use Group Policy, navigate to "User Configuration", "Windows

> Settings", "Scripts (Logon/Logoff)", "Logon". Best practice is to copy the

> file you want for the Logon script to the Windows clipboard, open the

> "Logon" setting in the Group Policy editor, press the "Show Files..."

> button, and paste the desired file in the dialog. This places the file in

> the correct location. For more see this FAQ:

>

> http://www.rlmueller.net/LogonScriptFAQ.htm

>

> --

> Richard Mueller

> Microsoft MVP Scripting and ADSI

> Hilltop Lab - http://www.rlmueller.net

> --

>

>

>


×
×
  • Create New...