gpedit logon script question

G

Guest

Hi...

I have 3 user profiles on my machine (1 admin and 2 limited). I have made
some batch files which I run at logon but everytime the limited accounts
logon, the scripts attempt to run and generate an event log error because
access is denied.

Is there any way I can make it so that the scripts only run when the admin
accounts log on?
 
P

Pegasus \(MVP\)

nick said:
Hi...

I have 3 user profiles on my machine (1 admin and 2 limited). I have made
some batch files which I run at logon but everytime the limited accounts
logon, the scripts attempt to run and generate an event log error because
access is denied.

Is there any way I can make it so that the scripts only run when the admin
accounts log on?

You can insert this line into the logon script:

@echo off
net user %UserName% | find /i "Administrators" > nul || goto :eof
 

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