This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
This script retrieves Azure Active Directory Risk Sign-in Events from the Microsoft Graph API and send an email alert report. | |
Only the active events from the last 30 days will be retrieved (that can be modified via the $filter value in uriGraphEndpoint or removed to get all events). | |
See the official documentation for more info: | |
https://docs.microsoft.com/en-us/azure/active-directory/active-directory-identityprotection-graph-getting-started | |
https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_sendmail | |
#> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################## | |
# ____ _____ ______ __ _ | |
# / __ \ / ___/ / ____/ ____ ____ / /_ ____ _ (_) ____ | |
# / /_/ / \__ \ / / / __ \ / __ \ / __/ / __ `/ / / / __ \ | |
# / ____/ ___/ / / /___ / /_/ / / / / // /_ / /_/ / / / / / / / | |
# /_/ /____/ \____/ \____/ /_/ /_/ \__/ \__,_/ /_/ /_/ /_/ | |
# | |
################################################################################## | |
# | |
# This script will use the CS API to stop network connectivity on workstations that |