Skip to content

Commit d77cec3

Browse files
authored
Update Niceties.ps1
1 parent 09b1a29 commit d77cec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Niceties.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
If(!$PSScriptRoot){$PSScriptRoot = (Split-Path -Parent $MyInvocation.MyCommand.Defenition)}
88

99
#The shortest and fastest way I know of to add a procname to the end of a netstat in powershell
10-
$X=@{};PS|%{$X[$_.Id]=$_.Name};Netstat -ano|Select -Skip 4|%{"$_"+[Char]9+$X.[Int]$_.Substring(71)}
10+
$X=@{};PS|%{$X[$_.Id]=$_.Name};Netstat -ano|Select -Skip 4|%{"$_="+$X.[Int]$_.Substring(71)}
1111

1212
#Circumvent the Set-ExecutionPolicy
1313
Powershell.exe -Command "[ScriptBlock]::Create((Get-Content 'PATHTOSCRIPT.ps1')).Invoke()"

0 commit comments

Comments
 (0)