Housekeeping

Modified on Wed, 21 May at 5:55 PM

TABLE OF CONTENTS

Introduction

ManagementStudio's housekeeping tasks helps to clean out obsolete data. This helps to keep the system optimized and functioning properly. The Housekeeping connector consist of the following panels:


  • Housekeeping Status
  • User Housekeeping
  • Device Housekeeping
  • Test Sign-Off Housekeeping
  • Intune Housekeeping
  • Misc. Tasks


An Administrator has the ability to toggle each panel OFF/ON



Housekeeping Status

The table below provides information on the elements within this panel.


UI ElementDescription
Run Housekeeping NowA button to allow an Admin to run the Housekeeping now.
Schedule Housekeeping Discovery #1Specify the times to run the Housekeeping Discovery. Please refer to this article on how to create a scheduled task.
Schedule Housekeeping Discovery #2Specify the times to run the Housekeeping Discovery. Please refer to this article on how to create a scheduled task.
Last Run DateDisplays the last time the housekeeping task ran successfully.
Housekeeping logText box used to display the housekeeping logs.





User Housekeeping

The table below provides information on the elements within this panel.


UI ElementDescription
Archive Old User Accounts
Archive Disabled AD/Azure User accounts immediatelyArchive Users if Disabled in AD/Azure immediately
Archive Inactive AD/Azure User AccountsArchive Users if Inactive in AD/Azure for over X Days.
Archive after X Days InactiveSpecify the number of days to archive an Inactive User.
UnArchive Users if seen in AD/AzureUnarchive a User if seen active in AD/Azure.
Archive 'Not Found' AD/Azure UsersArchive Users if 'Not Found' in AD/Azure for over X Days.
Archive after X Days 'Not Found'Specify the number of days to archive a User if missing.
Delete Old User Account
Delete Inactive AD/Azure UsersDelete Users if Inactive in AD/Azure for over X Days.
Delete after X Days InactiveSpecify the number of days to delete an Inactive User.
UnDelete Users if seen in AD/AzureUndelete a User if seen active in AD/Azure.
Delete 'Not Found' AD/Azure UsersDelete Users if 'Not Found' in AD/Azure for over X days.
Delete after X Days 'Not Found'Specify the number of days to delete a User if 'Not Found'.
Reset AD/Azure SIDs
Clear AD SID of 'Not Found' AD UsersClear AD SID of users 'Not Found in AD for over X days.
Clear after X Days 'Not Found'Specify the number of days to clear SID if 'Not Found'.
Clear Azure SID of 'Not Found' Azure usersClear Azure SID of users 'Not Found' in Azure for over X Days
Clear after X days 'Not Found'Specify the number of days to clear SID if 'Not Found'.
Test Settings
Test User Housekeeping SettingsExecute a dry run. Logs will be updated with entries for items that would have been updated, but no actual updates will occur.





Device Housekeeping

The table below provides information on the elements within this panel.


UI ElementDescription
Archive Old Device Accounts
Archive Disabled AD/Azure Device accounts immediatelyArchive Devices if disabled in AD/Azure immediately. Active devices will be unarchived subject to the rules below.
Archive Inactive AD/Azure DevicesArchive Devices if Inactive in AD/Azure for over X Days.
Archive after X Days InactiveSpecify the number of days to archive an Inactive Device.
UnArchive Devices if seen in AD/AzureUnarchive a Device if seen active in AD/Azure.
Archive 'Not Found' AD/Azure DevicesArchive Devices if 'Not Found' in AD/Azure for over X Days.
Archive after X Days 'Not Found'Specify the number of days to archive a Device is 'Not Found'.
Delete Old Device Accounts
Delete Inactive AD/Azure DevicesDelete Devices if Inactive in AD/Azure for over X Days.
Delete after X Days InactiveSpecify the number of days to delete an Inactive Device.
UnDelete Users if seen in AD/AzureUndelete a Device if seen active in AD/Azure.
Delete Missing AD/Azure DevicesDelete Devices if 'Not Found' in AD/Azure for over X days.
Delete after X Days 'Not Found'Specify the number of days to delete a Device if 'Not Found'.
Reset AD/Azure SIDs
Clear AD SID of 'Not Found' AD DevicesClear AD SID of Devices 'Not Found in AD for over X days.
Clear after X Days 'Not Found'Specify the number of days to clear SID if 'Not Found'.
Clear Azure SID of 'Not Found' Azure DevicesClear Azure SID of Devices 'Not Found' in Azure for over X Days
Clear after X days 'Not Found'Specify the number of days to clear SID if 'Not Found'.

Test Settings
Test Device Housekeeping SettingsExecute a dry run. Logs will be updated with entries for items that would have been updated, but no actual updates will occur.




Test Sign-Off Housekeeping

The table below provides information on the elements within this panel.


UI ElementDescription
Modules in ScopeEnable the module that are in scope within the project.
Archive Test-Sign-Offs if not completed after X daysArchive Test-Sign-Offs if not completed after X days.
Archive after X DaysSpecify the number of days to archive an an incomplete Test Sign-Offs.
Delete Test Sign-Offs if not completed after X DaysDelete Test Sign-Offs if not completed after X Days.


Delete after X DaysSpecify the number of days to delete an an incomplete Test Sign-Offs.

Test Settings
Test Sign-Off Housekeeping SettingsExecute a dry run. Logs will be updated with entries for items that would have been updated, but no actual updates will occur.


Intune Housekeeping

The table below provides information on the elements within this panel.


UI ElementDescription
Remove LinksRemove links between Intune-discovered applications and user/devices if those links haven't been seen in Intune recently. This indicates that the application may no longer be present on the device.
Remove links from Intune Managed AppsRemove links from Intune Managed Apps.
Remove links older than X DaysSpecify the number of days to remove a links from Intune Managed apps.

Remove links from Intune Discovered AppsRemove links from Intune discovered apps.
Remove Links older than X DaysSpecify the number of days to remove a links from Intune discovered apps.
Additional Checks
Intune Links ExclusivelyOnly delete links if they are exclusively tagged by Intune Connectors.
Ignore Locked ComponentsDo not delete links if any associated component (application, user or device) is locked.
Remove Apps
Remove Intune Applications with zero Users/Devices if they meet all the following conditions:
1. The application was created by Intune.
2. It has no associated user/device links.
3. It is in the pending, Rationalised, or Rejected queue.
Remove Intune AppsRemove Intune Apps with zero links to Users/Devices.
Remove Apps with StatusEnable the App Status required.
Test Settings
Test Intune Housekeeping SettingExecute a dry run. Logs will be updated with entries for items that would have been updated, but no actual updates will occur.






Misc. Tasks

The table below provides information on the elements within this panel. Here you can enable/configure some smaller housekeeping tasks to make day-to-day operation easier.


UI ElementDescription
Blueprints
Remove Empty BlueprintsEnable this option to remove empty blueprints
Folder Ids to SearchEnter a comma-Seperated list of folders IDs to check for empty blueprints to delete. The search will include all subfolders with each specified folder. Enter '0' to search the entire blueprint tree. E.g. 5,6,8
Test Settings
Test Misc. Tasks SettingsExecute a dry run. Logs will be updated with entries for items that would have been updated, but no actual updates will occur.



Configuring The Housekeeping Extension

  • Switch to Administration->Extensions->Connectors (1)
  • Click Add New Connector (2)
  • Select + Housekeeping (3)


  • The Housekeeping panel should now be visible within the left tabbed menu
  • Click on the Toggle button to enable the sections you would like to configure the housekeeping task
  • Once completed, Click Save Changes
  • Click Run Housekeeping Now
  • Click Continue
  • Within a few minutes, click Reload 
  • You should now see the Housekeeping Log being populated
  • To Schedule the Housekeeping connector to run at set intervals, please refer to this article for more information




Further Support

If you require further support, please visit ManagementStudio's Service Desk to search the knowledge base or create a new 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