PowerShell - wbMSPmodule 1.6
My PS module contains several commands for easier use and output while you provide diagnostics to a workstation.
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
wbMSPmodule 1.6 Installation
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.6 -Force;
Import-Module -Name wbMSPmodule -RequiredVersion 1.6;
After NuGet and wbMSPmodule have been installed and imported then just the function is required.
1) This command will clean up the hard drive.
Invoke-wbMSPDiskCleanUp
2) This command will clean up any Windows or software generated packages.
Invoke-wbMSPPackageCleanUp
3) This command will clean up any TEAMS issues. I suggest a reboot after completion.
Invoke-wbMSPTeamsCleanUp
4) Turn on all Windows firewalls.
Set-wbMSPFirewallOn
5) Turn off all Windows firewalls.
Set-wbMSPFirewallOff
6) Turn off hibernate, set power state time out to 0 and set monitor time out to 30 minutes.
Set-wbMSPPowerstate
7) Show the top memory consuming processes.
Invoke-wbMSPMemory
8) Set laptop closing lid power state to 0.
Set-wbMSPLaptopPower
9) Set Enable Linked Connections, Remote Settings and Shell Data Caching.
Set-wbMSPRegistry
10) Check the health of the hard drives.
Get-wbMSPHDhealth
11) Optimize the hard drive (C drive).
Invoke-wbMSPOptimizeHD
12) Repair the hard drive (C drive).
Invoke-wbMSPRepairHD
13) Run Sophos Endpoint update and scan (if installed).
Invoke-wbMSPSophosScan
14) Check the stablility index of the operating system.
Get-wbMSPStability
15) Check Windows counters.
Get-wbMSPCounters
16) List the top 10 files in size on the C drive.
Get-wbMSPListTopFiles
17) Turn on network discovery.
Set-wbMSPNetworkDiscoveryOn
18) Turn on printer and file sharing.
Set-wbMSPFileDiscoveryOn
19) Rename the workstation to the serial number of the workstation.
Set-wbMSPRenameWorkstation
20) Update Windows Defender.
Invoke-wbMSPMPUpdate
21) Windows Defender Quickscan.
Invoke-wbMSPQuickScan
22) View Application Logs.
Get-wbMSPAppLogs
23) View Security Logs.
Get-wbMSPSecurityLogs
24) View System Logs.
Get-wbMSPSystemLogs
25) View BitLocker Volume.
Get-wbMSPBLVolume
26) View BitLocker Status.
Get-wbMSPBLStatus
|