Solved

delprof.exe and logon script

Posted on 2003-12-06
5
3,346 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
Migration of Exchange mailbox can be done with the ExProfre.exe tool. But at times, when the ExProfre.exe tool migrates the Exchange Server user profile, it results in numerous synchronization problems. Synchronization error messages appear in the e…
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

706 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

19 Experts available now in Live!

Get 1:1 Help Now