|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Logon script helpI 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,
Show quote
Hide quote
"Omar Rodríguez" <omarrodrigu***@hotmail.com> wrote in message You need to tell us what happens. Put a "pause" command on the line after 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? "xcopy" if you do not yet know yourself.
Show quote
Hide quote
"Pegasus [MVP]" <n***@microsoft.com> wrote in message Also, can the user (not an admin) run the batch file successfully after 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. 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
Show quote
Hide quote
From: "Richard Mueller [MVP]" <rlmueller-nospam@ameritech.nospam.net> I'm glad you mention KiXtart in your page. However not enough mention.| "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 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 Hello,
Thank you for reply. I read the webpage that you suggest me, but I dont have any progress yet. Any other suggestion? -- Show quoteHide quoteGreetings, Omar Rodríguez Telecomunications Analyst & Programmer VoiceTeam "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 > > "Omar Rodríguez" <omarrodrigu***@hotmail.com> wrote in message Did you try the "pause" command I suggested? Did you look at Richard's 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? suggestions? 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. -- Show quoteHide quoteGreetings, Omar Rodríguez Telecomunications Analyst & Programmer VoiceTeam "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? > "Omar Rodríguez" <omarrodrigu***@hotmail.com> wrote in message This means that there is something wrong with your policy or with the batch 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. file name/location you specify in the policy. 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. -- Show quoteHide quoteGreetings, 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. > Can you please tellme the news group for policy issues?
Thank you. -- Show quoteHide quoteGreetings, Omar Rodríguez Telecomunications Analyst & Programmer VoiceTeam "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. >> > > "Omar Rodríguez" <omarrodrigu***@hotmail.com> wrote in message I note that you're using Outlook Express as a newsreader. Click news:OMsripAxJHA.3832@TK2MSFTNGP02.phx.gbl... > Can you please tellme the news group for policy issues? > > Thank you. "news.microsoft.com", then type the word "policy" to see all the newsgroups with "Policy" in their name. Ok. I'll look in others news group too.
-- Show quoteHide quoteGreetings, Omar Rodríguez Telecomunications Analyst & Programmer VoiceTeam "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. > "Omar RodrÃguez" wrote: Was this user a member of the local Administrators group?> 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. > 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 Thank you for reply.
I just tried your suggestion Rems, but nothing. -- Show quoteHide quoteGreetings, Omar Rodríguez Telecomunications Analyst & Programmer VoiceTeam "\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 >
Batch Script Text file parse
Drive Mapping in Server 2008 Query OU for disabled computers Issues when launching a vbscript file from hta interface file Re: Updating AD with a script Command to add registry entry convert vb script to exe Total size of sql databases Scripting, Local Admin Account How to query archived event log |
|||||||||||||||||||||||