Link to home
Start Free TrialLog in
Avatar of top_gizmo
top_gizmoFlag for United States of America

asked on

delprof.exe and logon script

I want to use delprof.exe in a logon script.

Q..  delprof.exe requires that you be logged in as the administrator to run.  Does having it in the logins script cover that or will I have to look for another way?

My goal is to silently delete all profiles other than the administrator x days old, upon each users login.

These are classroom computers and I want to keep the profiles cleaned off.
Avatar of CrazyOne
CrazyOne
Flag of United States of America image

https://www.experts-exchange.com/questions/10300385/NTresoucekit-Delprof-exe-script.html

Accepted Answer from tim_holman
Date: 02/24/2000 08:53AM MST
 Accepted Answer  

Why not ?

Something like this would work :

@echo off
for /f "Skip=3 Tokens=*" %%i in ('net view') do call :delprof %%i
goto :end
:delprof
set name=%1
rem 'delprof /i \\%name%'
:end
 
Avatar of top_gizmo

ASKER

not really what I am looking for.  

I understand how to run it, the real question is:

Since you have to be logged in as the Administrator or in the Administrator Group to run it, how/where should it be implemented?

Group policy would call it but would the delprof.exe be ran as if it were ran by the SYSTEM under the USERS login?
What I posted is a login script
Ok, but if the login script calls the delprof.exe (which requires you to be in the admin group) will it run if the user is not in the admin group?
ASKER CERTIFIED SOLUTION
Avatar of CrazyOne
CrazyOne
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial