| Professional User Profile Cleaning |
|
Scripting Microsoft Delprof.exe
This website provides a short overview of public scripts found on the internet. Notice that these scripts are not created or tested by No-Nonsens inc. We recommend that you test these scripts in an isolated environment (test-lab / virtual computer) before using the product on life data. When in doubt backup your data first.
The scripts on this website are provided "as is" without warranty of any kind, either express or implied, including without limitation, warranties of title or noninfringement or the implied warranties of merchantability or fitness for a particular purpose, and noninfringement of intellectual property. No Nonsens inc. assumes no responsibility for errors or omissions caused by the use of these scripts whatsoever.
The utility delprof.exe requires administrator privileges. It cannot be run
by normal users. Since logon scripts run with the credentials of the user,
it would not be appropriate to run this in a logon script.
You may not want to use the /i parameter, which causes delprof to ignore errors. Note the spaces in the command passed to the Run method are needed, one after "/c", one before "/q", and one before "/d". For the script to run delprof successfully on a computer, it must be on and authenticated to the domain, but it does not matter if anyone is logged on.
You may not want to use the /i parameter, which causes delprof to ignore errors. Note the spaces in the command passed to the Run method are needed, one after "/c", one before "/q", and one before "/d". For the script to run delprof successfully on a computer, it must be on and authenticated to the domain, but it does not matter if anyone is logged on.
The complete article can be found at: microsoft.public.scripting.vbscript
This Batch Script will remove all profiles that are inactive for 20 days or more on all network computers.
Notice: Adjust the /d: parameter to change the inactive time period. Remove the /q parameter to be prompted to confirm the deletion of each profile.
The complete article can be found at: Experts Exchange
This
site
is maintained by No-Nonsens inc. Visit the No-Nonsens inc. website for information about
Legal Notices
and our
Privacy Policy.
|