Need Help Cleaning Up My Windows 11 System Restore Script

0
1
Asked By CuriousCoder42 On

I'm trying to create a system restore script for Windows 11, but I mostly just copy and paste code as I'm a beginner in coding. The script works fine overall, but I'd love some help refining it. The main aim is to have a single script that can download PowerShell 7, execute it, and pick up where it left off. Here's the rough draft of what I have so far:

- Setting execution policy
- Importing a registry file
- Installing several applications using winget and performing various configurations.

Can anyone help me streamline or improve my script? I appreciate any advice!

1 Answer

Answered By ScriptNinja88 On

It's a good start! Just a question—what are you ultimately trying to achieve with this script? Are you managing multiple computers or just tinkering with your personal one? Also, instead of using individual commands to download installers, you might consider using winget config files. That could simplify your script a lot! Let me know your goals, and I can help you out!

CuriousCoder42 -

This is for our own personal network computers. I'm looking for something to run locally when we reload our desktops and laptops. I know system restore is dated, but it still works for us. I was wanting statuses for the invoke-web-request commands.

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.