Housekeeping

Modified on Wed, 4 Feb at 1:52 PM

TABLE OF CONTENTS


Housekeeping Connector Overview

The Housekeeping connector in ManagementStudio provides automated tools to remove obsolete data, helping keep your environment optimised and ensuring smooth system operation. Housekeeping functionality is organised into separate panels, each responsible for a specific data area:

  • Housekeeping Status
  • User Housekeeping
  • Device Housekeeping
  • Test Sign-Off Housekeeping
  • Intune Housekeeping
  • Miscellaneous Tasks

Administrators can toggle each panel on or off as required.


Housekeeping Status

This panel controls the scheduling and execution of Housekeeping tasks. The following table describes each UI element:

UI ElementDescription
Run Housekeeping NowRun all enabled Housekeeping tasks immediately.
Schedule Housekeeping Discovery #1Specify when to run the first scheduled Housekeeping Discovery. See scheduled tasks article for more information.
Schedule Housekeeping Discovery #2Specify when to run the second scheduled Housekeeping Discovery. Refer to the same article above.
Last Run DateShows the date and time the last Housekeeping run completed successfully.
Housekeeping logDisplays logs generated during Housekeeping runs.




User Housekeeping

Manage archiving, deletion, and SID reset of user accounts based on Active Directory (AD) or Azure AD status.

UI ElementDescription
Archive Old User AccountsEnable archiving operations for user accounts.
Archive Disabled AD/Azure User accounts immediatelyArchive users disabled in AD/Azure immediately.
Archive Inactive AD/Azure User AccountsArchive users inactive in AD/Azure for over a specified number of days.
Archive after X Days InactiveSet the inactivity threshold (in days) for archiving.
UnArchive Users if seen in AD/AzureUnarchive users if detected as active in AD/Azure.
Archive 'Not Found' AD/Azure UsersArchive users not found in AD/Azure for more than a specified number of days.
Archive after X Days 'Not Found'Set the not-found threshold (in days) for archiving.
Delete Old User AccountEnable deletion operations for user accounts.
Delete Inactive AD/Azure UsersDelete users inactive in AD/Azure for over a specified number of days.
Delete after X Days InactiveSet the inactivity threshold (in days) for deletion.
UnDelete Users if seen in AD/AzureRestore deleted users if detected as active in AD/Azure.
Delete 'Not Found' AD/Azure UsersDelete users not found in AD/Azure for more than a specified number of days.
Delete after X Days 'Not Found'Set the not-found threshold (in days) for deletion.
Reset AD/Azure SIDsEnable SID reset operations.
Clear AD SID of 'Not Found' AD UsersClear AD SIDs for users not found in AD for over a specified number of days.
Clear after X Days 'Not Found'Set the not-found threshold (in days) for SID clearing (AD or Azure as appropriate).
Clear Azure SID of 'Not Found' Azure usersClear Azure SIDs for users not found in Azure for over a specified number of days.
Clear after X days 'Not Found'Set the not-found threshold (in days) for Azure SID clearing.
Test Settings
Test User Housekeeping SettingsPerform a dry run—logs entries for items that would be affected, but no changes are made.



Device Housekeeping

Manage the lifecycle of device accounts by archiving, deleting, and resetting SIDs, based on AD or Azure AD status.

