gpedit logon script question

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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
 
Back
Top