Solved

delprof.exe and logon script

Posted on 2003-12-06
5
3,365 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 200 total points
ID: 9895209
I believe a login script runs before user credentials are check.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

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…
We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
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…

813 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now