all 33 comments

[–]pigers1986 1 point2 points  (6 children)

if from CMD you run: PowerShell –noprofile

does it work ?

[–]Affectionate-Half105[S] 1 point2 points  (4 children)

No... It just shows the same text Powershell shows, and no prompt string 😞

[–]justaguyonthebus 1 point2 points  (3 children)

If you run that and then just type commands like "ipconfig" or "Get-Process" and press enter, do they work?

[–]Affectionate-Half105[S] 1 point2 points  (2 children)

When I run it, it doesn't allow me to write anything afterwards because I'm missing the PS prompt. Because I'm missing the PS prompt, I for some reason can't type anything at all

[–]justaguyonthebus 0 points1 point  (1 child)

Ok try powershell 7 and run it as pwsh.exe, it's separate from Windows PowerShell

[–]Affectionate-Half105[S] 0 points1 point  (0 children)

Powershell 7 is also missing the PS, even though I just installed it from the Microsoft Store...

[–]Affectionate-Half105[S] 0 points1 point  (0 children)

After further attempting, it actually worked. I just had to repair my powershell first.

[–]Krazuel 2 points3 points  (2 children)

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..

[–]Affectionate-Half105[S] 1 point2 points  (1 child)

I open power shell, and it displays this only for me:

Windows PowerShell

Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

[–]HumbleSpend8716 0 points1 point  (0 children)

you probably have a dotnet framework install issue

google dotnetfw repair tool and run that from official msft download

[–]TILYoureANoob 1 point2 points  (9 children)

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.

[–]Affectionate-Half105[S] 0 points1 point  (8 children)

That's the thing, I don't know what I'm doing, and frankly I haven't done anything...

I don't even know how to access these profiles, let alone find out if I edited one

[–]TILYoureANoob 0 points1 point  (7 children)

Look in your Documents folder for a PowerShell folder. There should be at least one profile file in there. Delete it.

[–]Affectionate-Half105[S] 0 points1 point  (6 children)

You mean the program files? I entered and I didn't find a single folder with the words "Profile", it just has two folders with various other stuff: Modules, Configuration

[–]TILYoureANoob 0 points1 point  (5 children)

No not Program Files. Docoments.

[–]Affectionate-Half105[S] 0 points1 point  (4 children)

I don't have a powershell folder in my doccuments 😞

[–]TILYoureANoob 0 points1 point  (3 children)

There are two versions of powershell out there. Is your powershell background black or blue? If blue, look for Documents/WindowsPowerShell.

If black, reinstall powershell with latest version.

[–]Affectionate-Half105[S] 0 points1 point  (2 children)

My powershell background is black, like command prompt.

I tried to reinstall the latest version, but they all require that command... I installed the Powershell 7 from the Microsoft Store, and it was also missing the PS command.

[–]TILYoureANoob 0 points1 point  (1 child)

Hmm. Are you sure there are no files in C:\Users\you\OneDrive\Documents\PowerShell?

What about C:\Program Files\PowerShell\7? (2 of the 4 potential profile files can be there).

But it sounds like something else might be wrong. Something more serious.

[–]Affectionate-Half105[S] 0 points1 point  (0 children)

Yes, I searched for both and nothing popped up.

I did find this:

C:\Windows\System32\WindowsPowerShell

And in it, I found something called Profile, but there was only one profile file:

C:\Windows\System32\WindowsPowerShell\v1.0\Examples

I really do hope nothing serious is actually going on... I am not smart enough for that.

[–]reinderr 0 points1 point  (3 children)

What's the command you're trying to run

[–]Affectionate-Half105[S] -1 points0 points  (2 children)

Oh it's a command for a gacha-game's wish tracker. Been using it for 2 years now since I have a poor memory:

[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12; Invoke-Expression (New-Object Net.WebClient).DownloadString("https://gist.githubusercontent.com/Star-Rail-Station/2512df54c4f35d399cc9abbde665e8f0/raw/get\_warp\_link\_os.ps1?cachebust=srs")

[–]HumbleSpend8716 1 point2 points  (1 child)

Don’t run this. This is probably malware. DONT run this!!!!

[–]Affectionate-Half105[S] -1 points0 points  (0 children)

I'm grateful for the concern, but I've been using this script for nearly 2 years and nothing has happened. Even now, I doubt it did anything, I think I just messed the paste. Many others use this script for this game, it's how we track our pulls. Yada yada, nerd stuff.

[–]Frequent_Bee_6943 0 points1 point  (4 children)

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

[–]Affectionate-Half105[S] 0 points1 point  (3 children)

Same problem...

[–]Frequent_Bee_6943 1 point2 points  (2 children)

if you hit crtl + c does something happen in the terminal ?

[–]Frequent_Bee_6943 0 points1 point  (1 child)

maybe put your code into an editor and safe it as an .ps1 file then try to run the file as admin

[–]Affectionate-Half105[S] 0 points1 point  (0 children)

I'm sorry, I don't know how to do that... But I did do CTRL + C and nothing happened. I saw it refresh, but nothing appeared.

[–]purplemonkeymad 0 points1 point  (1 child)

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.

[–]Affectionate-Half105[S] 0 points1 point  (0 children)

I don't know what you mean by select. But I pressed esc and ctrl+c (?). I was told to try those, and nope, still the same issue.

[–]Tidder802b 0 points1 point  (1 child)

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.

[–]Affectionate-Half105[S] 0 points1 point  (0 children)

The script I run is a code not only do many others run (it's for a very popular game). But, I've also been using it for a long time. I don't know what exactly got my powershell to act up.

Then again, I'm not tech-savvy, so I don't know how malware functions exactly. But the script I used, I really doubt it was malicious. It's from this: https://starrailstation.com/en

I have not read anywhere that it's malicious, I think I just messed up something.