Home All Groups Group Topic Archive Search About
Author
21 Apr 2009 2:48 PM
Omar Rodríguez
I have a server (W2003) and I had try to setup a windows logon script but
does not work at all.

The script is a batch file as follow:
@echo Off
net use /delete z: /yes
net use z: \\myserver01\folder
xcopy z:\validator /e /y c:\
@echo on

Can you please help us?


--
Greetings,

Author
21 Apr 2009 3:23 PM
Pegasus [MVP]
Show quote Hide quote
"Omar Rodríguez" <omarrodrigu***@hotmail.com> wrote in message
news:uTbVICpwJHA.3832@TK2MSFTNGP02.phx.gbl...
>
> I have a server (W2003) and I had try to setup a windows logon script but
> does not work at all.
>
> The script is a batch file as follow:
> @echo Off
> net use /delete z: /yes
> net use z: \\myserver01\folder
> xcopy z:\validator /e /y c:\
> @echo on
>
> Can you please help us?

You need to tell us what happens. Put a "pause" command on the line after
"xcopy" if you do not yet know yourself.
Author
21 Apr 2009 3:39 PM
Richard Mueller [MVP]
Show quote Hide quote
"Pegasus [MVP]" <n***@microsoft.com> wrote in message
news:%23kgFaUpwJHA.4620@TK2MSFTNGP06.phx.gbl...
>
> "Omar Rodríguez" <omarrodrigu***@hotmail.com> wrote in message
> news:uTbVICpwJHA.3832@TK2MSFTNGP02.phx.gbl...
>>
>> I have a server (W2003) and I had try to setup a windows logon script but
>> does not work at all.
>>
>> The script is a batch file as follow:
>> @echo Off
>> net use /delete z: /yes
>> net use z: \\myserver01\folder
>> xcopy z:\validator /e /y c:\
>> @echo on
>>
>> Can you please help us?
>
> You need to tell us what happens. Put a "pause" command on the line after
> "xcopy" if you do not yet know yourself.

Also, can the user (not an admin) run the batch file successfully after
logon? Or does it just appear to not run at all during logon? I have an FAQ
on how to setup logon scripts linked here:

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

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--
Author
21 Apr 2009 11:06 PM
David H. Lipman
Show quote Hide quote
From: "Richard Mueller [MVP]" <rlmueller-nospam@ameritech.nospam.net>


| "Pegasus [MVP]" <n***@microsoft.com> wrote in message
| news:%23kgFaUpwJHA.4620@TK2MSFTNGP06.phx.gbl...

>> "Omar Rodríguez" <omarrodrigu***@hotmail.com> wrote in message
>> news:uTbVICpwJHA.3832@TK2MSFTNGP02.phx.gbl...

>>> I have a server (W2003) and I had try to setup a windows logon script but
>>> does not work at all.

>>> The script is a batch file as follow:
>>> @echo Off
>>> net use /delete z: /yes
>>> net use z: \\myserver01\folder
>>> xcopy z:\validator /e /y c:\
>>> @echo on

>>> Can you please help us?

>> You need to tell us what happens. Put a "pause" command on the line after
>> "xcopy" if you do not yet know yourself.

| Also, can the user (not an admin) run the batch file successfully after
| logon? Or does it just appear to not run at all during logon? I have an FAQ
| on how to setup logon scripts linked here:

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

I'm glad you mention KiXtart in your page.  However not enough mention.

It is most likely more powerful than  VBScript, JScript, or other WSH scripting language
and easy to implement.
Peeking and poking the registry, COM automation, WMI, all are very simple in KiXtart and
the wealth of commands that are available have greatly expanded since it was first
introduced in the NT Resource Kit.

http://www.kixtart.org  KiXtart is CareWare.

PS:  My Multi AV Scanning Tool is written exclusivley in KiXtart


Author
22 Apr 2009 3:14 PM
Omar Rodríguez
Hello,
Thank you for reply.
I read the webpage that you suggest me, but I dont have any progress yet.
Any other suggestion?


