Optimize-Offline icon indicating copy to clipboard operation
Optimize-Offline copied to clipboard

[BUG] Script requires Powershell ISE

Open shadow7483147 opened this issue 2 years ago • 0 comments

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.

shadow7483147 avatar Dec 06 '21 22:12 shadow7483147