Skip to content

[BUG] Script requires Powershell ISE #216

@shadow7483147

Description

@shadow7483147

Describe the bug
If the Powershell ISE feature of Windows is not enabled, the script hangs the disk as the Event Logger continually writes and deletes this event:

Error Message = To use the Out-GridView, install Windows PowerShell ISE by using Server Manager, and then restart this application. (Could not load file or assembly 'Microsoft.PowerShell.GraphicalHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.)
Fully Qualified Error ID = ErrorLoadingAssembly,Microsoft.PowerShell.Commands.OutGridViewCommand


Context:
        Severity = Warning
        Host Name = ConsoleHost
        Host Version = 5.1.19041.906
        Host ID = 75785c76-a6a2-4922-ab93-00877e84f56a
        Host Application = C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe ./Start-Optimize.ps1
        Engine Version = 5.1.19041.906
        Runspace ID = 5411f378-eafb-4716-8436-f1bbada12821
        Pipeline ID = 1
        Command Name = Out-GridView
        Command Type = Cmdlet
        Script Name = C:\sysinternals\Optimize-Offline-4.0.1.9\Optimize-Offline.psm1
        Command Path = 
        Sequence Number = 2099441
        User = DESKTOP-J1GPF9T\Username
        Connected User = 
        Shell ID = Microsoft.PowerShell


User Data:

I mean, yeah, I figured you need powershell to use it but not the ISE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions