Printer Addition

B

Brooke Justice

If you add printers via a script in a group policy object in AD, is there a
way to make it 'run once' instead of running at every logon? This would come
in handy in other situations as well..... like, scripting a scheduled task
through AD. I guess you could make the script check for an installed printer
(or scheduled task, or....) before installing it, but I'm not sure how to do
that.

Thanks,
Brooke Justice
 
B

Brian Desmond [MVP]

Brooke,

I'd just add a registry key that says you've run the script. I usually have
a constant at the top of the script called the version, and I tag the
registry with the script version. When I make an update, I incremement hte
version, and that causes it to run again.

--
--
Brian Desmond
Windows Server MVP
(e-mail address removed)12.il.us

Http://www.briandesmond.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top