ConvertFrom-CidrToIPvNetwork -vlsm "10.202.84.0/25"
ConvertFrom-CidrToIPvNetwork -vlsm "2001:489a:a0d::/64"
Test-IpAddressinNetwork -ipaddress -vlsm 10.202.84.0/25
function Get-PSBoundParameters { | |
<# | |
.SYNOPSIS | |
Get-PSBoundParameters | |
.DESCRIPTION | |
Get the bound parameters of the current command | |
.PARAMETER ParameterSetName | |
Filter the bound parameters by the specified ParameterSetName |
class FrameBuffer : IDisposable { | |
[System.Int32] $Width | |
[System.Int32] $Height | |
[System.Boolean] $Disposed | |
hidden [System.Int32[]] $buffer | |
hidden [System.Runtime.InteropServices.GCHandle] $bufferHandle | |
hidden [System.Drawing.Image] $bitmap | |
FrameBuffer([System.Int32]$w, [System.Int32]$h) { |
function Invoke-RemoteDesktopAppInstaller | |
{ | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory)] | |
[System.Management.Automation.Runspaces.PSSession] $Session | |
) | |
$installShortcutDirectory = "$($env:USERPROFILE)\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Remote App\" | |
$installResourceDirectory = "$($env:USERPROFILE)\AppData\Roaming\Microsoft\Workspaces\" |
ConvertFrom-CidrToIPvNetwork -vlsm "10.202.84.0/25"
ConvertFrom-CidrToIPvNetwork -vlsm "2001:489a:a0d::/64"
Test-IpAddressinNetwork -ipaddress -vlsm 10.202.84.0/25
function Monitor-Object { | |
param( | |
[Parameter()] | |
[Alias('Begin')] | |
[ScriptBlock]$BeginBlock = { | |
param( | |
[Parameter(Mandatory)] | |
[object] $InputObject | |
) | |
return $InputObject |
function Import-ModuleManually { | |
param( | |
[Parameter(Mandatory=$true)] | |
[string]$Module, | |
[Parameter(Mandatory=$false)] | |
[switch]$Force | |
) | |
$moduleExists = Get-Module -Name $Module -All |
function Invoke-ForEachObjectWithProgress { | |
[CmdletBinding()] | |
[Alias("ForEachWP")] | |
param( | |
[Parameter(Mandatory, ValueFromPipeline)] | |
[object] $InputObject, | |
[Parameter()] | |
[string] $Activity = "Processing items", |
function New-NamedPipeServer { | |
param( | |
[Parameter(Mandatory)] | |
[string] $PipeName, | |
[Parameter(Mandatory)] | |
[scriptblock] $ScriptBlock | |
) | |
Start-Job -Name $PipeName -ScriptBlock { |
[ | |
{ | |
"S": [ | |
{ | |
"N": "G0", | |
"T": 1, | |
"DN": "D0" | |
}, | |
{ | |
"N": "G1", |