Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

delprof.exe and logon script

Posted on 2003-12-06
5
Medium Priority
?
3,406 Views
Last Modified: 2012-05-05
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.
0
Comment
Question by:top_gizmo
  • 3
  • 2
5 Comments
 
LVL 44

Expert Comment

by:CrazyOne
ID: 9889001
http://www.experts-exchange.com/Operating_Systems/WinNT/Q_10300385.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
 
0
 
LVL 3

Author Comment

by:top_gizmo
ID: 9891777
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?
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 9892118
What I posted is a login script
0
 
LVL 3

Author Comment

by:top_gizmo
ID: 9893768
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?
0
 
LVL 44

Accepted Solution

by:
CrazyOne earned 800 total points
ID: 9895209
I believe a login script runs before user credentials are check.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
Integration Management Part 2
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question