Real Geek Forums  

Go Back   Real Geek Forums > Archives > Operating Systems > Windows Vista > Windows Vista Administration

Notices

Reply

Trivial startup script won't run in Vista

 

LinkBack Thread Tools Display Modes
Old 08-06-2007, 02:34 AM   #1 (permalink)
Default 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

Jeff Vandervoort
Guest
 
Posts: n/a
Reply With Quote  
Reply

Tags
None

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may 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 On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Detect Vista in Logon Script Dave Windows Vista Administration 11 05-25-2008 06:01 PM
slow startup Vista kris.vandevijver@gmail.com Windows Vista Performance & Maintenance 9 07-17-2007 09:05 AM
Why doesn't this mapping script work in Vista? mark1210 Windows Vista Networking & Sharing 5 04-05-2007 06:21 PM
Startup script Rija Windows XP Configuration & Management 1 09-02-2005 02:36 PM
shutdown in startup script Gerhard Schaden Windows XP Embedded 5 10-04-2003 12:04 AM


All times are GMT. The time now is 10:19 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright © 2005 - 2007 RealGeek.com. All rights reserved.

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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90