Solved

Run GPO VBscript once

Posted on 2006-11-03
1
2,510 Views
Last Modified: 2006-11-18
Hi,

I have written a VBScript to add a domain group into the local administrators group. This has been added to the startup script group of a computer GPO however it is applied every time. How can I run the script only once on the PC?

Regards,

Michael
0
Comment
Question by:Barnardos_2LS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 9

Accepted Solution

by:
SamuraiCrow earned 125 total points
ID: 17868485
In that same script add some simple conditional processing:

if exist \\servername\sharename\%computername%.txt goto End

:Start

<VBS file adding domain group to local admin group>
echo %computername% > \\servername\sharename\%computername%.txt

:End

This will basically create a tiny text file with the computers name as the title.  It will check for the file and skip the install if it exists.  You can also park this file on the local computer as well if you like.

Hope this help
Crow
0

Featured Post

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Numerous times I have been asked this questions that what is it that makes my machine log on so slow, there have been cases where computers took 23 minute exactly after taking password and getting to the desktop. Interesting thing was the fact th…
Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question