cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
audiorapture
Engaged Sweeper III
I am trying to use delprof for the first time, but unfortunately I get the error message "The parameter is incorrect.":

=====
C:\Users\audiorapture>\\lansweeper-vpc\premiumtools\delprof.exe /i /q /c:\\targethost
d:60
Deleting \\targethost\C$\Documents and Settings\user1... [Failed]
The parameter is incorrect.
Deleting \\targethost\C$\Documents and Settings\user2... [Failed]
The parameter is incorrect.
=====

The target is a Windows XP virtual machine on a VMware host.

Any ideas?
1 ACCEPTED SOLUTION
Hemoco
Lansweeper Alumni
You don't need the "cmd.exe /K" or you will need to place quotes (") around the actual action.

View solution in original post

10 REPLIES 10
Anonymous
Not applicable
jmarmo
Engaged Sweeper III
I don't even see the DelProf command in the latest version of Lansweeper. Does it have to be manually added? Are there instructions?
Anonymous
Not applicable
You can try REMPROF utility instead, check the syntax and check if you have the same error.
http://www.dabcc.com/downloadfile.aspx?id=359
Hemoco
Lansweeper Alumni
If it's a problem with Delprof you will have to check the sysinternals forum.
http://forum.sysinternals.com/
audiorapture
Engaged Sweeper III
This is the current Action:
cmd.exe /K "{actionpath}delprof.exe /q /i /c:\\{computer} /d:180"

And I see the same result ("Parameter is incorrect" after each profile to be deleted) whether the target is virtual or physical.
Anonymous
Not applicable
I can confirm it works fine, if you do it like Lansweeper told, it should work. Are you using a virtual machine for this? If yes, take a look at this since this can be the cause: http://kb.vmware.com/selfservice/dynamickc.do?cmd=show&forward=nonthreadedKC&docType=kc&externalId=1...
audiorapture
Engaged Sweeper III
If there was a problem with the command-line or the options the command wouldn't run, would it?

Can you confirm that delprof actually works against remote WinXP clients that are fully patched?

=====
C:\Users\audiorapture\Desktop>\\lansweeper-host\lansweeper$\delprof.exe /c:\\TARGET

Delete inactive profiles on \\TARGET? (Yes/No) y
Deleting \\TARGET\C$\Documents and Settings\Administrator... [Failed
]
The parameter is incorrect.

C:\Users\audiorapture\Desktop>
=====
Hemoco
Lansweeper Alumni
You don't need the "cmd.exe /K" or you will need to place quotes (") around the actual action.
audiorapture
Engaged Sweeper III
I use the link from the basic actions menu:
javascript:runApp('cmd.exe /K \\\\LANSWEEPER-HOST\\actions$\\delprof.exe /q /i /c:\\\\TARGET /d:180','true');

The result is the same:
=====
Deleting \\TARGET\C$\Documents and Settings\USER1... [Fai
led]
The parameter is incorrect.

C:\Users\audiorapture\Desktop>
=====