r/PowerShell • u/Affectionate-Half105 • Jun 07 '26
Solved Powershell missing "PS C:\users\username command!
Hi, I'm not tech-savvy at all, I wanted to run a small code for some video game and for some reason I'm missing the command that makes me input text, and I literally can't write!
I can write on terminal (command prompt) but NOT powershell. It's driving me crazy! Can someone help??
I don't know what version I'm using. I saw a github explaining their solution but I didn't understand a single word. https://github.com/PowerShell/PowerShell/issues/12003
UPDATE: I had to repair my powershell, went through Window's tutorial on repairing it, restarted laptop, then did the CMD PowerShell –noprofile thingy someone suggested in thread and it appeared!
Powershell 7 wasn't showing it still so I reinstalled it and it's there now. Thank you everyone! I don't know if this is a permenant solution, but yeah, I don't know what caused this but thankfully all is well now.
3
u/Krazuel Jun 07 '26
Execution policy might prevent a command, first I've heard just can't type
Are you pressing run if you are in script panel? Otherwise should normally be able to type and execute commands in blue terminal section..
2
u/pigers1986 Jun 07 '26
if from CMD you run: PowerShell –noprofile
does it work ?
2
u/TILYoureANoob Jun 07 '26
That GitHub issue was because the person had an unterminated string in their profile. In other words, they put an unmatched quote symbol, so the powershell terminal thought it was still waiting for the end of the string.
A profile is a file (powershell technically has 4 files) that is read and run right as you open powershell. So if it has a typo/mistake in it, you'll see an error or in your case nothing because it's waiting for a quotation mark.
To fix it, either delete the profile file you edited or fix the typo if you know what you're doing.
1
u/reinderr Jun 07 '26
What's the command you're trying to run
1
u/Frequent_Bee_6943 Jun 07 '26
try to open ps directly as an admin. Open terminal then go to the drop down panel next to the command tab look for powershel left click and open as admin then try to paste your script an run it
1
u/purplemonkeymad Jun 07 '26
Just want to double check that you haven't clicked into the window and it says "select: " at the top. That will prevent programs from continuing from any output. Hit escape to exit select mode.
1
u/Tidder802b Jun 07 '26
I would strongly advise you not to run scripts like this. Take five minutes to look through this sub and see how many people are asking for help after running a command from the internet and now their device has malware.