Location: Mail List

Ads

Skyscraper

The GPTalk Mailing List

The GPTALK mailing list is where you can send and receive email related to Windows Group Policy. You must subscribe to the list to send and receive mail from the list. The purpose of the list is to provide a forum for asking and answering technical questions related to Group Policy. Any question is fair game as long as it is related to Windows Group Policy.  The Archives for this list can be found on this page.

 

List Posts

Subject: [gptalk] Deleting Local Profiles
Prev Next
You are not authorized to post a reply.

AuthorMessages
Martin_HugoUser is Offline

Posts:26

02/11/2011 10:16 PM  
Hello,

We are a k-12 School district with thousands of computers. We are running W2K3 and Windows 7 Pro. We are finding that our system drives are filling up with local profiles and, given that Windows 7 has no way to remotely mass delete them (wish they would re-design delprof to work on Win7) we are looking at the Group Policy to delete profiles older than X days. Our problem is that we only want this to apply to Student accounts, not Staff (since Staff will have Outlook and other prefs on our machines that they would not want to have to recreate).

Is this possible, or does it apply to all profiles once applied to a machine object?

Thanks very much.

Marty

mpietrzakUser is Offline

Posts:28

02/11/2011 10:21 PM  
I'd love to know a way to do this on XP! We have tons of temporary staff
at my work. I hate seeing all the old profiles.



Michael



From: xxxxxxxxxxxxxxxx
[mailto:xxxxxxxxxxxxxxxx] On Behalf Of Martin Hugo
Sent: Friday, February 11, 2011 12:05 PM
To: xxxxxxxxxxxxxxxx
Subject: [gptalk] Deleting Local Profiles



Hello,



We are a k-12 School district with thousands of computers. We are
running W2K3 and Windows 7 Pro. We are finding that our system drives
are filling up with local profiles and, given that Windows 7 has no way
to remotely mass delete them (wish they would re-design delprof to work
on Win7) we are looking at the Group Policy to delete profiles older
than X days. Our problem is that we only want this to apply to Student
accounts, not Staff (since Staff will have Outlook and other prefs on
our machines that they would not want to have to recreate).



Is this possible, or does it apply to all profiles once applied to a
machine object?



Thanks very much.



Marty


Martin_HugoUser is Offline

Posts:26

02/11/2011 10:37 PM  
Hi Michael,

For XP you can run Delprof.exe remotely from a workstation to delete the profiles on machines that you name. We used to use a spreadsheet to concatenate the commands into a batchfile and run them at night.

Marty

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Michael Pietrzak
Sent: Friday, February 11, 2011 3:06 PM
To: xxxxxxxxxxxxxxxx
Subject: RE: [gptalk] Deleting Local Profiles

I'd love to know a way to do this on XP! We have tons of temporary staff at my work. I hate seeing all the old profiles.

Michael

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Martin Hugo
Sent: Friday, February 11, 2011 12:05 PM
To: xxxxxxxxxxxxxxxx
Subject: [gptalk] Deleting Local Profiles

Hello,

We are a k-12 School district with thousands of computers. We are running W2K3 and Windows 7 Pro. We are finding that our system drives are filling up with local profiles and, given that Windows 7 has no way to remotely mass delete them (wish they would re-design delprof to work on Win7) we are looking at the Group Policy to delete profiles older than X days. Our problem is that we only want this to apply to Student accounts, not Staff (since Staff will have Outlook and other prefs on our machines that they would not want to have to recreate).

Is this possible, or does it apply to all profiles once applied to a machine object?

Thanks very much.

Marty

mpietrzakUser is Offline

Posts:28

02/11/2011 10:37 PM  
Ah, great!! I will take a look at that now.



Thanks Marty!



Michael



From: xxxxxxxxxxxxxxxx
[mailto:xxxxxxxxxxxxxxxx] On Behalf Of Martin Hugo
Sent: Friday, February 11, 2011 12:21 PM
To: 'xxxxxxxxxxxxxxxx'
Subject: RE: [gptalk] Deleting Local Profiles



Hi Michael,



For XP you can run Delprof.exe remotely from a workstation to delete the
profiles on machines that you name. We used to use a spreadsheet to
concatenate the commands into a batchfile and run them at night.



Marty



From: xxxxxxxxxxxxxxxx
[mailto:xxxxxxxxxxxxxxxx] On Behalf Of Michael Pietrzak
Sent: Friday, February 11, 2011 3:06 PM
To: xxxxxxxxxxxxxxxx
Subject: RE: [gptalk] Deleting Local Profiles



