PowerShell is one of the most powerful tools in a Windows Server admin’s toolbox. Whether you’re optimizing performance, automating routine maintenance, or supporting systems that include cloud backup tools like WholesaleBackup, these one-liners help you work smart, stay efficient, and respond fast.
1. Get-Service
Check the status of a service (running/stopped).
Get-Service -Name "WSBUDemoS3"
-
Perfect for confirming if the WholesaleBackup agent is active.
-
Add
-ComputerNamefor remote queries.
2. Stop-Service
Stop a running service.
Stop-Service -Name "WSBUDemoS3"
- Useful for halting backups or schedulers during maintenance.
-Forcefor stuck services.
3. Start-Service
Start a service that’s currently stopped.
Start-Service -Name "WSBUDemoS3"
- Quickly re-enable backup services after a reboot.
3. Start-Service
Start a service that’s currently stopped.
Start-Service -Name "WSBUDemoS3"
- Quickly re-enable backup services after a reboot.
4. Restart-Service
Stop and start a service in one go.
Restart-Service -Name "WSBUDemoS3"
- Helps apply config changes without rebooting the machine.
5. Get-Process
View running processes and their resource usage.
Get-Process
- To isolate WholesaleBackup usage:
Get-Process -Name "WSBUDemoS3*" | Select-Object Name, CPU, Id
- Or find the top CPU consumers:
Get-Process | Sort-Object CPU -Descending | Select-Object -First 10
6. Stop-Process
Kill a specific running process.
Stop-Process -Name "WSBUDemoS3_scheduler" -Force
- Use for stuck services not responding to
Stop-Service.
7. Get-EventLog
Read system or application logs.
Get-EventLog -LogName System -Newest 50
- Swap in “
Application” to see errors related to backup jobs.
8. Clear-EventLog
Clean up event logs after investigation.
Clear-EventLog -LogName System
- Helps keep log sizes manageable.
- Admin rights required.
9. Get-Counter (CPU Load)
Live snapshot of CPU usage.
Get-Counter "\Processor(_Total)\% Processor Time"
- Use
-SampleInterval 1 -MaxSamples 5to monitor over time.
10. CPU Load (Friendly Format)
Readable CPU load output.
$cpu = (Get-Counter "\Processor(_Total)\% Processor Time" -SampleInterval 1 -MaxSamples 1).CounterSamples[0].CookedValue
"CPU Load: %" -f $cpu
-
Easier to read and report on in scripts or alerts.
11. Get Memory Usage
Measure current memory usage.
$os = Get-CimInstance Win32_OperatingSystem
$used = ($os.TotalVisibleMemorySize - $os.FreePhysicalMemory) / 1KB
$total = $os.TotalVisibleMemorySize / 1KB
"Memory used: %" -f ($used / $total * 100)
- Great for catching memory leaks.
12. Get-Disk
View all physical disks.
Get-Disk
- Check available space before triggering a backup.
13. Get-Volume
Inspect logical volumes and their free space.
Get-Volume
- Use to validate storage capacity for local/attached backup drives.
14. Get-NetIPAddress
Show all current IP addresses.
Get-NetIPAddress
- Helps troubleshoot when backup uploads aren’t reaching cloud targets.
15. Test-Connection
Ping another machine or domain.
Test-Connection -ComputerName wholesalebackup.com
- Confirm external connectivity from your Windows Server.
16. Retrieve Running Services via SSH
Run PowerShell commands remotely over SSH.
ssh Administrator@yourserverip "powershell -Command "
- Cross-platform and secure — great when WinRM isn't available.
17. Clean Up Temp Files and Recycle Bin
Reclaim disk space safely.
Remove-Item -Path "$env:TEMP\*" -Recurse -Force
Clear-RecycleBin -Force
- Schedule weekly for hands-off disk hygiene.
18. List All Scheduled Tasks
Inspect scheduled jobs (like backup tasks).
Get-ScheduledTask | Where-Object
- Useful for confirming the presence of scheduled backups.
19. Export Running Services Report
Export all running services to a CSV.
Get-Service | Where-Object Status -eq 'Running' | Export-Csv C:\Temp\running_services.csv -NoTypeInformation
- Quickly audit what’s running, or share logs with a support team.
Wrapping Up
PowerShell is one of the most powerful tools in a Windows Server admin’s toolbox. From managing resource bottlenecks to automating cleanup tasks—and even safely closing applications like Outlook before backup—these scripts help you work smart and respond fast, especially when managing cloud backups with WholesaleBackup.
Want to Start an Online Backup Business?
Your Fast-Track Disaster Recovery No Scripts, No Third-Party [...]
See What Our Partners Are Saying About Us

I am very impressed with the level of customer care and communication you have put forth into making sure that our setup with you guys goes smoothly. It is rare nowadays to find vendors that take pride in their products as well as show concern for a client’s well-being.

After trying multiple name brand backup vendors, we finally Partnered with WholesaleBackup and couldn’t be happier with the functionality and cost.

Your response time to any and all my request is far superior to any customer service I’ve ever received my ENTIRE CAREER.

After using another white-label cloud backup solution for years, switching to WholesaleBackup has been a lifesaver. MUCH less maintenance, cost, bandwidth, and the U.S. based support is the stellar. The software and interface is SO much simpler and easy to use. I would recommend WholesaleBackup to any MSP looking to streamline their cloud backup system.

We were able to quickly restore our clients data without any issues using their last good backup – saving them from total data loss and stopping their business!







