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-UsersGroups{ | |
param ( | |
$username, | |
[switch]$recurse | |
) | |
#Initialize output variable | |
$groups = @() | |
#Search AD user and retrieve the groups removing the unwanted characters from the strings. | |
((((get-aduser $username -properties memberof).memberof) | ` | |
% {$_ -split(",",2)} | ` |
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
bucket = "Synology" | |
[[inputs.snmp]] | |
# List of agents to poll | |
agents = [ "192.168.0.0:161" ] # required - enter the IP address of your Synology device | |
# Polling interval | |
interval = "20s" | |
# Timeout for each SNMP query. | |
timeout = "10s" |
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
[CmdletBinding()] | |
PARAM() | |
<# CONSTANTS | |
$AzureDefaultRuleNames contains the names of the defaule rules in an Azure Network Security Group. | |
These names can be updated if Microsoft introduce new default rules in to Azure Network Security Groups. | |
#> | |
$AzureDefaultRuleNames = @("ALLOW VNET INBOUND", "ALLOW AZURE LOAD BALANCER INBOUND", "DENY ALL INBOUND", "ALLOW VNET OUTBOUND", "ALLOW INTERNET OUTBOUND", "DENY ALL OUTBOUND") |