run script once for a user

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want a script to be run for a user only the first time he/she logs
on to my Domain.how can i do this.if I but that script in his/her
logon script,it would be run so many time,which I don' want.what
should I do?

it is supposed to change ACL of the user so that a group called
"ProfileAdmins" are granted modify and delete permission over his/her profile
folder and all of its subfolder and file.

so as you can see,
1.there is no need to run it everytime,just once is enough
2.evenif I leave it running for many times,as the profile sizegrow,it would
impose an increadibly heavy load on profile server.suppose 10 user login
concurrently,each having a 700MB Profile.poor server!
 
An alternitive to the file/reg entry condition you could also use the
logonCount attribute of the user. --if you total the attribute value
from each domain controller .
 
I want a script to be run for a user only the first time he/she logs
on to my Domain.how can i do this.if I but that script in his/her
logon script,it would be run so many time,which I don' want.what
should I do?

it is supposed to change ACL of the user so that a group called
"ProfileAdmins" are granted modify and delete permission over his/her profile
folder and all of its subfolder and file.

so as you can see,
1.there is no need to run it everytime,just once is enough
2.evenif I leave it running for many times,as the profile sizegrow,it would
impose an increadibly heavy load on profile server.suppose 10 user login
concurrently,each having a 700MB Profile.poor server!

Add a value Name with the script FQFN at HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
Back
Top