Skip to content

This will compare all the machines in every Sophos Central MSP/EDB/Single Console and Active Directory. It will list all the machines not protected by Sophos Central and when those machines last spoke to a Domain Controller. It will also mark as suspicious any machine where the AD login time is prior to the last Sophos Central message time. Plea…

License

Notifications You must be signed in to change notification settings

sophos/PS.Unprotected_Machines

Repository files navigation

Unprotected_Machines

This workflow identifies machines listed in Active Directory or Entra that are missing from Sophos Central (MSP, EDB or single console), and flags devices as suspicious if they are reporting to the directory, but not to Sophos Central for over three days longer. The Entra comparison focuses on devices that are either AzureDomainJoined or OnPremiseCoManaged.

Please follow the PDF guide

This script replaces the previous scripts Unprotected_Machines_EDB_MSP and Unprotected_Machines_Single_Tenant scripts into one script

v2025.7 Fixed an issue where all machines may not be returned

v2025.4 Fixes an issue when using AD only. It would still try and authenticate with Entra. Moved MSAL import so you don't have to install it if you are using AD only Added MSAL import check Added Bearer check Added LDAP port check in case it is string

v2025.3 This is a big update. Entra is now supported.

v2025.1 Recoded how the last days are calculated. Milliseconds are now removed regardless of being present or not.

v2024.14 Swapped to the new version number format Added a HTML report

v2.21 Fixed a unsupported hash type MD4 error

v2.19 Fixed an issue where the sub esate names may report incorrectly

v2.17 Fixed an issue where the script would fail when used with a Sophos Central Enterprise Dashboard or MSP

v2.16 The script will now check to see if machines have spoken to Active Directory and not to Sophos Central within 2 days of each other. This should find machines where they were rebuilt, are in Active Directory AND in Sophos Central, but have not had Sophos Central installed. If you have authenticated to Active Directory you should be able to speak to Sophos Central

v2.14 Fixed an issue when the script was run against a Sophos Central Enterprise Dashboard

About

This will compare all the machines in every Sophos Central MSP/EDB/Single Console and Active Directory. It will list all the machines not protected by Sophos Central and when those machines last spoke to a Domain Controller. It will also mark as suspicious any machine where the AD login time is prior to the last Sophos Central message time. Plea…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages