Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista account administration

Vista - Trivial startup script won't run in Vista

Reply
 
Old 08-05-2007   #1 (permalink)
Jeff Vandervoort


 
 

Trivial startup script won't run in Vista

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


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Startup-script to change hostname and IP if not OK VB Script
Trivial, but annoying problem with DVD-Drive Vista General
Startup Script Via GPO... Where Are Parameters Stored? VB Script
Vista Startup Script problem (loading registry hive issue) Vista account administration
Trivial Question - clock gadget - more options? Digital? Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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