Connect an AI assistant
Your AI assistant can read this documentation directly, so it answers from the current content instead of guessing. Add one of the servers below to your client — they use the Model Context Protocol (MCP). Each one covers a different body of content, so add the one you need.
The catalog did not load. Refresh the page to try again.
Loading…
{{server.name}}
{{server.summary}}
{{server.documentCount.toLocaleString()}} pages Not published to this site
- Name
-
{{server.name}} - URL
-
{{mcpServerUrl(server.path)}}
| Tool | What it does |
|---|---|
{{tool.name}} |
{{part.text}}{{part.text}} |
How can we help?
Searching in {{docApp.searchFilterBySpecificBookTitle}}
Searching for:
{{docApp.searchResultFilteredItems.length}} results for:
{{docApp.currentResultsSearchText}}
in {{docApp.searchFilterBySpecificBookTitle}}
Found {{docApp.searchResponse.totalResultsAvailable}} matches. Showing the top {{docApp.searchResponse.results ? docApp.searchResponse.results.length : 0}}. Use a more specific search to further narrow down the results.
No documentation pages match this search, so all content types are shown.
Most matches are in {{docApp.searchDocTypeRescue.best.name}}.
There is no book with the ID "{{docApp.searchBookRescue.bid}}", so the book filter from this link was ignored and results from all books are shown.
You have an odd number of " characters in your search terms - each one needs closing with a matching " character!
-
{{resultItem.title}} {{resultItem.matchedBy === 'semantic' ? 'semantic' : (resultItem.matchedBy === 'both' ? 'keyword + semantic' : 'keyword')}}
{{resultItem.url}}
{{docApp.libraryHomeViewProduct.title || docApp.libraryHomeViewProduct.id}}
{{docApp.libraryHomeViewProduct.description}}
{{group.title || group.id}}
{{group.description}}
Windows Disk Cleanup
- Article
- 2 minutes to read
Disk Cleanup
Automate Windows PC disk clean-ups direct from Hornbill
Package Details
- Vendor: Microsoft
- Target Platform: Windows Universal
- Package Type: Server and Workstation Management
- Subscription Tiers: ServerDevOps
Why use this
Automatically trigger disk clean-ups across all Windows machines
Reduce the endpoint management workload for IT operations teams
What it does
- Create a registry profile for disk cleanup
- Run Windows Disk Cleanup tool on target machines
These actions can be taken by Hornbill users, automated business process workflows, and IT operations runbooks.
Find out more about the Windows Disk Cleanup Tool, plus the parameters available to the operation in this package, on the Microsoft Website.
How to get it
- You can try out ITOM for free (not for production use, limited runs) by installing the ITOM application from the Hornbill App Store.
- If you would like to explore ITOM and consider subscribing, please contact your account manager here.
Requirements
- Windows Disk Cleanup Utility must be installed on all target machines
- Target machine for script execution should be running PowerShell v5.x
- If the script execution policy on the machine executing these operations is set to
Restricted, then this will need to be updated toRemoteSigned. See the Microsoft website for more information.
Authentication
When creating jobs for operations contained within this package, they need to be run on the target machine as a user who has the correct privileges within your environment. To create and securely store keys:
- In the Configuration area of your Hornbill instance, navigate to Platform Configuration > Security > KeySafe;
- Click on the + Create New Key button, then select Username + Password;
- Give the KeySafe Key a Title (this is the name/identifier for the Active Directory account as you will see it when creating an IT Automation Job, or adding an IT Automation node to a Workflow);
- Optionally add a Description;
- Populate the Username field with the domain username for the account being used, for example:
DOMAINNAME\yourusername; - 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 to populate the Credentials > Admin or Run As inputs when creating IT Automation Jobs from this package.
Package Automations
| Operation | Description |
|---|---|
| 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 also
- Version {{docApp.book.version}}
- Node {{docApp.node}} / {{docApp.build}}