Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

Trivial startup script won't run in Vista

microsoft.public.windows.vista.administration accounts passwords






Speedup My PC
Reply
  #1 (permalink)  
Old 08-06-2007
Jeff Vandervoort
 

Posts: n/a
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

Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-07-2008
 

Join Date: Mar 2008
Posts: 1
ticss is on a distinguished road
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Trivial startup script won't run in Vista
Hi... Same problem here... did you found a solution? Thanks...
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

vB 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
Allowing prgrams to run at startup chuck1217 microsoft.public.windows.vista.general 1 07-19-2007 02:24
Can you run a script when network locaton changes P Cause microsoft.public.windows.vista.networking sharing 0 06-11-2007 22:14
Scan Disk does not run on startup Jeff microsoft.public.windows.vista.performance maintenance 10 06-06-2007 23:46
Run script Mark Goldin microsoft.public.windows.vista.general 6 05-17-2007 02:21
CCleaner don't run at startup? Huib microsoft.public.windows.vista.installation setup 8 04-15-2007 20:29




All times are GMT +1. The time now is 09:07.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

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 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120