Product, version and build: Powershell Studio 2018, Version 5.5.148.0
32 or 64 bit version of product: 32 bit
Operating system: Windows 7 SP1
32 or 64 bit OS: 32 bit
OS/App Language: German
I get an Error while Editing script: Unhandled Exception: Object reference not set to an instance of an object.
No "ForEach" Loops or other loops present.
I got that error in other scripts too. Seems to me it pops up when loading the tooltip for lines with variables that were initialized with $null
Code: Select all
[CmdletBinding()]
Param (
$Server = $null,
$FilePath = $null
)
openfiles /Query /S $Server /FO CSV /V | ConvertFrom-Csv |
where { $_."Open File (Pfad\ausführbare Datei)" -like "*$FilePath*" -and $_."Öffnungsmodus" -like "Schreiben + Lesen" } |
select "Zugriff durch", "Open File (Pfad\ausführbare Datei)" |
Sort "Open File (Pfad\ausführbare Datei)" |
Out-GridView -wait