Bug fix for Get-System for when a needed assembly isn't loaded.

This commit is contained in:
Harmj0y
2016-05-31 23:28:19 -04:00
parent 5b94a98dbd
commit 5660218b38
+2
View File
@@ -173,6 +173,8 @@ function Get-System {
$Command = "%COMSPEC% /C start %COMSPEC% /C `"timeout /t 3 >nul&&echo $PipeName > \\.\pipe\$PipeName`""
Add-Type -Assembly System.Core
# create the named pipe used for impersonation and set appropriate permissions
$PipeSecurity = New-Object System.IO.Pipes.PipeSecurity
$AccessRule = New-Object System.IO.Pipes.PipeAccessRule( "Everyone", "ReadWrite", "Allow" )