I'd love to know a way to do this on XP! We have tons of temporary staff
at my work. I hate seeing all the old profiles.



Michael



From: xxxxxxxxxxxxxxxx
[mailto:xxxxxxxxxxxxxxxx] On Behalf Of Martin Hugo
Sent: Friday, February 11, 2011 12:05 PM
To: xxxxxxxxxxxxxxxx
Subject: [gptalk] Deleting Local Profiles



Hello,



We are a k-12 School district with thousands of computers. We are
running W2K3 and Windows 7 Pro. We are finding that our system drives
are filling up with local profiles and, given that Windows 7 has no way
to remotely mass delete them (wish they would re-design delprof to work
on Win7) we are looking at the Group Policy to delete profiles older
than X days. Our problem is that we only want this to apply to Student
accounts, not Staff (since Staff will have Outlook and other prefs on
our machines that they would not want to have to recreate).



Is this possible, or does it apply to all profiles once applied to a
machine object?



Thanks very much.



Marty


dmareliaUser is Offline

Posts:441

02/11/2011 11:46 PM  
One thing that is problematic about deleting profiles, esp. in XP, is that they tended to leak resource handles a lot. This meant that you couldn't fully delete them unless you rebooted the system. Its gotten much better in Win7 but still not 100%.



From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Michael Pietrzak
Sent: Friday, February 11, 2011 12:20 PM
To: xxxxxxxxxxxxxxxx
Subject: RE: [gptalk] Deleting Local Profiles

Ah, great!! I will take a look at that now.

Thanks Marty!

Michael

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Martin Hugo
Sent: Friday, February 11, 2011 12:21 PM
To: 'xxxxxxxxxxxxxxxx'
Subject: RE: [gptalk] Deleting Local Profiles

Hi Michael,

For XP you can run Delprof.exe remotely from a workstation to delete the profiles on machines that you name. We used to use a spreadsheet to concatenate the commands into a batchfile and run them at night.

Marty

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Michael Pietrzak
Sent: Friday, February 11, 2011 3:06 PM
To: xxxxxxxxxxxxxxxx
Subject: RE: [gptalk] Deleting Local Profiles

I'd love to know a way to do this on XP! We have tons of temporary staff at my work. I hate seeing all the old profiles.

Michael

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Martin Hugo
Sent: Friday, February 11, 2011 12:05 PM
To: xxxxxxxxxxxxxxxx
Subject: [gptalk] Deleting Local Profiles

Hello,

We are a k-12 School district with thousands of computers. We are running W2K3 and Windows 7 Pro. We are finding that our system drives are filling up with local profiles and, given that Windows 7 has no way to remotely mass delete them (wish they would re-design delprof to work on Win7) we are looking at the Group Policy to delete profiles older than X days. Our problem is that we only want this to apply to Student accounts, not Staff (since Staff will have Outlook and other prefs on our machines that they would not want to have to recreate).

Is this possible, or does it apply to all profiles once applied to a machine object?

Thanks very much.

Marty
Martin_HugoUser is Offline

Posts:26

02/11/2011 11:54 PM  
Hi Darren,

Didn't know if the saw my OP message at the bottom of this and had an answer?

Thanks.

Marty

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Darren Mar-Elia
Sent: Friday, February 11, 2011 4:25 PM
To: xxxxxxxxxxxxxxxx
Subject: RE: [gptalk] Deleting Local Profiles

One thing that is problematic about deleting profiles, esp. in XP, is that they tended to leak resource handles a lot. This meant that you couldn't fully delete them unless you rebooted the system. Its gotten much better in Win7 but still not 100%.



From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Michael Pietrzak
Sent: Friday, February 11, 2011 12:20 PM
To: xxxxxxxxxxxxxxxx
Subject: RE: [gptalk] Deleting Local Profiles

Ah, great!! I will take a look at that now.

Thanks Marty!

Michael

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Martin Hugo
Sent: Friday, February 11, 2011 12:21 PM
To: 'xxxxxxxxxxxxxxxx'
Subject: RE: [gptalk] Deleting Local Profiles

Hi Michael,

For XP you can run Delprof.exe remotely from a workstation to delete the profiles on machines that you name. We used to use a spreadsheet to concatenate the commands into a batchfile and run them at night.

