This file contains hidden or 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
$GPStoreLocation = "\\contoso.com\sysvol\contoso.com\Policies\PolicyDefinitions" | |
Get-item -Path "$GPStoreLocation\*.*" | Sort-Object Name | Select-Object Name | Out-GridView |
This file contains hidden or 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
# Get all the possible events of an event log provider | |
(Get-WinEvent -ListProvider "Microsoft-Windows-SENSE").events | Select-Object ID,Description |
This file contains hidden or 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
Function Get-NetBiosDisabledStatus | |
{ | |
<# | |
.Synopsis | |
Get-NetBiosDisabledStatus | |
.DESCRIPTION | |
Get-NetBiosDisabledStatus checks whether NetBIOS over TCP/IP is disabled | |
on all IP enabled network adapters. | |
When NETBIOS over TCP/IP is disabled on all IP enabled network adapters |
This file contains hidden or 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
function Get-AzMFADeploymentStats | |
<# | |
.Synopsis | |
Get-AzMFADeploymentStats | |
.DESCRIPTION | |
Get-AzMFADeploymentStats retrieves the MFA registration information from all users in the | |
Tenant and summarizes the results by MFA Authentication mode. | |
.EXAMPLE | |
Get-AzMFADeploymentStats |
This file contains hidden or 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
function Validate-DkimConfig | |
{ | |
[cmdletbinding()] | |
Param( | |
[parameter(Mandatory=$false)] | |
[string]$domain, | |
[parameter(Mandatory=$false)] | |
[switch]$showAll | |
) |
This file contains hidden or 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
Function Start-MDATPAnalyzer{ | |
<# | |
.Synopsis | |
Start-MDATPAnalyzer | |
.DESCRIPTION | |
Start-MDATPAnalyzer downloads and then runs the Microsoft Defender Connectivity Analyzer tool referenced here: | |
https://docs.microsoft.com/en-us/windows/security/threat-protection/microsoft-defender-atp/configure-proxy-internet#verify-client-connectivity-to-microsoft-defender-atp-service-urls | |
.PARAMETER TargetPath | |
Location where MDATP Analyzer will be downloaded and executed from. | |
.NOTES |
This file contains hidden or 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
Write-host "I was just downloaded" |
This file contains hidden or 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
Write-host "I was just downloaded" | |
Param( | |
$Param1 | |
) | |
write-host "And executed with $Param1" | |
pause |
This file contains hidden or 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
Write-host "I was just downloaded" | |
Function RunMe{ | |
Param( | |
$Param1 | |
) | |
write-host "And executed with $Param1" | |
pause | |
} |
This file contains hidden or 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
# Check if Hawk is installed | |
If(!(Get-Module "Hawk")) | |
{ | |
Install-Module -Name "Hawk" -scope CurrentUser | |
} | |
Else | |
{ | |
Write-Output "Hawk Module is already installed" | |
} |