From e9b22e9ae2391d1dc362501c282248945b3ca467 Mon Sep 17 00:00:00 2001 From: bitform Date: Sun, 20 Jan 2013 08:56:37 -0500 Subject: Removed logic in scripts to load ps1xml files * Now that PETools and ReverseEngineering are both full-fledged modules with proper manifests, the manifests will take care of loading the appropriate ps1xml files. * Added Usage.txt to ReverseEngineering module. --- ReverseEngineering/Get-PEB.ps1 | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'ReverseEngineering/Get-PEB.ps1') diff --git a/ReverseEngineering/Get-PEB.ps1 b/ReverseEngineering/Get-PEB.ps1 index 6dbd55a..dbb95a0 100644 --- a/ReverseEngineering/Get-PEB.ps1 +++ b/ReverseEngineering/Get-PEB.ps1 @@ -57,17 +57,6 @@ http://msdn.microsoft.com/en-us/library/windows/desktop/aa813706(v=vs.85).aspx { Set-StrictMode -Version 2 - # Load custom object formatting views - if (Test-Path .\Get-PEB.format.ps1xml) - { - Update-FormatData -PrependPath .\Get-PEB.format.ps1xml -ErrorAction SilentlyContinue - } - else - { - try { Update-FormatData -PrependPath (Join-Path $PSScriptRoot Get-PEB.format.ps1xml) -ErrorAction SilentlyContinue } - catch { Write-Warning 'To ensure proper output display, place Get-PEB.format.ps1xml in the same folder as this script.' } - } - $mscorlib = [AppDomain]::CurrentDomain.GetAssemblies() | ? { $_.FullName.Split(',')[0].ToLower() -eq 'mscorlib' } $Win32Native = $mscorlib.GetTypes() | ? { $_.FullName -eq 'Microsoft.Win32.Win32Native' } -- cgit v1.2.3