Mombu the Microsoft Forum

Go Back   Mombu the Microsoft Forum > Microsoft > Windows 2003 Server (TECHNET) > Login Script RunOnce
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 26th April 05:44
mtechg17œ„gb±ë¬²*²hœ®‹(~×(
External User
 
Posts: 1
Default Login Script RunOnce



I've got a .bat file that changes the local admin file and then writes some
text in a shared file. Is it possible to have this RunOnce per machine? I
have it configured under Computer Config > Admin Templates > System > Run
These programs at user logon. I see the option of Do not process the run
once list. What is this about and how do I access it? I could do something
with bat file to create a temp file and check if it exists but I wanted to
check to see if AD could do it in a cleaner manner.

TIA
  Reply With Quote


 


2 27th April 21:32
mark heitbrink [mvp]
External User
 
Posts: 1
Default Login Script RunOnce



Hi,

MTechG schrieb:

Only Inside the script, not by GPO.

The Idea: Ask for the existence of an object, if it exist, do nothing,
if it not exist, run your command and create this object in the end.
The next run will find it and so do nothing ...

if not exist %systemroot%\nameofile.txt (
some commands
another command
more commands
) > %systemroot%\nameofile.txt

Mark
--
Mark Heitbrink - MVP Windows Server - Group Policy

Homepage: www.gruppenrichtlinien.de - deutsch
Blog: gpupdate.spaces.live.com - english
  Reply With Quote
3 27th April 21:33
mtechg17œ„gb±ë¬²*²hœ®‹(~×(
External User
 
Posts: 1
Default Login Script RunOnce


Thanks Mark I just wanted to check.
  Reply With Quote


 


Reply


Thread Tools
Display Modes




666