As below image is indicating: Type: net stop 'Service name' and press Enter to stop the. Type: net start 'Service name' and press Enter to start a service. As below image is showing: PowerShell screen will open. Right-click the Start button and select Windows PowerShell (admin) option. Maybe the slowness you experience is the PowerShell trying to read a big history file (which is not yet big enough to cause OutOfMemory). Windows PowerShell’s method to change the service status. I tried deleting history file in ~\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadline\ which was over 6 GB by then and after that PowerShell console started opening pretty quickly. On a Windows host that has a problem with WMI or powershell. This led me to the existing Github issue: Any error like this when running the powershell script on startup is not properly handled. Drag and drop in C:UsersUSERNAMEAppDataRoamingMicrosoftWindowsStart MenuProgramsStartup To test if the app is added successfully: 1. System.OutOfMemoryException: Array dimensions exceeded supported range.Īt `1.set_Capacity(Int32 value)Īt `1.EnsureCapacity(Int32 min)Īt `1.Add(T item)Īt System.IO.File.InternalReadAllLines(String path, Encoding encoding)Īt _67_0()Īt (Int32 timeout, Action action)Īt ()Īt (Runspace runspace, EngineIntrinsics engineIntrinsics)Īt (Runspace runspace, EngineIntrinsics engineIntrinsics) I had been experiencing the same issue for quite some time until PowerShell started failing on startup with the following error: Exception: