this post was submitted on 26 Sep 2023
690 points (96.6% liked)
Technology
60123 readers
3423 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each another!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, to ask if your bot can be added please contact us.
- Check for duplicates before posting, duplicates may be removed
Approved Bots
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I've created a powershell script for fresh installations that removes all the unnecessary preinstalled garbage and copies a cleaned up startmenu layout file to the appdata subfolder of my user and the default user because in a professional setting, people shouldn't see tiktok and Disney+ and shit like that. Fuck Microsoft. In private, I've switched to Linux and couldn't be happier.
post a link to your script somewhere
See my other comment, it's not worth posting a script for that. The garbage removal is also just using winget remove or remove-appxpackage to get rid of OneDrive, the preinstalled Teams, Xbox stuff and so on. You'll write that yourself in 5 minutes.
Got a GitHub link fren?
No, sorry. But the line in question is just
copy-item start2.bin C:\users\default\AppData\Local\Packages\Microsoft.Windows.StartMenuExperiencehost_cw5n1h2txyewy\LocalState\
Replace default with your actual username. Default is the one that gets used for new users when they log in for the first time.
You need a clean start2.bin file ofc. To get that, just manually create a start menu you like and copy the file from the above location.
The old export-startmenulayout commands from windows 10 don't work for windows 11.
Warning: had to type the directory structure on mobile, might've made mistakes.
Have you tried with the newest version of powershell (whatever they’re calling it now) think you still have to go out and download it but I’m not sure.
Thanks for the direct info share!
I think it is still called PowerShell, but to differentiate the installation source, Microsoft seem to be referring to the cross-platform version you can download from GitHub or via WinGet as
PowerShell Core
and the version that ships with Windows asWindows PowerShell
Not quite what I’m referencing, but yeah there are two versions of powershell in this sense, I’m just talking about the latest version (7.X), windows only comes with 5.X AFAIK, but 7 has some cool new features and what not. Wasn’t sure if the 7.x reincorporated/added whatever way it might be worded to mean “working again in”
I should’ve clarified that in the original, my b