run script once for a user

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!
 
T

Tim.Olsen

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 .
 
J

Jerold Schulman

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
 

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