troubleshooting Question

Problem running startup script via group policy v.2

Avatar of CG_HD
CG_HDFlag for United States of America asked on
Active DirectoryWindows Server 2003
8 Comments2 Solutions1111 ViewsLast Modified:
Windows 2003 AD environment&

In one of our  Domain level policies I have added a batch file that will remove office 2003 from each workstation that is a part of a certain security group. The problem is the script does not process when users log in. The script/GPO worked for weeks while linked to the domain level OU and suddenly it stopped...nothing changed to my knowledge.  I tried to revise the script under User Configuration and Computer Configuration and neither works. I know the script works as it has been tested since the problem surfaced...it just doesnt run when attached to a GPO.

If I create a new GPO and don't link it to anything the script will properly attached to the GPO and is viewable when the "show files" button is selected. After linking the GPO to an OU the ability to view the script with the "show files" button is lost...I get message that tells me "the folder location does not exist"&see pic below

Side note  all domain level policys have this issue, only lower level policys seem to have to ability to run scripts appropriately. Although it seems that only active lower level policys accept a new scripts& New lower level policys loose ability to show files and run at login when attached to a OU.

- copy of script - 
 c:
cd\
 
:check for flag
if exist "c:\flags\office uninstall.txt" GOTO END
 
if NOT exist c:\flags md c:\flags
copy "\\server\CG-DATA\IT\Flags\office uninstall.txt" "c:\flags\office uninstall.txt"
 
:FLAGCHECK
if exist "c:\flags\office uninstall.txt" GOTO office uninstall
 
if NOT exist c:\flags md c:\flags
copy "\\server\CG-DATA\IT\Flags\office uninstall.txt" "c:\flags\office uninstall.txt"
 
GOTO FLAGCHECK
 
:Office uninstall
msiexec /x {90110409-6000-11D3-8CFE-0150048383C9} /qb- 
 
:Restart PC
shutdown /r /c "The uninstallation of office 2003 is complete and the system is restarting."
 
GOTO END
 
:END
EXIT
 
- Script end -
error.jpg
ASKER CERTIFIED SOLUTION
NoEvil

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros