PowerShell 64-bit hanging on new machine
up vote
0
down vote
favorite
I just got a new computer with plenty of horsepower and its works fast everywhere except PowerShell. Some of the symptoms, which seem to be consistent:
- Opening PowerShell shows the copyright info and hangs there for 2 minutes before showing the prompt.
- I start typing a command and it takes almost a minute for the text to appear
- Once the text appears I can modify the command and it's responsive.
- I enter a simple command such as
echo 'hello'
and hit enter, it takes about 45 seconds for 'hello' to appear on the screen and another 45 seconds to return to the prompt. - Once at the prompt it's responsive again.
- Run the dir command in my home directory (few files/folders), about 2:30 before listing the directory, another 15 seconds to go back to the prompt.
- I have plenty of memory left and CPU is near idle while it's hanging.
Some attempted troubleshooting:
- PowerShell ISE: Takes about 5 minutes to get to prompt.
- PowerShell ISE (x86): It works!
- PowerShell legacy console: No change.
- Opening up a regular command line and running
powershell -NoProfile
: No change. - sfc /scannow: No problems found.
- Disable network connections: No change.
- Run Sysinternals procmon: Nothing obvious, but it always seems to hang right after some of the "Thread Exit" operations.
- Look at thread stacks in Sysinternals procexp: When it's hanging the main thread is always at ntdll.dll
ZwWaitForMultipleObjects
. - Uninstall WSL/Hyper-V: No change.
- Enable WinRM (
winrm quickconfig
): The service starts, but then it can't connect.
- I can see port 5985 is being listened to by PID 4 when the service is started.
- The Windows Firewall has the two "Windows Remote Management (HTTP-In)" entries for port 5985 (allow any remote address when in a private network/profile).
- I can successfully
telnet localhost 5985
- After the WinRM service starts it takes about 7 minutes for it to respond with:
WSManFault
...
Error number: -2144108250 0x80338126
WinRM cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the
network, and that a firewall exception for the WinRM service is
enabled and allows access from this computer. By default, the WinRM
firewall exception for public profiles limits access to remote
computers within the same local subnet.
The consistency in the delays makes me think there is some type of attempted connection and timeout, but I'm at a loss as to what that may be. Any gurus out there with ideas?
windows-10-v1803 powershell-5.0
add a comment |
up vote
0
down vote
favorite
I just got a new computer with plenty of horsepower and its works fast everywhere except PowerShell. Some of the symptoms, which seem to be consistent:
- Opening PowerShell shows the copyright info and hangs there for 2 minutes before showing the prompt.
- I start typing a command and it takes almost a minute for the text to appear
- Once the text appears I can modify the command and it's responsive.
- I enter a simple command such as
echo 'hello'
and hit enter, it takes about 45 seconds for 'hello' to appear on the screen and another 45 seconds to return to the prompt. - Once at the prompt it's responsive again.
- Run the dir command in my home directory (few files/folders), about 2:30 before listing the directory, another 15 seconds to go back to the prompt.
- I have plenty of memory left and CPU is near idle while it's hanging.
Some attempted troubleshooting:
- PowerShell ISE: Takes about 5 minutes to get to prompt.
- PowerShell ISE (x86): It works!
- PowerShell legacy console: No change.
- Opening up a regular command line and running
powershell -NoProfile
: No change. - sfc /scannow: No problems found.
- Disable network connections: No change.
- Run Sysinternals procmon: Nothing obvious, but it always seems to hang right after some of the "Thread Exit" operations.
- Look at thread stacks in Sysinternals procexp: When it's hanging the main thread is always at ntdll.dll
ZwWaitForMultipleObjects
. - Uninstall WSL/Hyper-V: No change.
- Enable WinRM (
winrm quickconfig
): The service starts, but then it can't connect.
- I can see port 5985 is being listened to by PID 4 when the service is started.
- The Windows Firewall has the two "Windows Remote Management (HTTP-In)" entries for port 5985 (allow any remote address when in a private network/profile).
- I can successfully
telnet localhost 5985
- After the WinRM service starts it takes about 7 minutes for it to respond with:
WSManFault
...
Error number: -2144108250 0x80338126
WinRM cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the
network, and that a firewall exception for the WinRM service is
enabled and allows access from this computer. By default, the WinRM
firewall exception for public profiles limits access to remote
computers within the same local subnet.
The consistency in the delays makes me think there is some type of attempted connection and timeout, but I'm at a loss as to what that may be. Any gurus out there with ideas?
windows-10-v1803 powershell-5.0
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I just got a new computer with plenty of horsepower and its works fast everywhere except PowerShell. Some of the symptoms, which seem to be consistent:
- Opening PowerShell shows the copyright info and hangs there for 2 minutes before showing the prompt.
- I start typing a command and it takes almost a minute for the text to appear
- Once the text appears I can modify the command and it's responsive.
- I enter a simple command such as
echo 'hello'
and hit enter, it takes about 45 seconds for 'hello' to appear on the screen and another 45 seconds to return to the prompt. - Once at the prompt it's responsive again.
- Run the dir command in my home directory (few files/folders), about 2:30 before listing the directory, another 15 seconds to go back to the prompt.
- I have plenty of memory left and CPU is near idle while it's hanging.
Some attempted troubleshooting:
- PowerShell ISE: Takes about 5 minutes to get to prompt.
- PowerShell ISE (x86): It works!
- PowerShell legacy console: No change.
- Opening up a regular command line and running
powershell -NoProfile
: No change. - sfc /scannow: No problems found.
- Disable network connections: No change.
- Run Sysinternals procmon: Nothing obvious, but it always seems to hang right after some of the "Thread Exit" operations.
- Look at thread stacks in Sysinternals procexp: When it's hanging the main thread is always at ntdll.dll
ZwWaitForMultipleObjects
. - Uninstall WSL/Hyper-V: No change.
- Enable WinRM (
winrm quickconfig
): The service starts, but then it can't connect.
- I can see port 5985 is being listened to by PID 4 when the service is started.
- The Windows Firewall has the two "Windows Remote Management (HTTP-In)" entries for port 5985 (allow any remote address when in a private network/profile).
- I can successfully
telnet localhost 5985
- After the WinRM service starts it takes about 7 minutes for it to respond with:
WSManFault
...
Error number: -2144108250 0x80338126
WinRM cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the
network, and that a firewall exception for the WinRM service is
enabled and allows access from this computer. By default, the WinRM
firewall exception for public profiles limits access to remote
computers within the same local subnet.
The consistency in the delays makes me think there is some type of attempted connection and timeout, but I'm at a loss as to what that may be. Any gurus out there with ideas?
windows-10-v1803 powershell-5.0
I just got a new computer with plenty of horsepower and its works fast everywhere except PowerShell. Some of the symptoms, which seem to be consistent:
- Opening PowerShell shows the copyright info and hangs there for 2 minutes before showing the prompt.
- I start typing a command and it takes almost a minute for the text to appear
- Once the text appears I can modify the command and it's responsive.
- I enter a simple command such as
echo 'hello'
and hit enter, it takes about 45 seconds for 'hello' to appear on the screen and another 45 seconds to return to the prompt. - Once at the prompt it's responsive again.
- Run the dir command in my home directory (few files/folders), about 2:30 before listing the directory, another 15 seconds to go back to the prompt.
- I have plenty of memory left and CPU is near idle while it's hanging.
Some attempted troubleshooting:
- PowerShell ISE: Takes about 5 minutes to get to prompt.
- PowerShell ISE (x86): It works!
- PowerShell legacy console: No change.
- Opening up a regular command line and running
powershell -NoProfile
: No change. - sfc /scannow: No problems found.
- Disable network connections: No change.
- Run Sysinternals procmon: Nothing obvious, but it always seems to hang right after some of the "Thread Exit" operations.
- Look at thread stacks in Sysinternals procexp: When it's hanging the main thread is always at ntdll.dll
ZwWaitForMultipleObjects
. - Uninstall WSL/Hyper-V: No change.
- Enable WinRM (
winrm quickconfig
): The service starts, but then it can't connect.
- I can see port 5985 is being listened to by PID 4 when the service is started.
- The Windows Firewall has the two "Windows Remote Management (HTTP-In)" entries for port 5985 (allow any remote address when in a private network/profile).
- I can successfully
telnet localhost 5985
- After the WinRM service starts it takes about 7 minutes for it to respond with:
WSManFault
...
Error number: -2144108250 0x80338126
WinRM cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the
network, and that a firewall exception for the WinRM service is
enabled and allows access from this computer. By default, the WinRM
firewall exception for public profiles limits access to remote
computers within the same local subnet.
The consistency in the delays makes me think there is some type of attempted connection and timeout, but I'm at a loss as to what that may be. Any gurus out there with ideas?
windows-10-v1803 powershell-5.0
windows-10-v1803 powershell-5.0
edited Nov 22 at 1:00
asked Nov 21 at 4:48
Nelson Rothermel
1042
1042
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Thanks to the antivirus comment at https://stackoverflow.com/questions/45021585/powershell-hangs-on-launch! I had Bitdefender Antivirus installed. Disabling it didn't fix the problem, but uninstalling did. I tried reinstalling and the problem reappeared. Adding all of C:
to the exclusion list did not fix the issue.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Thanks to the antivirus comment at https://stackoverflow.com/questions/45021585/powershell-hangs-on-launch! I had Bitdefender Antivirus installed. Disabling it didn't fix the problem, but uninstalling did. I tried reinstalling and the problem reappeared. Adding all of C:
to the exclusion list did not fix the issue.
add a comment |
up vote
0
down vote
Thanks to the antivirus comment at https://stackoverflow.com/questions/45021585/powershell-hangs-on-launch! I had Bitdefender Antivirus installed. Disabling it didn't fix the problem, but uninstalling did. I tried reinstalling and the problem reappeared. Adding all of C:
to the exclusion list did not fix the issue.
add a comment |
up vote
0
down vote
up vote
0
down vote
Thanks to the antivirus comment at https://stackoverflow.com/questions/45021585/powershell-hangs-on-launch! I had Bitdefender Antivirus installed. Disabling it didn't fix the problem, but uninstalling did. I tried reinstalling and the problem reappeared. Adding all of C:
to the exclusion list did not fix the issue.
Thanks to the antivirus comment at https://stackoverflow.com/questions/45021585/powershell-hangs-on-launch! I had Bitdefender Antivirus installed. Disabling it didn't fix the problem, but uninstalling did. I tried reinstalling and the problem reappeared. Adding all of C:
to the exclusion list did not fix the issue.
answered Nov 22 at 0:55
Nelson Rothermel
1042
1042
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1377171%2fpowershell-64-bit-hanging-on-new-machine%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown