EXE process does not end on exit

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 6 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: EXE process does not end on exit

Post by jvierra »

Your code is full of syntax errors. Perhaps you copied it wrong.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: EXE process does not end on exit

Post by jvierra »

The code you posted has a very badly corrupted file. If I fix a line it just finds another line. There are too many unprintable characters in you script. This could be the source of all of you issues.

Verify.ps1 (125, 12): ERROR: At Line: 125 char: 12
ERROR: + Add-Type –assemblyName PresentationFramework
ERROR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERROR: The string is missing the terminator: ".

The above is a result of fixing the first 5 errors which required deleting and retyping the line.

This usually is caused by copying and pasting code from a web page.
User avatar
PXL_Posh
Posts: 40
Last visit: Thu Nov 07, 2019 5:43 am

Re: EXE process does not end on exit

Post by PXL_Posh »

I'll get the real version tomorrow.
Sorry for the inconvenience.
This topic is 6 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked