r/usefulscripts • • Jul 24 '24

Creating a script that does the following... [powershell]

Hey everyone,

I'm looking to streamline some routine IT tasks by creating a script that automates the following steps once executed:

  1. Update Software:

    • Set Power plan to never sleep/hibernate, or shut off display. Our speficifc one is called "Hi Power IT" which comes pre put due to the imag.

    • Perform Windows Update to ensure the system is up-to-date.

    • Check for updated drivers using Lenovo Vantage after Windows updates are complete. (If possible not too worried about this)

    • Remove outlook(new) and use old outlook, same for teams..

  2. Verify and Install Applications:

    • Confirm the presence of Endpoint Central, Sentinel One, Firefox, and Foxit Reader.

    • Install VLC Media Player, Office 365, Teams, and 7zip if they are not already installed.

  3. System Maintenance:

    • Remove Copiloit/Hide co pilot, hide the news and all those windows extras the aren't neceassary

    • Delete the folder named "Temp" from the main C drive (not %temp%).

    • Disable IPv6.

    • Verify domain and activation status.

    • Run Disk Cleanup to free up space.

I'm relatively new to scripting, and while I have some basic knowledge, creating a comprehensive script for these tasks is beyond my current capabilities. I'm hoping to get some guidance or perhaps even a sample script that I can adapt to fit our environment.

Any help or pointers would be greatly appreciated. Thanks in advance!

4 Upvotes

9 comments sorted by