PowerShell Closes Instantly – Need Help!

0
9
Asked By CuriousCat42 On

I've been dealing with an issue where PowerShell closes immediately after opening on my Windows 10 LTSC machine, which I need for a kiosk setup. I've tried a lot of troubleshooting steps like reinstalling .NET and PowerShell itself, but I still can't get it to work. My startup script won't run because PowerShell won't stay open. We have multiple Group Policy Objects (GPOs) applied to this organizational unit, but none seem to affect PowerShell, and Application Control isn't blocking it either. I've checked other computers in the same OU, and they're working fine. Has anyone experienced something similar?

3 Answers

Answered By TechWizard99 On

This might be linked to your PowerShell profile script crashing. You could try using Set-PSDebug or something similar to debug what's happening when you launch it. Also, I usually think along the lines of Bash for troubleshooting, and I wonder if there's a similar underlying issue here with PowerShell.

Answered By CodeMonkey42 On

It sounds like you might be running into a quirky bug. Some people refer to this as a 'Power Turtle Shell' bug. It could stem from corrupted Windows Update files. A common fix suggested is to do a disk shred to clean things up.

ChillTechie -

But honestly, your OS seems pretty solid right now.

Answered By NetworkNerd27 On

Here are a few things you could check:
- Execution policy settings with `get-executionpolicy`
- Kiosk mode may prevent user-executed scripts from running
- Check if any software restriction policies, Applocker settings, or any third-party app control is affecting it
- Look into potential issues with the PowerShell directory, files, or profiles being corrupted.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.