3

On a corporate machine, whenever one attempts to open Powershell, Powershell sends many requests to domain controllers. This would be find if the machine was on the network, but when it's not, then it just takes forever to time out and this happens before every command is executed (i.e. the timeouts keep happening after type and hitting enter every command).

I looked in the following places for where these calls are being made from:

%windir%\system32\WindowsPowerShell\v1.0\profile.ps1
%windir%\system32\WindowsPowerShell\v1.0\Microsoft.PowerShell_profile.ps1
%UserProfile%\My Documents\WindowsPowerShell\profile.ps1
%UserProfile%\My Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1

but none of these files exist.

Where else would the setting/scripts be that would be causes these calls to be made?

If it matters, the way I have debugged this so far was suspecting network timeouts, and then using wireshark to see the requests time out. There might be more going on that just attempts to contact the domain controller though.

soandos
  • 143
  • 7

1 Answers1

3

Unmap any mapped drives/network shares, then see if Powershell continues to exhibit this behavior.

Ryan Ries
  • 55,481
  • 10
  • 142
  • 199