Welcome to the PowerShell Gallery. This webpage will explain the use of the new wbMSPmodule. The General Disk Clean up module has been moved to this new module.

wbMSPmodule Explained

The install and use of the wbMSPmodule is pretty straight forward. Open Windows PowerShell with Administrative access and copy and paste the commands below.
There are a bunch of functions to choose from.

The module can be found at PowerShell Gallery

Install-PackageProvider -Name NuGet -RequiredVersion 2.8.5.201 -Force;
Import-PackageProvider -Name NuGet -RequiredVersion 2.8.5.201;
Install-Module -Name wbMSPmodule -RequiredVersion 1.2 -force
Import-Module -Name wbMSPmodule -RequiredVersion 1.2

After NuGet and wbMSPmodule have been installed and imported then just the function is required.

1) This command will clean up the hard drive.

wbMSPgeneralDiskCleanUp

2) This command will clean up any Windows or software generated packages.

wbMSPpackageCleanUp

3) This command will clean up any TEAMS issues. I suggest a reboot after completion.

wbMSPTEAMSCleanUp

4) Turn on all Windows firewalls.

wbMSPfireWallOn

5) Turn off all Windows firewalls.

wbMSPfireWallOff

6) Turn off hibernate, set power state time out to 0 and set monitor time out to 30 minutes.

wbMSPsetPowerState

7) Show the top memory consuming processes.

wbMSPshowMemoryProcesses

8) Set laptop closing lid power state to 0.

wbMSPsetLaptopPower

9) Set Enable Linked Connections, Remote Settings and Shell Data Caching.

wbMSPsetRegistry

10) Check the health of the hard drives.

wbMSPcheckHDHealth

11) Optimize the hard drive (C drive).

wbMSPoptimizeHD

12) Repair the hard drive (C drive).

wbMSPrepairHD

13) Run Sophos Endpoint update and scan (if installed).

wbMSPsophosUpdateScan

14) Check the stablility index of the operating system.

wbMSPwindowsStabilityIndex

15) Check Windows counters.

wbMSPwindowsCounters

16) List the top 10 files in size on the C drive.

wbMSPlistTop10Files

17) Turn on network discovery.

wbMSPnetworkDiscoveryOn

18) Turn on printer and file sharing.

wbMSPfileDiscoveryOn

19) Rename the workstation to the serial number of the workstation.

wbMSPrenameWorkstation

1) Open a PowerShell with Administrative permissions.
2) Right click on the Windows Icon and select Windows PowerShell (Admin)
3) Click Yes when the user control prompt appears.

4) Copy and paste the 4 lines into the window and click on enter. The modules will install.

5) Enter the function you would like to run into the window and click on enter.

Done!

Conclusion

There you go! That is how you use the wbMSPmodule PowerShell Module.