|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Running a logon script with Administrator privileges?
users that removes a file from a protected folder and replaces it with a new one copies from our fileserver. Our server is Win2k3 with AD and all our users are running XP SP2. Basically, the script opens a folder that the user's account doesn't have access to, deletes the file in it and copies the new file from the fileserver into the folder. However, since the user's account doesn't have admin privileges, the script fails when it tries to open the folder. It works fine on the computers that belong to users that have admin privileges. The script itself is two lines, a del command followed by an xcopy. You don't get much simpler than this. Is there a way to run the script automatically as Administrator so I don't have to walk around to each computer and log in once to make sure the script runs? If I've left out any important info, let me know. Thanks! <erro***@gmail.com> wrote in message
Show quote news:1178202176.993600.248440@h2g2000hsg.googlegroups.com... One option is to run this as a Startup script. Startup scripts run with > Recently, I've had to add a script that runs at logon for all our > users that removes a file from a protected folder and replaces it with > a new one copies from our fileserver. Our server is Win2k3 with AD and > all our users are running XP SP2. > > Basically, the script opens a folder that the user's account doesn't > have access to, deletes the file in it and copies the new file from > the fileserver into the folder. However, since the user's account > doesn't have admin privileges, the script fails when it tries to open > the folder. It works fine on the computers that belong to users that > have admin privileges. > > The script itself is two lines, a del command followed by an xcopy. > You don't get much simpler than this. > > Is there a way to run the script automatically as Administrator so I > don't have to walk around to each computer and log in once to make > sure the script runs? > > If I've left out any important info, let me know. System privileges on the local computer and the privileges of the computer object in the domain. The computer object will need read access to the source of the file, but you can grant this permission to the group "Domain Computers". |
|||||||||||||||||||||||