Marty

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Michael Pietrzak
Sent: Friday, February 11, 2011 3:06 PM
To: xxxxxxxxxxxxxxxx
Subject: RE: [gptalk] Deleting Local Profiles

I'd love to know a way to do this on XP! We have tons of temporary staff at my work. I hate seeing all the old profiles.

Michael

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Martin Hugo
Sent: Friday, February 11, 2011 12:05 PM
To: xxxxxxxxxxxxxxxx
Subject: [gptalk] Deleting Local Profiles

Hello,

We are a k-12 School district with thousands of computers. We are running W2K3 and Windows 7 Pro. We are finding that our system drives are filling up with local profiles and, given that Windows 7 has no way to remotely mass delete them (wish they would re-design delprof to work on Win7) we are looking at the Group Policy to delete profiles older than X days. Our problem is that we only want this to apply to Student accounts, not Staff (since Staff will have Outlook and other prefs on our machines that they would not want to have to recreate).

Is this possible, or does it apply to all profiles once applied to a machine object?

Thanks very much.

Marty

dmareliaUser is Offline

Posts:441

02/12/2011 12:58 AM  
Martin-
Unfortunately, there's no granularity in that policy to discriminate by group. The only way you could do that is by adding some logic in a script or scheduled task. I didn't realize that delprof.exe doesn't run on Win 7, but I will take a look into this if I get some time.

Darren

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Martin Hugo
Sent: Friday, February 11, 2011 1:37 PM
To: 'xxxxxxxxxxxxxxxx'
Subject: RE: [gptalk] Deleting Local Profiles

Hi Darren,

Didn't know if the saw my OP message at the bottom of this and had an answer?

Thanks.

Marty

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Darren Mar-Elia
Sent: Friday, February 11, 2011 4:25 PM
To: xxxxxxxxxxxxxxxx
Subject: RE: [gptalk] Deleting Local Profiles

One thing that is problematic about deleting profiles, esp. in XP, is that they tended to leak resource handles a lot. This meant that you couldn't fully delete them unless you rebooted the system. Its gotten much better in Win7 but still not 100%.



From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Michael Pietrzak
Sent: Friday, February 11, 2011 12:20 PM
To: xxxxxxxxxxxxxxxx
Subject: RE: [gptalk] Deleting Local Profiles

Ah, great!! I will take a look at that now.

Thanks Marty!

Michael

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Martin Hugo
Sent: Friday, February 11, 2011 12:21 PM
To: 'xxxxxxxxxxxxxxxx'
Subject: RE: [gptalk] Deleting Local Profiles

Hi Michael,

For XP you can run Delprof.exe remotely from a workstation to delete the profiles on machines that you name. We used to use a spreadsheet to concatenate the commands into a batchfile and run them at night.

Marty

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Michael Pietrzak
Sent: Friday, February 11, 2011 3:06 PM
To: xxxxxxxxxxxxxxxx
Subject: RE: [gptalk] Deleting Local Profiles

I'd love to know a way to do this on XP! We have tons of temporary staff at my work. I hate seeing all the old profiles.

Michael

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Martin Hugo
Sent: Friday, February 11, 2011 12:05 PM
To: xxxxxxxxxxxxxxxx
Subject: [gptalk] Deleting Local Profiles

Hello,

We are a k-12 School district with thousands of computers. We are running W2K3 and Windows 7 Pro. We are finding that our system drives are filling up with local profiles and, given that Windows 7 has no way to remotely mass delete them (wish they would re-design delprof to work on Win7) we are looking at the Group Policy to delete profiles older than X days. Our problem is that we only want this to apply to Student accounts, not Staff (since Staff will have Outlook and other prefs on our machines that they would not want to have to recreate).

Is this possible, or does it apply to all profiles once applied to a machine object?

Thanks very much.

Marty
acjuelichUser is Offline

Posts:147

02/12/2011 1:07 AM  
You'd probably have to write a VBScript to delete all Local Profiles and set it as a Scheduled Task and then use Item-Level Targeting to set it to run on certain machines or certain OUs. We are in a K12 District as well and have our Staff Machines in different OU's than the Student Machines, so you could do it that way. ScriptingGuys may have some scripts to remove profiles or delete folders based on some logic (excluding the default profiles, all users, etc.)

Otherwise you could try moving towards Roaming Profiles and make the student ones Mandatory and thus, static.



