Share via

Powershell not exiting properly from a script running on a remote device

Anonymous
2023-09-29T05:17:48+00:00

We run powershell script through Vmware Vcenter API on the target VM in every 5 mins to collect some data. We noticed in one of the VMs on 19th that one powershell.exe was consuimg 45% CPU , when we checked the powershell logs we saw that the process is alive from around 4 days.

We have a .wer file from that powershell , we need help to analyze what went wrong and what can be the possible causes of it

Version=1

EventType=APPCRASH

EventTime=133393760467649737

ReportType=2

Consent=1

ReportIdentifier=redacted

IntegratorReportIdentifier=redacted

NsAppName=powershell.exe

Response.type=4

Sig[0].Name=Application Name

Sig[0].Value=powershell.exe

Sig[1].Name=Application Version

Sig[1].Value=10.0.14409.1005

Sig[2].Name=Application Timestamp

Sig[2].Value=584a185c

Sig[3].Name=Fault Module Name

Sig[3].Value=powershell.exe

Sig[4].Name=Fault Module Version

Sig[4].Value=10.0.14409.1005

Sig[5].Name=Fault Module Timestamp

Sig[5].Value=584a185c

Sig[6].Name=Exception Code

Sig[6].Value=c0000005

Sig[7].Name=Exception Offset

Sig[7].Value=00000000000036bf

DynamicSig[1].Name=OS Version

DynamicSig[1].Value=6.3.9600.2.0.0.272.7

DynamicSig[2].Name=Locale ID

DynamicSig[2].Value=2057

UI[2]=C:\Windows\System32\WindowsPowershell\v1.0\powershell.exe

FriendlyEventName=Stopped working

ConsentKey=APPCRASH

AppName=Windows PowerShell

AppPath=C:\Windows\System32\WindowsPowershell\v1.0\powershell.exe

NsPartner=windows

NsGroup=windows8

ApplicationIdentity=redacted

Windows for home | Previous Windows versions | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-09-29T07:09:07+00:00

    We run powershell script through Vmware Vcenter API on the target VM in every 5 mins to collect some data. We noticed in one of the VMs on 19th that one powershell.exe was consuimg 45% CPU , when we checked the powershell logs we saw that the process is alive from around 4 days.

    We have a .wer file from that powershell , we need help to analyze what went wrong and what can be the possible causes of it

    Version=1

    EventType=APPCRASH

    EventTime=133393760467649737

    ReportType=2

    Consent=1

    ReportIdentifier=redacted

    IntegratorReportIdentifier=redacted

    NsAppName=powershell.exe

    Response.type=4

    Sig[0].Name=Application Name

    Sig[0].Value=powershell.exe

    Sig[1].Name=Application Version

    Sig[1].Value=10.0.14409.1005

    Sig[2].Name=Application Timestamp

    Sig[2].Value=584a185c

    Sig[3].Name=Fault Module Name

    Sig[3].Value=powershell.exe

    Sig[4].Name=Fault Module Version

    Sig[4].Value=10.0.14409.1005

    Sig[5].Name=Fault Module Timestamp

    Sig[5].Value=584a185c

    Sig[6].Name=Exception Code

    Sig[6].Value=c0000005

    Sig[7].Name=Exception Offset

    Sig[7].Value=00000000000036bf

    DynamicSig[1].Name=OS Version

    DynamicSig[1].Value=6.3.9600.2.0.0.272.7

    DynamicSig[2].Name=Locale ID

    DynamicSig[2].Value=2057

    UI[2]=C:\Windows\System32\WindowsPowershell\v1.0\powershell.exe

    FriendlyEventName=Stopped working

    ConsentKey=APPCRASH

    AppName=Windows PowerShell

    AppPath=C:\Windows\System32\WindowsPowershell\v1.0\powershell.exe

    NsPartner=windows

    NsGroup=windows8

    ApplicationIdentity=redacted

    There is a separate Community for PowerShell questions:

    https://techcommunity.microsoft.com/t5/powershell/ct-p/WindowsPowerShell

    Was this answer helpful?

    0 comments No comments