This tool is used to collect and monitor the the status of personal and business OneDrive directory syncs. Automation checks the status and will create an alert that goes to the default Alert Template (23) but can be redirected to any alert template. You can disable alerting for any agent by selecting the OneDrive directory then checking the "Ignore Status" checkbox.
Habitat OneDrive collects and displays Agents OneDrive statuses
In the first version of this tool everything is pretty much hardwired. Once you enable the automation of the service it will seek all online Windows (non Server) agents. It will execute a quick scan of the systems if the following conditions are met and will do this 4 times a day.
#1 Agent is a desktop Windows OS at least Windows 7
#2 agent is online
#3 There is an active user, data will only appear if using Onedrive when logged in.
You will only see in the plugin agents that have returned valid OneDrive Data
For us to be able to retrieve the current status Onedrive must be active and inuse on the agent. Thus the script will skip idle/logged off agents during scans. However the automation does try several times a day to collect this data which allows it to catch most if not all agents on a network daily if not several times a day to update drive status.
To Enable this tools scanning services you will open Habitat Automation Services and find the OneDrive Service and enable it. There is a ReScan Button for each client that will force a scan now if you need to seed or capture a particular agent.
There is also the actual script to scan agents available under scripts/maintenance/Habitat OneDrive Status which can be blindly executed on an agent, location or client and will follow the guidelines to scan the agent(s). You can use this script to capture one off agent or use in searches and groups to preform needed tasks.
Selecting an agent will display some basic agent data
Selecting a OneDrive Directory will provide data about the status of OneDrive
In the current build, the alternate Alert template setting is manually set via SQL.
To set alternate alert template:
Open the alert templates and acquire the template ID for the template you would like to use. Using the code below in the Habitat SQL analyzer tool, change the value of "69" with the ID of your alert template and execute. This query does not return data.
Code: Select all
REPLACE INTO plugin_p4a_habitat_properties (`Name`,`Value`) Values( 'OneDriveAlertTemplate','69')