--
Greetings,
Omar Rodríguez
Telecomunications Analyst & Programmer
VoiceTeam
Show quoteHide quote
"David H. Lipman" <DLipman~nospam~@Verizon.Net> wrote in message
news:uzfnQXtwJHA.2316@TK2MSFTNGP04.phx.gbl...
> From: "Richard Mueller [MVP]" <rlmueller-nospam@ameritech.nospam.net>
>
>
> | "Pegasus [MVP]" <n***@microsoft.com> wrote in message
> | news:%23kgFaUpwJHA.4620@TK2MSFTNGP06.phx.gbl...
>
>>> "Omar Rodríguez" <omarrodrigu***@hotmail.com> wrote in message
>>> news:uTbVICpwJHA.3832@TK2MSFTNGP02.phx.gbl...
>
>>>> I have a server (W2003) and I had try to setup a windows logon script
>>>> but
>>>> does not work at all.
>
>>>> The script is a batch file as follow:
>>>> @echo Off
>>>> net use /delete z: /yes
>>>> net use z: \\myserver01\folder
>>>> xcopy z:\validator /e /y c:\
>>>> @echo on
>
>>>> Can you please help us?
>
>>> You need to tell us what happens. Put a "pause" command on the line
>>> after
>>> "xcopy" if you do not yet know yourself.
>
> | Also, can the user (not an admin) run the batch file successfully after
> | logon? Or does it just appear to not run at all during logon? I have an
> FAQ
> | on how to setup logon scripts linked here:
>
> | http://www.rlmueller.net/LogonScriptFAQ.htm
>
> I'm glad you mention KiXtart in your page.  However not enough mention.
>
> It is most likely more powerful than  VBScript, JScript, or other WSH
> scripting language
> and easy to implement.
> Peeking and poking the registry, COM automation, WMI, all are very simple
> in KiXtart and
> the wealth of commands that are available have greatly expanded since it
> was first
> introduced in the NT Resource Kit.
>
> http://www.kixtart.org  KiXtart is CareWare.
>
> PS:  My Multi AV Scanning Tool is written exclusivley in KiXtart
>
>
> --
> Dave
> http://www.claymania.com/removal-trojan-adware.html
> Multi-AV - http://www.pctipp.ch/downloads/dl/35905.asp
>
>
Author
22 Apr 2009 3:28 PM
Pegasus [MVP]
"Omar Rodríguez" <omarrodrigu***@hotmail.com> wrote in message
news:OmSz011wJHA.4636@TK2MSFTNGP05.phx.gbl...
> Hello,
> Thank you for reply.
> I read the webpage that you suggest me, but I dont have any progress yet.
> Any other suggestion?