From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Darren Mar-Elia
Sent: Friday, February 11, 2011 4:42 PM
To: xxxxxxxxxxxxxxxx
Subject: RE: [gptalk] Deleting Local Profiles

Martin-
Unfortunately, there's no granularity in that policy to discriminate by group. The only way you could do that is by adding some logic in a script or scheduled task. I didn't realize that delprof.exe doesn't run on Win 7, but I will take a look into this if I get some time.

Darren

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Martin Hugo
Sent: Friday, February 11, 2011 1:37 PM
To: 'xxxxxxxxxxxxxxxx'
Subject: RE: [gptalk] Deleting Local Profiles

Hi Darren,

Didn't know if the saw my OP message at the bottom of this and had an answer?

Thanks.

Marty

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Darren Mar-Elia
Sent: Friday, February 11, 2011 4:25 PM
To: xxxxxxxxxxxxxxxx
Subject: RE: [gptalk] Deleting Local Profiles

One thing that is problematic about deleting profiles, esp. in XP, is that they tended to leak resource handles a lot. This meant that you couldn't fully delete them unless you rebooted the system. Its gotten much better in Win7 but still not 100%.



From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Michael Pietrzak
Sent: Friday, February 11, 2011 12:20 PM
To: xxxxxxxxxxxxxxxx
Subject: RE: [gptalk] Deleting Local Profiles

Ah, great!! I will take a look at that now.

Thanks Marty!

Michael

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Martin Hugo
Sent: Friday, February 11, 2011 12:21 PM
To: 'xxxxxxxxxxxxxxxx'
Subject: RE: [gptalk] Deleting Local Profiles

Hi Michael,

For XP you can run Delprof.exe remotely from a workstation to delete the profiles on machines that you name. We used to use a spreadsheet to concatenate the commands into a batchfile and run them at night.

Marty

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Michael Pietrzak
Sent: Friday, February 11, 2011 3:06 PM
To: xxxxxxxxxxxxxxxx
Subject: RE: [gptalk] Deleting Local Profiles

I'd love to know a way to do this on XP! We have tons of temporary staff at my work. I hate seeing all the old profiles.

Michael

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Martin Hugo
Sent: Friday, February 11, 2011 12:05 PM
To: xxxxxxxxxxxxxxxx
Subject: [gptalk] Deleting Local Profiles

Hello,

We are a k-12 School district with thousands of computers. We are running W2K3 and Windows 7 Pro. We are finding that our system drives are filling up with local profiles and, given that Windows 7 has no way to remotely mass delete them (wish they would re-design delprof to work on Win7) we are looking at the Group Policy to delete profiles older than X days. Our problem is that we only want this to apply to Student accounts, not Staff (since Staff will have Outlook and other prefs on our machines that they would not want to have to recreate).

Is this possible, or does it apply to all profiles once applied to a machine object?

Thanks very much.

Marty

hboogzUser is Offline

Posts:21

02/12/2011 1:25 AM  
I would love if someone could share the syntax on how to have Delprof
use a list from excel.

On Friday, February 11, 2011, Adam C Juelich
<xxxxxxxxxxxxxxxx> wrote:
> You’d probably have to write a VBScript to delete all Local Profiles and set it as a Scheduled Task and then use Item-Level Targeting to set it to run on certain machines or certain OUs.  We are in a K12 District as well and have our Staff Machines in different OU’s than the Student Machines, so you could do it that way.  ScriptingGuys may have some scripts to remove profiles or delete folders based on some logic (excluding the default profiles, all users, etc.) Otherwise you could try moving towards Roaming Profiles and make the student ones Mandatory and thus, static.   From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Darren Mar-Elia
> Sent: Friday, February 11, 2011 4:42 PM
> To: xxxxxxxxxxxxxxxx
> Subject: RE: [gptalk] Deleting Local Profiles Martin-Unfortunately, there’s no granularity in that policy to discriminate by group. The only way you could do that is by adding some logic in a script or scheduled task. I didn’t realize that delprof.exe doesn’t run on Win 7, but I will take a look into this if I get some time. Darren  From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Martin Hugo
> Sent: Friday, February 11, 2011 1:37 PM
> To: 'xxxxxxxxxxxxxxxx'
> Subject: RE: [gptalk] Deleting Local Profiles Hi Darren, Didn’t know if the saw my OP message at the bottom of this and had an answer? Thanks. Marty From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Darren Mar-Elia
> Sent: Friday, February 11, 2011 4:25 PM
> To: xxxxxxxxxxxxxxxx
> Subject: RE: [gptalk] Deleting Local Profiles One thing that is problematic about deleting profiles, esp. in XP, is that they tended to leak resource handles a lot. This meant that you couldn’t fully delete them unless you rebooted the system. Its gotten much better in Win7 but still not 100%.   From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Michael Pietrzak
> Sent: Friday, February 11, 2011 12:20 PM
> To: xxxxxxxxxxxxxxxx
> Subject: RE: [gptalk] Deleting Local Profiles Ah, great!! I will take a look at that now. Thanks Marty! Michael From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Martin Hugo
> Sent: Friday, February 11, 2011 12:21 PM
> To: '
gustinUser is Offline

