
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2014 11:06 AM - last edited on ‎04-01-2024 03:54 PM by Mercedes_O
This action can be used to delete old user profiles from a remote computer.
This example deletes all user profiles not used in the last 180 days.
The tool can be downloaded from the Microsoft website:
http://www.microsoft.com/en-us/download/details.aspx?id=5405
Copy "delprof.exe" to your action folder.
{actionpath}delprof.exe /q /i /c:\\{smartname} /d:180
- Labels:
-
API & Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2019 07:18 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2022 12:56 AM
Trying to figure that out myself or a better way in lansweeper @DaveDischord

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2018 09:36 AM
Do be aware that this is a quite old topic, so I can't guarantee that the original post still works.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2018 03:10 PM
I also need some help installing this action and applying it to a number of computers on our network.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2017 08:14 PM
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2017 07:36 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2016 11:06 PM
I ran into a similar issues launching the script. Ultimately, I used @BulmersheTech 's script with a couple tweaks. I had to share the default actions folder with my domain admin service account and enable remote registry access via GPO.
I migrated my Lansweeper server from a lab environment to production, so I also had to change the default action path in Lansweeper configuration page.
Here's my cmd file:
@echo off
setlocal
set PSPATH=\\<network path to action folder>
set PC=%1
%PSPATH%\delprof2.exe /c:\\%PC% /d:90 /ntuserini /ed:admin* /i
timeout 20
Increasing the timeout helped troubleshoot the remote registry access error.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2016 06:28 PM
Have tried as Built-in user, target workstation Administrator and server Administrator.
action I'm using is: {actionpath}\delprof2.exe /p /c:\\{smartname}
Also tried making delprof2 a deployment option as we have a group of PCs that regularly get bogged down with roaming profiles and being able to clean those as a deployment option would be awesome but so far no luck with that script - just doing a simple one-step CMD script below
{actionpath}delprof2.exe /c:\\{smartname} /r
(have tried it without {actionpath} as well as without the "/c:\\..." trigger and get an "Incorrect function" each time.)
Would appreciate any help with either of these if possible!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2015 11:47 AM
Create a delprof2.cmd file in the Actions folder
@echo off
setlocal
set PSPATH=\\path-to-your-actions-folder
set PC=%1
%PSPATH%\delprof2.exe /u /i /c:\\%PC% /d:90
timeout 10
The Action then becomes:-
{actionpath}\delprof2.cmd {smartname}
