DataSource with PowerShell script
Hi everyone,
I would like to monitor AD Sync. The collector is on a Linux server, and the application is on a Windows one. I am trying to create a DataSource based on a PowerShell script, but I fund out I should set the config file of the collector with PowerShell. policy unrestricted. I don't wanna do this for security reasons. Not sure what else I can do to get that info. I would appreciate it if someone could give me some ideas. Thanks.
Evelyn Caviedes
Posted 2 years ago·Last reply 2 years ago
4 comments
Mike Moniz
·2 years agoBy "AD Sync" do you mean Active Directory Sync do you mean AD replication between domain controllers, or ADConnect (aka DirSync) which syncs AD with M365/AzureAD/EntraID?
If it's ADConnect I would normally use the MSOnline module and Get-MsolCompanyInformation's LastDirSyncTime but this module likely requires Windows. It does seem that MS Graph API does seem have access to sync info, although it may take some work to write up the code to directly query Graph API.
Evelyn Caviedes
OP2 years agoThanks Mike, It seems like a viable solution. I will try it.