Closed apj68 closed 4 years ago
Thanks @apj68 we recently published an update to our Preview extension which has addressed a number of underlying issues and added some more error messages which are helpful for diagnosing the issue...would you mind giving it a try and letting us know if you are still hitting this issue?
@SydneyhSmith , thanks! I tried preview9 and had the same results so then I removed all my extensions and ONLY loaded preview9. It did hang but after waiting a couple of times it did become functional. So I thought maybe it was my extensions so I tried the same thing with preview6 and the hanging persisted and I couldn't make it work. So I went back to preview9 which, again, it did hang during the process (saying something like "Loading the Powershell extension is taking longer than expected"), but after a couple of times waiting it did come back.
Our administrators have our $profile on a network drive that is excruciatingly slow. For a regular PS session I use a shortcut for which I use -noprofile
then invoke a profile script in a local path. I don't know if that could have something to do with it but with preview6, it doesn't matter how long I wait, it seems to never come up. Could the extension be trying to load the network profile?
@apj68 The PowerShell extension uses its own profile, and the backing process is started with -noprofile
. However, if you've got things like a network drive on the module path, that could also cause this.
Another big cause of startup hangs we see is antivirus -- is it possible that is playing a role for you?
AH, ok.. yes, I'm in a corporate environment we have all sorts of antivirus software that can't be shutoff. Might there be a way to rule out or confirm if it's antivirus? I didn't find anything in the event logs.
@apj68 does your organization use BeyondSoft or Avecto privilege management?
Yes, we use BeyondTrust by BeyondSoft. I do have elevate privileges for some things. Let me try running as admin and see what happens.
The performance seems about the same running as admin or not. In any case, I guess this is a known issue w/privilege management. At least it works in preview9, I couldn't get control to return at all using preview6.
@apj68 You have PowerBreaker, er PowerBroker on your system too? My condolences - same here. BTW there is a tool that comes with PB called polmon.exe that will show when PB intercepts process launches. Also, I'm not sure this is specific to our company or PB in general, but we are told to find the original exe, right-click and select Run Elevated
and not Run as Administrator
.
I'm not sure if we have that one, which surprises me because if it's a burden and slows thing down we usually have it 😉
We do use BeyondTrust the same way, although sometimes it seems the Run with PrivilegeGuard
is not available but Run as Administrator
is. I've tried this both ways and it takes a couple minutes (with preview9) to get vscode up and running with either.
We've heard the 32bit Windows PowerShell is faster with BeyondSoft for what it's worth. It's unclear how BeyondSoft slows us down so much but it seems to be the cause :(
I've not been able to use this extension at all. When I attempt to install it this is what happens:
The only way out of this loop is to close the window, open a non-PS file and remove the extension.
I'd really like to use the extension and seems there aren't a lot of other people with this issue. Can anyone suggest some troubleshooting?