Skip to content

Instantly share code, notes, and snippets.

Function Swap-Elements
{
[CmdletBinding()]
Param
(
[Parameter(Mandatory=$true, Position=0)]
[ref]$Array,
[Parameter(Mandatory=$true, Position=1)]
$IndexOne,
Function Append-LevDistance
{
[CmdletBinding()]
Param
(
[Parameter(Mandatory=$true, Position=2)]
[Object]
[ref]$Users,
[Parameter(Mandatory=$true, Position=0)]
$OU = ""
$GPOs = (Get-GPInheritance -Target $OU)
$guids = $GPOs.InheritedGpoLinks.GpoId.Guid
foreach($guid in $guids)
{
$guid
[XML]$RSOP = Get-GPOReport -Guid $guids[0] -ReportType XML
$RSOP.SelectNodes("//*[local-name()='DestinationPath']").InnerText
pause
MS17-010 - “EternalBlue” & “EternalRomance” & “EternalSynergy”
4012598
4012212
4012213
4012214
4012215
4012216
4012217
4012606
4013198