Skip to content

Instantly share code, notes, and snippets.

@falkheiland
falkheiland / Invoke-FastPing
Created March 1, 2019 13:48 — forked from austoonz/Invoke-FastPing
A PowerShell Function that uses asynchronous ping commands to quickly ping a fleet of target machines.
<#
.SYNOPSIS
Performs a series of asynchronous pings against the target hosts.
.PARAMETER HostName
A string array of target hosts to ping.
.PARAMETER PingCount
The number of pings to send against each host.
#>
@falkheiland
falkheiland / PowerShell Microsoft.VSCode_profile.ps1
Last active November 1, 2020 11:03
PowerShell Microsoft.VSCode_profile.ps1
Import-Module -Name posh-git
$GitPromptSettings.EnableWindowTitle = $false
function Prompt
{
try
{
if (($PSEdition -eq 'Core' -and $IsWindows) -or ($PSEdition -eq 'Desktop' -and ($PSVersionTable.PSVersion.Major -eq 5 -and $PSVersionTable.PSVersion.Minor -eq 1)))
{
# PS7 on Windows or Windows PowerShell 5.1