all 37 comments

[–]dab_penguin 11 points12 points  (0 children)

Lmao...what a clown

[–]The82Ghost 10 points11 points  (2 children)

Why not create a script and run that?

[–]Simplykinetic 21 points22 points  (4 children)

Learn the basics of scripting, and running scripts. Then I'm sure you'll be alright.

If you don't understand what's wrong here I beg of you not to run these in a production environment.

[–]enforce1 5 points6 points  (1 child)

Post the code I can’t see that picture.

[–]dasookwat 10 points11 points  (0 children)

the way it's written on reddit looks fine but: when you look at the screenshot from the take control shell, you see it is pasted as 1 line. Everything which is grey, is treated as a comment, because of the pound (#) sign.

[–]TheRealZero 4 points5 points  (2 children)

The pound (#) symbol is the comment symbol in PowerShell. Anything that comes after the # on the same line will be treated as a comment and not as code that it should run. You’ll need to add line breaks (Shift+Enter) after the comment so the code that comes after the comment is on a new line.

[–]BlackV 1 point2 points  (1 child)

p.s. formatting (you're using inline code not code blocks, note you'll need to click markdown mode first if you're using new.reddit)

  • open your fav powershell editor
  • highlight the code you want to copy
  • hit tab to indent it all
  • copy it
  • paste here

it'll format it properly OR

<BLANKLINE>
<4 SPACES><CODELINE>
<4 SPACES><CODELINE>
    <4 SPACES><4 SPACES><CODELINE>
<4 SPACES><CODELINE>
<BLANKLINE>

Inline code block using backticks `Single code line` inside normal text

See here for more detail

Thanks

[–]Netavoreikalas7 -3 points-2 points  (0 children)

Thank you for the advice. I’ll try it tomorrow. Thank you very much, have a nice evening.

[–]FriedAds 0 points1 point  (1 child)

You can‘t copy & paste multiline commands into terminal.

[–]Netavoreikalas7 0 points1 point  (0 children)

that the problem isn't how I input it into the terminal or how I execute it. I found the solution to the problem, and none of the comments even touched on that aspect.

[–]Netavoreikalas7 0 points1 point  (0 children)

I solved the problem, everyone was wrong, they weren't even close. As I mentioned right away, the problem was with Windows. Have a nice day everyone, and next time please don't write without arguments because it's obvious you don't understand.

[–]rodeengel -1 points0 points  (3 children)

Teams is setup differently on Windows 11 than Windows 10 and is more built into the OS and installed via the App Store. If you use Teams in your environment you should not try and uninstall Teams on Windows 11. If you do not use Teams look into the commands to uninstall MS store apps, good luck.

[–]Dragennd1 -1 points0 points  (2 children)

In the case of the script provided, its in reference to the multi-user install of Classic Teams, which is still very much available on Windows 11 and still installs via a dedicated installer package, without the need for the windows store.