Added try/catch

This commit is contained in:
dfinke
2018-07-04 18:58:40 -04:00
parent 35553baa05
commit b591a4ab18
17 changed files with 84 additions and 51 deletions

View File

@@ -1,6 +1,8 @@
rm .\testExport.xlsx -ErrorAction Ignore
try {. $PSScriptRoot\..\..\LoadPSD1.ps1} catch {}
ps | where Company | select Company, Name, PM, Handles, *mem* |
Remove-Item .\testExport.xlsx -ErrorAction Ignore
Get-Process | Where-Object Company | Select-Object Company, Name, PM, Handles, *mem* |
Export-Excel .\testExport.xlsx -Show -AutoSize -AutoNameRange `
-ConditionalFormat $(