Posts:4

02/12/2011 1:31 AM  
We did a proof of concept for this in Powershell about a year ago.
Just browsing poshcode there seems to be some examples that look
similar to what we did. You might want to look at this one for
example:
http://poshcode.org/2477

We scheduled a task that ran the script that removed profiles.

On Fri, Feb 11, 2011 at 3:49 PM, Adam C Juelich
<xxxxxxxxxxxxxxxx> wrote:
> You’d probably have to write a VBScript to delete all Local Profiles and set
> it as a Scheduled Task and then use Item-Level Targeting to set it to run on
> certain machines or certain OUs.  We are in a K12 District as well and have
> our Staff Machines in different OU’s than the Student Machines, so you could
> do it that way.  ScriptingGuys may have some scripts to remove profiles or
> delete folders based on some logic (excluding the default profiles, all
> users, etc.)
>
>
>
> Otherwise you could try moving towards Roaming Profiles and make the student
> ones Mandatory and thus, static.
>
>
>
>
>
>
>
> From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Darren Mar-Elia
> Sent: Friday, February 11, 2011 4:42 PM
>
> To: xxxxxxxxxxxxxxxx
> Subject: RE: [gptalk] Deleting Local Profiles
>
>
>
> Martin-
>
> Unfortunately, there’s no granularity in that policy to discriminate by
> group. The only way you could do that is by adding some logic in a script or
> scheduled task. I didn’t realize that delprof.exe doesn’t run on Win 7, but
> I will take a look into this if I get some time.
>
>
>
> Darren
>
>
>
> From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Martin Hugo
> Sent: Friday, February 11, 2011 1:37 PM
> To: 'xxxxxxxxxxxxxxxx'
> Subject: RE: [gptalk] Deleting Local Profiles
>
>
>
> Hi Darren,
>
>
>
> Didn’t know if the saw my OP message at the bottom of this and had an
> answer?
>
>
>
> Thanks.
>
>
>
> Marty
>
>
>
> From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Darren Mar-Elia
> Sent: Friday, February 11, 2011 4:25 PM
> To: xxxxxxxxxxxxxxxx
> Subject: RE: [gptalk] Deleting Local Profiles
>
>
>
> One thing that is problematic about deleting profiles, esp. in XP, is that
> they tended to leak resource handles a lot. This meant that you couldn’t
> fully delete them unless you rebooted the system. Its gotten much better in
> Win7 but still not 100%.
>
>
>
>
>
>
>
> From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Michael Pietrzak
> Sent: Friday, February 11, 2011 12:20 PM
> To: xxxxxxxxxxxxxxxx
> Subject: RE: [gptalk] Deleting Local Profiles
>
>
>
> Ah, great!! I will take a look at that now.
>
>
>
> Thanks Marty!
>
>
>
> Michael
>
>
>
> From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Martin Hugo
> Sent: Friday, February 11, 2011 12:21 PM
> To: 'xxxxxxxxxxxxxxxx'
> Subject: RE: [gptalk] Deleting Local Profiles
>
>
>
> Hi Michael,
>
>
>
> For XP you can run Delprof.exe remotely from a workstation to delete the
> profiles on machines that you name.  We used to use a spreadsheet to
> concatenate the commands into a batchfile and run them at night.
>
>
>
> Marty
>
>
>
> From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Michael Pietrzak
> Sent: Friday, February 11, 2011 3:06 PM
> To: xxxxxxxxxxxxxxxx
> Subject: RE: [gptalk] Deleting Local Profiles
>
>
>
> I’d love to know a way to do this on XP! We have tons of temporary staff at
> my work. I hate seeing all the old profiles.
>
>
>
> Michael
>
>
>
> From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Martin Hugo
> Sent: Friday, February 11, 2011 12:05 PM
> To: xxxxxxxxxxxxxxxx
> Subject: [gptalk] Deleting Local Profiles
>
>
>
> Hello,
>
>
>
> We are a k-12 School district with thousands of computers.  We are  running
> W2K3 and Windows 7 Pro.  We are finding that our system drives are filling
> up with local profiles and, given that Windows 7 has no way to remotely mass
> delete them (wish they would re-design delprof to work on Win7) we are
> looking at the Group Policy to delete profiles older than X days.  Our
> problem is that we only want this to apply to Student accounts, not Staff
> (since Staff will have Outlook and other prefs on our machines that they
> would not want to have to recreate).
>
>
>
> Is this possible, or does it apply to all profiles once applied to a machine
> object?
>
>
>
> Thanks very much.
>
>
>
> Marty
alanhutchinsonUser is Offline

