Difference between revisions of "Windows Disk Cleanup"

From Hornbill
Jump to navigation Jump to search
(Created page with "{{bluebanner|Home > Administration > IT Operations Management > ITOM Package Library > Windows Disk Cle...")
 
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{bluebanner|[[Main_Page|Home]] > [[Administration]] > [[IT_Operations_Management|IT Operations Management]] > [[ITOM_Package_Library|ITOM Package Library]] > Windows Disk Cleanup|[[:Category:ITOM|Index]]}}
+
This document can now be found at its new location in the [https://docs.hornbill.com/itom-packages/welcome Hornbill Document Library].
[[File:activedirectory_logo.png|activedirectory_logo.png|300px]]
 
{{IntroAndLinks|The Windows Disk Cleanup package for Hornbill's IT Operations Management (ITOM) contains an operation to automate the execution of the Windows Disk Cleanup tool on target machines.
 
|
 
<!-- Related Links go here -->
 
:* [[IT_Operations_Management|IT Operations Management]]
 
:* [[Business_Process_Designer|Business Process Designer]]
 
:* [[Hornbill_KeySafe|KeySafe]]
 
}}
 
  
==Target Environment Requirements==
+
    [[file:hornbill-document-library.png|ITOM Package Reference|link=https://docs.hornbill.com/itom-packages/welcome]]
 
+
[[Category:HDOC]]
===Script Execution Machine Requirements===
 
 
 
* If the script execution policy on the machine executing these operations is set to Restricted, then this will need to be updated to something less restrictive. See the [https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-6 PowerShell Documentation] for more information.
 
 
 
==KeySafe Configuration==
 
[[File:Itomtarget_keysafe.png|300px|right|link=https://wiki.hornbill.com/images/d/d2/Itomtarget_keysafe.png]]
 
 
 
When creating SIS jobs for operations contained within this package, they need to be run on the target machine as a user who has the correct privileges on the target.
 
 
 
To configure your '''Target Machine''' account authentication in '''[[Hornbill_KeySafe|KeySafe]]''':
 
 
 
* In the Admin console, navigate to: System > Security > KeySafe;
 
* Click on + then select <code>Username + Password</code>;
 
* Give the KeySafe Key a Title (this is the name/identifier for the target machine account as you will see it when creating an IT Automation Job, or adding an IT Automation node to a Business Process or Runbook);
 
* Optionally add a description;
 
* Populate the Username field with the domain/local account username for the account being used on the target machine;
 
* Populate the Password field with the password for the above account;
 
* Select Create Key to save.
 
 
 
Once you have created your KeySafe Key, you can then use it when creating IT Automation Jobs from this package. See screenshots to the right for examples.
 
 
 
==Package Operations==
 
The Windows Disk Cleanup package contains the following operations, than can be used to create ITOM Jobs directly, or included in your [[Business_Process_Designer|Business Processes]] and/or IT Operations Management Rubooks. 
 
 
 
===Custom Cleanup===
 
 
 
This operation will create a cleanup profile in the target machines registry, and use that profile when executing the Windows Disk Cleanup tool. See the [https://support.microsoft.com/en-gb/help/253597/automating-disk-cleanup-tool-in-windows Windows Disk Cleanup Tool documentation] for more information on the Input Parameters, below.
 
 
 
====Extra Credentials====
 
 
 
None required.
 
 
 
====Input Parameters====
 
 
 
* <code<Reference</code> '''(MANDATORY)''' - The Reference number for the new disk cleanup profile in the Windows Registry, should contain an integer value from 0 to 65535. NOTE: If there is a disk cleanup profile that already exists in the registry with the same reference as you specify here, then this will be overwritten by what is selected in this job.
 
* <code>ActiveSetupTempFolders</code>
 
* <code>BranchCache</code>
 
* <code>DownloadedProgramFiles</code>
 
* <code>InternetCacheFiles</code>
 
* <code>OldChkDskFiles</code>
 
* <code>PreviousInstallations</code>
 
* <code>RecycleBin</code>
 
* <code>ServicePackCleanup</code>
 
* <code>SetupLogFiles</code>
 
* <code>SystemErrorMemoryDumpFiles</code>
 
* <code>SystemErrorMiniDumpFiles</code>
 
* <code>TemporaryFiles</code>
 
* <code>TemporarySetupFiles</code>
 
* <code>ThumbnailCache</code>
 
* <code>UpdateCleanup</code>
 
* <code>UpgradeDiscardedFiles</code>
 
* <code>UserFileVersions</code>
 
* <code>WindowsDefender</code>
 
* <code>WindowsErrorReportingArchiveFiles</code>
 
* <code>WindowsErrorReportingQueueFiles</code>
 
* <code>WindowsErrorReportingSystemArchiveFiles</code>
 
* <code>WindowsErrorReportingSystemQueueFiles</code>
 
* <code>WindowsErrorReportingTempFiles</code>
 
* <code>WindowsESDInstallationFiles</code>
 
* <code>WindowsUpgradeLogFiles</code>
 
 
 
====Output Parameters====
 
 
 
* <code>warnings</code> - Any warnings returned by the operation.
 
 
 
[[Category:ITOM]]
 

Latest revision as of 18:11, 10 April 2024

This document can now be found at its new location in the Hornbill Document Library.

   ITOM Package Reference