UI ElementDescription
Archive Old Device AccountsEnable archiving for device accounts.
Archive Disabled AD/Azure Device accounts immediatelyArchive devices disabled in AD/Azure immediately. Active devices are unarchived as per rules below.
Archive Inactive AD/Azure DevicesArchive devices inactive in AD/Azure for over a specified number of days.
Archive after X Days InactiveSet inactivity threshold (in days) for archiving.
UnArchive Devices if seen in AD/AzureUnarchive device if detected as active in AD/Azure.
Archive 'Not Found' AD/Azure DevicesArchive devices not found in AD/Azure for more than a specified number of days.
Archive after X Days 'Not Found'Set the not-found threshold (in days) for archiving.
Delete Old Device AccountsEnable deletion of device accounts.
Delete Inactive AD/Azure DevicesDelete devices inactive in AD/Azure for over a specified number of days.
Delete after X Days InactiveSet inactivity threshold (in days) for deletion.
UnDelete Users if seen in AD/AzureRestore deleted device if detected as active in AD/Azure.
Delete Missing AD/Azure DevicesDelete devices not found in AD/Azure for over a specified number of days.
Delete after X Days 'Not Found'Set the not-found threshold (in days) for device deletion.
Reset AD/Azure SIDsEnable SID reset operations.
Clear AD SID of 'Not Found' AD DevicesClear AD SIDs for devices not found in AD for over a specified number of days.
Clear after X Days 'Not Found'Set the not-found threshold (in days) for SID clearing (AD or Azure as appropriate).
Clear Azure SID of 'Not Found' Azure DevicesClear Azure SIDs for devices not found in Azure for over a specified number of days.
Clear after X days 'Not Found'Set the not-found threshold (in days) for Azure SID clearing.
Test Settings
Test Device Housekeeping SettingsPerform a dry run—logs entries for items that would be affected, but no changes are made.



Test Sign-Off Housekeeping

Automate the clean-up of incomplete or aged Test Sign-Offs.

UI ElementDescription
Modules in ScopeSelect modules in scope for Test Sign-Off housekeeping.
Archive Test-Sign-Offs if not completed after X daysArchive incomplete Test Sign-Offs older than specified days.
Archive after X DaysSet the threshold (in days) for archiving incomplete Test Sign-Offs.
Delete Test Sign-Offs if not completed after X DaysDelete incomplete Test Sign-Offs older than specified days.
Delete after X DaysSet the threshold (in days) for deleting incomplete Test Sign-Offs.
Test Settings
Test Sign-Off Housekeeping SettingsPerform a dry run—logs entries for items that would be affected, but no changes are made.



Intune Housekeeping

Configure removal of obsolete Intune-related data, including links and unused applications.

UI ElementDescription
Remove LinksRemove links between Intune-discovered applications and users/devices if those links are not seen recently.
Remove links from Intune Managed AppsRemove links from Intune Managed Apps based on age.
Remove links older than X DaysSet the threshold (in days) for removing links from Intune Managed Apps.
Remove links from Intune Discovered AppsRemove links from Intune Discovered Apps based on age.
Remove Links older than X DaysSet the threshold (in days) for removing links from Intune Discovered Apps.
Additional ChecksAdditional filters and constraints for link/app removal.
Intune Links ExclusivelyOnly delete links if they are exclusively tagged by Intune Connectors.
Ignore Locked ComponentsPrevent deletion if any associated component (application, user, device) is locked.
Remove Apps
Remove Intune Applications with zero Users/Devices if they meet all the following conditions:Apps must: 1) Be created by Intune, 2) Have no user/device links, 3) Be in the pending, Rationalised, or Rejected queue.
Remove Intune AppsRemove Intune apps with zero links to users or devices.
Remove Apps with StatusSpecify application statuses for removal.
Test Settings
Test Intune Housekeeping SettingPerform a dry run—logs entries for items that would be affected, but no changes are made.



Miscellaneous Tasks

Configure supplemental housekeeping operations for blueprints and related items.

UI ElementDescription
Blueprints
Remove Empty BlueprintsRemove blueprints with no content.
Folder Ids to SearchComma-separated list of folder IDs to search for empty blueprints (includes subfolders). Enter 0 to search all blueprint folders. E.g. 5,6,8
Test Settings
Test Misc. Tasks SettingsPerform a dry run—logs entries for items that would be affected, but no changes are made.



Configuring the Housekeeping Extension

  1. Navigate to Administration → Extensions → Connectors.
  2. Click Add New Connector.
  3. Select + Housekeeping.

  1. The Housekeeping panel will appear in the left tabbed menu.
  2. Use the toggle buttons to enable the sections you wish to configure.
  3. Click Save Changes once setup is complete.

To run Housekeeping:

  • Click Run Housekeeping Now.
  • Click Continue.
  • After a few minutes, click Reload.
  • The Housekeeping Log should now display details of the run.

To schedule Housekeeping runs:
Please refer to the Scheduling the Housekeeping connector article.


Further Support

For further assistance, visit the ManagementStudio Service Desk to search the knowledge base or submit a support ticket.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article