Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Administration > Trivial startup script won't run in Vista

Reply
Thread Tools Display Modes

Trivial startup script won't run in Vista

 
 
Jeff Vandervoort
Guest
Posts: n/a

 
      08-06-2007
I have a very simple Startup script run by a GPO that I've used in Win XP
for a long time without any problems. It needed a slight modification for
Vista.

The Vista portion of the script runs OK interactively with a standard user
account or an admin account, but does NOT run as a Startup script. I've also
tried it as a Logon script, where it also fails. Here is the script--

-----------------------
VER | FIND "Version 5."
IF %ERRORLEVEL%==1 GOTO VistaOrHigher
XCOPY /o /h /s /y "%0\..\5XFiles" "%ALLUSERSPROFILE%\Desktop\"
ATTRIB +R "%ALLUSERSPROFILE%\Desktop\Shared Documents"
GOTO End

:VistaOrHigher
XCOPY /o /h /s /y "%0\..\6XFiles" "%Public%\Desktop\"
ATTRIB +R "%Public%\Desktop\Shared Documents"
:End
-----------------------

Using RSOP, I've verified that the GPO is being processed by the computers.
ACLs on the destination folder are default, as set by Windows Setup. There
are no errors for this GPO in the Windows logs.

I've modified the XCOPY line to redirect XCOPY output to a file in %TEMP%;
the log file is not created when run by GPO. It is created (and contains no
surprises) when run interactively. So it appears that the script, or at
least that line in the script, is not running when executed by GPO.

Any idea why this is failing?

--
Jeff Vandervoort
JRVsystems
http://www.jrvsystems.com

 
Reply With Quote
 
 
 
 
ticss
Guest
Posts: n/a

 
      10-07-2008

Hi... Same problem here... did you found a solution? Thanks...


--
ticss
Posted via http://www.vistaheads.com

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Script Host has no script engine for ".js" files Stephan G. Windows Vista General Discussion 9 04-24-2008 08:04 PM
Vista Startup Script problem (loading registry hive issue) ejmichaud@hotmail.com Windows Vista Administration 5 03-11-2008 11:27 AM
Why won't this script work in Vista? ToddAndMargo Windows Vista General Discussion 5 01-28-2008 06:16 AM
Vista services WMI script Richard Stallmann Windows Vista General Discussion 0 03-21-2007 10:56 PM
Trivial Question - clock gadget - more options? Digital? boe Windows Vista General Discussion 3 02-06-2007 02:46 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59