Did you try the "pause" command I suggested? Did you look at Richard's
suggestions?
Author
22 Apr 2009 3:37 PM
Omar Rodríguez
Yes, I did (pause commands and Richard's suggestions) and nothing. The
script batch file run in the computer without problems if the user click it,
but using the policies does not work.

Thank you.



--
Greetings,
Omar Rodríguez
Telecomunications Analyst & Programmer
VoiceTeam
Show quoteHide quote
"Pegasus [MVP]" <n***@microsoft.com> wrote in message
news:uVwjJ81wJHA.988@TK2MSFTNGP05.phx.gbl...
>
> "Omar Rodríguez" <omarrodrigu***@hotmail.com> wrote in message
> news:OmSz011wJHA.4636@TK2MSFTNGP05.phx.gbl...
>> Hello,
>> Thank you for reply.
>> I read the webpage that you suggest me, but I dont have any progress yet.
>> Any other suggestion?
>
> Did you try the "pause" command I suggested? Did you look at Richard's
> suggestions?
>
Author
22 Apr 2009 4:07 PM
Pegasus [MVP]
"Omar Rodríguez" <omarrodrigu***@hotmail.com> wrote in message
news:eYDxhC2wJHA.4648@TK2MSFTNGP06.phx.gbl...
> Yes, I did (pause commands and Richard's suggestions) and nothing. The
> script batch file run in the computer without problems if the user click
> it, but using the policies does not work.
>
> Thank you.

This means that there is something wrong with your policy or with the batch
file name/location you specify in the policy.
Author
22 Apr 2009 5:35 PM
Omar Rodríguez
The file name of the batch is Logon.bat and the path of the file is:
\\servername.local\SysVol\servername.locall\Policies\{0788D9F7-F816-405B-863F-34C10C805F4F}\User\Scripts\Logon

Thank you in advance.

--
Greetings,
Omar Rodríguez
Telecomunications Analyst & Programmer
VoiceTeam
Show quoteHide quote
"Pegasus [MVP]" <n***@microsoft.com> wrote in message
news:%23VGAfR2wJHA.5100@TK2MSFTNGP04.phx.gbl...
>
> "Omar Rodríguez" <omarrodrigu***@hotmail.com> wrote in message
> news:eYDxhC2wJHA.4648@TK2MSFTNGP06.phx.gbl...
>> Yes, I did (pause commands and Richard's suggestions) and nothing. The
>> script batch file run in the computer without problems if the user click
>> it, but using the policies does not work.
>>
>> Thank you.
>
> This means that there is something wrong with your policy or with the
> batch file name/location you specify in the policy.
>
Author
23 Apr 2009 11:48 AM
Omar Rodríguez
Can you please tellme the news group for policy issues?

Thank you.


--
Greetings,
Omar Rodríguez
Telecomunications Analyst & Programmer
VoiceTeam
Show quoteHide quote
"Omar Rodríguez" <omarrodrigu***@hotmail.com> wrote in message
news:OZpxcE3wJHA.3676@TK2MSFTNGP05.phx.gbl...
> The file name of the batch is Logon.bat and the path of the file is:
> \\servername.local\SysVol\servername.locall\Policies\{0788D9F7-F816-405B-863F-34C10C805F4F}\User\Scripts\Logon
>
> Thank you in advance.
>
> --
> Greetings,
> Omar Rodríguez
> Telecomunications Analyst & Programmer
> VoiceTeam
> "Pegasus [MVP]" <n***@microsoft.com> wrote in message
> news:%23VGAfR2wJHA.5100@TK2MSFTNGP04.phx.gbl...
>>
>> "Omar Rodríguez" <omarrodrigu***@hotmail.com> wrote in message
>> news:eYDxhC2wJHA.4648@TK2MSFTNGP06.phx.gbl...
>>> Yes, I did (pause commands and Richard's suggestions) and nothing. The
>>> script batch file run in the computer without problems if the user click
>>> it, but using the policies does not work.
>>>
>>> Thank you.
>>
>> This means that there is something wrong with your policy or with the
>> batch file name/location you specify in the policy.
>>
>
>
Author
23 Apr 2009 4:12 PM
Pegasus [MVP]
"Omar Rodríguez" <omarrodrigu***@hotmail.com> wrote in message
news:OMsripAxJHA.3832@TK2MSFTNGP02.phx.gbl...
> Can you please tellme the news group for policy issues?
>
> Thank you.

I note that you're using Outlook Express as a newsreader. Click
"news.microsoft.com", then type the word "policy" to see all the newsgroups
with "Policy" in their name.
Author
24 Apr 2009 7:53 PM
Omar Rodríguez
Ok. I'll look in others news group too.


--
Greetings,
Omar Rodríguez
Telecomunications Analyst & Programmer
VoiceTeam
Show quoteHide quote
"Pegasus [MVP]" <n***@microsoft.com> wrote in message
news:%23ewV44CxJHA.4636@TK2MSFTNGP05.phx.gbl...
>
> "Omar Rodríguez" <omarrodrigu***@hotmail.com> wrote in message
> news:OMsripAxJHA.3832@TK2MSFTNGP02.phx.gbl...
>> Can you please tellme the news group for policy issues?
>>
>> Thank you.
>
> I note that you're using Outlook Express as a newsreader. Click
> "news.microsoft.com", then type the word "policy" to see all the
> newsgroups with "Policy" in their name.
>
Author
23 Apr 2009 4:02 PM
RemS
"Omar Rodríguez" wrote:

> Yes, I did (pause commands and Richard's suggestions) and nothing. The
> script batch file run in the computer without problems if the user click it,
> but using the policies does not work.
>
> Thank you.
>

Was this user a member of the local Administrators group?
A default Policy can disallow normal users to write files into the root of
the system drive. Is xcopy also copying files to the root?

Or, Is it possible that Z: previously was mapped to an other network path?
Then there should to be a 2-3 seconds pause in the batch before you can
reliable re-use the same drive letter that was just released for connecting
to an different path.

btw,
xcopy does not nessesarily need a mapped drive as the source when the source
path is a share.
You can try this batch (it provide some time between remapping ther drive)


@echo Off
Net Use z: /d /y
xcopy "\\myserver01\folder\validator" /e /y c:\
net use z: "\\myserver01\folder" /PERSISTENT:no
echo on


\Rems
Author
24 Apr 2009 7:52 PM
Omar Rodríguez
Thank you for reply.
I just tried your suggestion Rems, but nothing.

--
Greetings,
Omar Rodríguez
Telecomunications Analyst & Programmer
VoiceTeam
Show quoteHide quote
"\RemS" <R***@discussions.microsoft.com> wrote in message
news:9ECE489C-66B2-4DE9-98CC-6ABF3AFAD373@microsoft.com...
> "Omar Rodríguez" wrote:
>
>> Yes, I did (pause commands and Richard's suggestions) and nothing. The
>> script batch file run in the computer without problems if the user click
>> it,
>> but using the policies does not work.
>>
>> Thank you.
>>
>
> Was this user a member of the local Administrators group?
> A default Policy can disallow normal users to write files into the root of
> the system drive. Is xcopy also copying files to the root?
>
> Or, Is it possible that Z: previously was mapped to an other network path?
> Then there should to be a 2-3 seconds pause in the batch before you can
> reliable re-use the same drive letter that was just released for
> connecting
> to an different path.
>
> btw,
> xcopy does not nessesarily need a mapped drive as the source when the
> source
> path is a share.
> You can try this batch (it provide some time between remapping ther drive)
>
>
> @echo Off
> Net Use z: /d /y
> xcopy "\\myserver01\folder\validator" /e /y c:\
> net use z: "\\myserver01\folder" /PERSISTENT:no
> echo on
>
>
> \Rems
>