Posts:15

02/14/2011 1:52 PM  
I've been using a script from Joe Shonk :

http://www.theshonkproject.com/index.php?option=com_content&task=view&id=50&Itemid=31

I have a GPO that runs it at boot time and have added some accounts to the exclusion list. Looks like this later version (I'm using v1.8) will also delete based on age. Have only used this on terminal servers but see no reason why it shouldn't run on PC's although your mileage may vary with Windows 7.

Regards,

Alan.

-----Original Message-----
From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Gustin Johnson
Sent: 11 February 2011 23:14
To: xxxxxxxxxxxxxxxx
Subject: Re: [gptalk] Deleting Local Profiles

We did a proof of concept for this in Powershell about a year ago.
Just browsing poshcode there seems to be some examples that look similar to what we did. You might want to look at this one for
example:
http://poshcode.org/2477

We scheduled a task that ran the script that removed profiles.

On Fri, Feb 11, 2011 at 3:49 PM, Adam C Juelich <xxxxxxxxxxxxxxxx> wrote:
> You'd probably have to write a VBScript to delete all Local Profiles
> and set it as a Scheduled Task and then use Item-Level Targeting to
> set it to run on certain machines or certain OUs.  We are in a K12
> District as well and have our Staff Machines in different OU's than
> the Student Machines, so you could do it that way.  ScriptingGuys may
> have some scripts to remove profiles or delete folders based on some
> logic (excluding the default profiles, all users, etc.)
>
>
>
> Otherwise you could try moving towards Roaming Profiles and make the
> student ones Mandatory and thus, static.
>
>
>
>
>
>
>
> From: xxxxxxxxxxxxxxxx
> [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Darren Mar-Elia
> Sent: Friday, February 11, 2011 4:42 PM
>
> To: xxxxxxxxxxxxxxxx
> Subject: RE: [gptalk] Deleting Local Profiles
>
>
>
> Martin-
>
> Unfortunately, there's no granularity in that policy to discriminate
> by group. The only way you could do that is by adding some logic in a
> script or scheduled task. I didn't realize that delprof.exe doesn't
> run on Win 7, but I will take a look into this if I get some time.
>
>
>
> Darren
>
>
>
> From: xxxxxxxxxxxxxxxx
> [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Martin Hugo
> Sent: Friday, February 11, 2011 1:37 PM
> To: 'xxxxxxxxxxxxxxxx'
> Subject: RE: [gptalk] Deleting Local Profiles
>
>
>
> Hi Darren,
>
>
>
> Didn't know if the saw my OP message at the bottom of this and had an
> answer?
>
>
>
> Thanks.
>
>
>
> Marty
>
>
>
> From: xxxxxxxxxxxxxxxx
> [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Darren Mar-Elia
> Sent: Friday, February 11, 2011 4:25 PM
> To: xxxxxxxxxxxxxxxx
> Subject: RE: [gptalk] Deleting Local Profiles
>
>
>
> One thing that is problematic about deleting profiles, esp. in XP, is
> that they tended to leak resource handles a lot. This meant that you
> couldn't fully delete them unless you rebooted the system. Its gotten
> much better in
> Win7 but still not 100%.
>
>
>
>
>
>
>
> From: xxxxxxxxxxxxxxxx
> [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Michael Pietrzak
> Sent: Friday, February 11, 2011 12:20 PM
> To: xxxxxxxxxxxxxxxx
> Subject: RE: [gptalk] Deleting Local Profiles
>
>
>
> Ah, great!! I will take a look at that now.
>
>
>
> Thanks Marty!
>
>
>
> Michael
>
>
>
> From: xxxxxxxxxxxxxxxx
> [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Martin Hugo
> Sent: Friday, February 11, 2011 12:21 PM
> To: 'xxxxxxxxxxxxxxxx'
> Subject: RE: [gptalk] Deleting Local Profiles
>
>
>
> Hi Michael,
>
>
>
> For XP you can run Delprof.exe remotely from a workstation to delete
> the profiles on machines that you name.  We used to use a spreadsheet
> to concatenate the commands into a batchfile and run them at night.
>
>
>
> Marty
>
>
>
> From: xxxxxxxxxxxxxxxx
> [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Michael Pietrzak
> Sent: Friday, February 11, 2011 3:06 PM
> To: xxxxxxxxxxxxxxxx
> Subject: RE: [gptalk] Deleting Local Profiles
>
>
>
> I'd love to know a way to do this on XP! We have tons of temporary
> staff at my work. I hate seeing all the old profiles.
>
>
>
> Michael
>
>
>
> From: xxxxxxxxxxxxxxxx
> [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Martin Hugo
> Sent: Friday, February 11, 2011 12:05 PM
> To: xxxxxxxxxxxxxxxx
> Subject: [gptalk] Deleting Local Profiles
>
>
>
> Hello,
>
>
>
> We are a k-12 School district with thousands of computers.  We are 
> running
> W2K3 and Windows 7 Pro.  We are finding that our system drives are
> filling up with local profiles and, given that Windows 7 has no way to
> remotely mass delete them (wish they would re-design delprof to work
> on Win7) we are looking at the Group Policy to delete profiles older
> than X days.  Our problem is that we only want this to apply to
> Student accounts, not Staff (since Staff will have Outlook and other
> prefs on our machines that they would not want to have to recreate).
>
>
>
> Is this possible, or does it apply to all profiles once applied to a
> machine object?
>
>
>
> Thanks very much.
>
>
>
> Marty
seblakeUser is Offline

Posts:7

02/14/2011 9:14 PM  
Good morning!

While an automated process is the ultimate goal, the interim might be
resolved with an administrative (paperwork) solution:

We used to have a similar problem where I used to work. We asked HR to
notify us when someone left the company and then we manually deleted their
profile.

FYI.

< Steve >


-----Original Message-----
From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx]
On Behalf Of Hutchinson, Alan
Sent: Monday, February 14, 2011 3:35 AM
To: xxxxxxxxxxxxxxxx
Subject: RE: [gptalk] Deleting Local Profiles

I've been using a script from Joe Shonk :

http://www.theshonkproject.com/index.php?option=com_content&task=view&id=50&
Itemid=31

I have a GPO that runs it at boot time and have added some accounts to the
exclusion list. Looks like this later version (I'm using v1.8) will also
delete based on age. Have only used this on terminal servers but see no
reason why it shouldn't run on PC's although your mileage may vary with
Windows 7.

Regards,

Alan.

-----Original Message-----
From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx]
On Behalf Of Gustin Johnson
Sent: 11 February 2011 23:14
To: xxxxxxxxxxxxxxxx
Subject: Re: [gptalk] Deleting Local Profiles

We did a proof of concept for this in Powershell about a year ago.
Just browsing poshcode there seems to be some examples that look similar to
what we did. You might want to look at this one for
example:
http://poshcode.org/2477

We scheduled a task that ran the script that removed profiles.

On Fri, Feb 11, 2011 at 3:49 PM, Adam C Juelich
<xxxxxxxxxxxxxxxx> wrote:
> You'd probably have to write a VBScript to delete all Local Profiles
> and set it as a Scheduled Task and then use Item-Level Targeting to
> set it to run on certain machines or certain OUs.  We are in a K12
> District as well and have our Staff Machines in different OU's than
> the Student Machines, so you could do it that way.  ScriptingGuys may
> have some scripts to remove profiles or delete folders based on some
> logic (excluding the default profiles, all users, etc.)
>
>
>
> Otherwise you could try moving towards Roaming Profiles and make the
> student ones Mandatory and thus, static.
>
>
>
>
>
>
>
> From: xxxxxxxxxxxxxxxx
> [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Darren Mar-Elia
> Sent: Friday, February 11, 2011 4:42 PM
>
> To: xxxxxxxxxxxxxxxx
> Subject: RE: [gptalk] Deleting Local Profiles
>
>
>
> Martin-
>
> Unfortunately, there's no granularity in that policy to discriminate
> by group. The only way you could do that is by adding some logic in a
> script or scheduled task. I didn't realize that delprof.exe doesn't
> run on Win 7, but I will take a look into this if I get some time.
>
>
>
> Darren
>
>
>
> From: xxxxxxxxxxxxxxxx
> [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Martin Hugo
> Sent: Friday, February 11, 2011 1:37 PM
> To: 'xxxxxxxxxxxxxxxx'
> Subject: RE: [gptalk] Deleting Local Profiles
>
>
>
> Hi Darren,
>
>
>
> Didn't know if the saw my OP message at the bottom of this and had an
> answer?
>
>
>
> Thanks.
>
>
>
> Marty
>
>
>
> From: xxxxxxxxxxxxxxxx
> [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Darren Mar-Elia
> Sent: Friday, February 11, 2011 4:25 PM
> To: xxxxxxxxxxxxxxxx
> Subject: RE: [gptalk] Deleting Local Profiles
>
>
>
> One thing that is problematic about deleting profiles, esp. in XP, is
> that they tended to leak resource handles a lot. This meant that you
> couldn't fully delete them unless you rebooted the system. Its gotten
> much better in
> Win7 but still not 100%.
>
>
>
>
>
>
>
> From: xxxxxxxxxxxxxxxx
> [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Michael Pietrzak
> Sent: Friday, February 11, 2011 12:20 PM
> To: xxxxxxxxxxxxxxxx
> Subject: RE: [gptalk] Deleting Local Profiles
>
>
>
> Ah, great!! I will take a look at that now.
>
>
>
> Thanks Marty!
>
>
>
> Michael
>
>
>
> From: xxxxxxxxxxxxxxxx
> [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Martin Hugo
> Sent: Friday, February 11, 2011 12:21 PM
> To: 'xxxxxxxxxxxxxxxx'
> Subject: RE: [gptalk] Deleting Local Profiles
>
>
>
> Hi Michael,
>
>
>
> For XP you can run Delprof.exe remotely from a workstation to delete
> the profiles on machines that you name.  We used to use a spreadsheet
> to concatenate the commands into a batchfile and run them at night.
>
>
>
> Marty
>
>
>
> From: xxxxxxxxxxxxxxxx
> [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Michael Pietrzak
> Sent: Friday, February 11, 2011 3:06 PM
> To: xxxxxxxxxxxxxxxx
> Subject: RE: [gptalk] Deleting Local Profiles
>
>
>
> I'd love to know a way to do this on XP! We have tons of temporary
> staff at my work. I hate seeing all the old profiles.
>
>
>
> Michael
>
>
>
> From: xxxxxxxxxxxxxxxx
> [mailto:xxxxxxxxxxxxxxxx]
> On Behalf Of Martin Hugo
> Sent: Friday, February 11, 2011 12:05 PM
> To: xxxxxxxxxxxxxxxx
> Subject: [gptalk] Deleting Local Profiles
>
>
>
> Hello,
>
>
>
> We are a k-12 School district with thousands of computers.  We are 
> running
> W2K3 and Windows 7 Pro.  We are finding that our system drives are
> filling up with local profiles and, given that Windows 7 has no way to
> remotely mass delete them (wish they would re-design delprof to work
> on Win7) we are looking at the Group Policy to delete profiles older
> than X days.  Our problem is that we only want this to apply to
> Student accounts, not Staff (since Staff will have Outlook and other
> prefs on our machines that they would not want to have to recreate).
>
>
>
> Is this possible, or does it apply to all profiles once applied to a
> machine object?
>
>
>
> Thanks very much.
>
>
>
> Marty

You are not authorized to post a reply.
Forums >GPTalk >GPTalk Mailing List > [gptalk] Deleting Local Profiles



ActiveForums 3.7

Members

MembershipMembership:
Latest New UserLatest:carmicklec
New TodayNew Today:1
New YesterdayNew Yesterday:1
User CountOverall:1399

People OnlinePeople Online:
VisitorsVisitors:0
MembersMembers:0
TotalTotal:0

Online NowOnline Now:

Ads

Banner Inv
Copyright 2009 by GPOGUY.COM
Terms Of Use