PowerShell Crashes Intermittently on Windows 10


hi,

i have powershell script performs system restart operation.

i ran script 20 times (20 reboot operations 2-5 minutes of elapse time i.e. next restart execution start after 2-5 minutes)

in script have used powershell command "restart-computer".

problem:

intermittently have seen "powershell" crash, following exception,

exception info: system.accessviolationexception
stack:
@ system.net.unsafenclnativemethods+safenethandlesxporlater.getaddrinfow(string nodename, string servicename, addressinfo& hints, safefreeaddrinfo& handle)
   @ system.net.dns.trygetaddrinfo(string name, addressinfohints flags, iphostentry& hostinfo)
   @ system.net.dns.getaddrinfo(string name)
   @ system.net.dns.getaddrinfo(string name)
   @ system.net.dns.internalgethostbyname(string hostname, boolean includeipv6)
   @ system.net.dns.resolvecallback(object context).

note:  i have never used network related operations in script.

please let me know how get-rid off issue.

thanks in advance reply...

-irenelampy

if think have bug post here:  http://connect.microsoft.com

or contact ms support.  issue cannot resolved changing command in way and, far, no 1 has been able reproduce issue.

just because command causes issue does  not mean srip cause.  restart-computer command works other purposes.  unless can produce script other can use reproduce issue there no way can analyzed.  far have not posted script.


\_(ツ)_/



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

WIMMount (HSM) causing cluster storage to go redirected (2012r2 DC)

Failed to delete the test record dcdiag-test-record in zone test.com

Azure MFA with Azure AD and RDS