General discussion

Locked

Another Logon Script question

By Blackcurrant ·
Hello everyone

I have created two batch files and saved them to the sysvol\sysvol\domain\scripts (NETLOGON) folder on our domain controller.

The appropriate script name is then placed in the Logon Script field in the properties sheet for each user account.

Each script copies a file from a share on another server to a folder on the users local PC.

The syntax is:

@echo off
rem batch file that copies the domain.co.uk gateway info to c:\pmail
xcopy \\orion\gateway\apsarch gateway\aps.sys c:\pmail\PMGATE.SYS /q /y
exit

It effectively changes the default address for sent mail (Pegasus Mail).

But, it does not work.

Any ideas?

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by pifflemaster In reply to Another Logon Script ques ...

Try using quotes around the apsarch gateway.
i.e. "apsarch gateway"
So the command would look like:
xcopy \\orion\gateway\"apsarch gateway"\aps.sys c:\pmail\PMGATE.SYS /q /y

Collapse -

by Blackcurrant In reply to

Thanks but I had already tried this with the same result.

Collapse -

by exNN In reply to Another Logon Script ques ...

Just use the 8 char old name in the path \\orion\gateway\apsarc~1\aps.sys c:\pmail.\PMGATE.SYS /q /y

Good luck

Collapse -

by Blackcurrant In reply to

Poster rated this answer.

Collapse -

by Blackcurrant In reply to Another Logon Script ques ...

Whoops! Thanks for the suggestions Piffle etc, I copied the wrong version of the file. During troubleshooting I added the "" marks to the entire \\orion\... path, but it did not make any difference.

Collapse -

by Blackcurrant In reply to Another Logon Script ques ...

I am a twit. I had not given the users write permission on the destination folder.

Collapse -

by Blackcurrant In reply to Another Logon Script ques ...

This question was closed by the author

Back to Windows Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums