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
function GenerateRainbowTable { | |
param( | |
[int]$size, | |
[char[]]$Charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
) | |
foreach($char in $Charset) { | |
if($size -eq 1) { | |
$char | |
} else { |
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
new-udpage -Url '/ClaimDebug' -Icon cogs -Id 'ClaimDebugPage' -Title 'Claim Debug' -Endpoint { | |
new-udcard -Title 'Authorization Policy' -Content { | |
New-UDElement -Tag ul -Attributes @{className="collection"} -Content { | |
Get-UDAuthorizationPolicy | ForEach-Object { New-UDElement -Attributes @{className="collection-item"} -Content {$_} -Tag 'li'} | |
} | |
} | |
New-UDCard -Title 'Claims' -Endpoint { | |
New-UDTable -Content { |
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
$Cache:groupNames = Get-ADOrganizationalUnit -LDAPFilter '(name=*)' -SearchBase 'OU=OU1,OU=Groups,DC=domain,DC=domain,DC=local' -SearchScope OneLevel | Select-Object -ExpandProperty name | |
Add-Type -TypeDefinition @" | |
// very simple enum type | |
public enum Departments | |
{ | |
`n $(foreach ($Group in ($Cache:groupNames)){"`t$($Group.replace(" ","_"))`,"} | |
) `n | |
} | |
"@ | |
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
<# | |
.SYNOPSIS | |
Get-Exchange2016AVExclusions.ps1 - Generate list of exclusions for antivirus software. | |
.DESCRIPTION | |
This PowerShell script generates a list of file, folder, process file extension exclusions | |
for configuring antivirus software that will be running on an Exchange 2016 server. The | |
correct exclusions are recommended to prevent antivirus software from interfering with | |
the operation of Exchange. |
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
function Get-NETBlock { | |
<# | |
.SYNOPSIS | |
Get-NETBlock checks if the computer is blocked from receiving the .net framework update via windows update. | |
.DESCRIPTION | |
Get-NETBlock uses remote registry to query the value discribed in https://support.microsoft.com/en-us/kb/3133990 | |
.PARAMETER ComputerName | |
The Computer name to query. Default: Localhost. |