Solved

delprof.exe and logon script

Posted on 2003-12-06
5
3,381 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
User laptop information 6 144
Toshiba Laptop (WIN XP) will not start 6 86
symbolic link problem 6 108
how to copy from computer to usb drive 7 127
Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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