Avatar of HBS-Mach
HBS-Mach
Flag for Solomon Islands asked on

Low Disk Space Script to warn logged in User (not via email)

Hi,

I have an ongoing problem where users are copying 100's of GB of presonal content onto their local PC hard drives, consuming 100% of their disk space and then complaining to IT that their computer runs slow...
Well, D'Oh!

I dont want to continually have to manually warn people about this and for various reasons i dont want to stop them being able to save to their local disk.
Obviously the little Windows message in the taskbar is not enough a warning for the users

We use File Resource Manager so they cant save these files to the Server mapped drives and the servers themselves are monitored so the server hard drives are fine.

This is just for the users local drives, in particular, just their C drive (i dont care if their external hard drive is at 100%).
The users PCs are Windows 7/10 Pro.

Ive been looking around and found many scripts for Low Disk Space Warnings, almost all for Servers (though it would work for users PCs) but all send email alerts. Which i dont want.

Id like a script that i can run as a group policy, or as a scheduled task, that will pop up a configurable message to the end user every 4 hours when the user is logged on with some message like:

"Your C drive is full. Your computer will run poorly until the drive is cleared.
Please DELETE all movies, music and similar non-work related material from this PC immediately.
This message will continue to be seen every 4 hours until you do so.
Contact your friendly IT Helpdesk for more information"


An added bonus would be to then email IT Helpdesk once a week (as i dont want to be bombarded with emails for low disk space)
But this isnt important.


The main thing I would like is a Warning Message to appear on the users screen they they have to acknowledge (by pressing a radio button saying OK, or I Understand or similar) every 4 hours telling them to delete their movies.
VB ScriptPowershellScripting LanguagesShell ScriptingWindows Batch

Avatar of undefined
Last Comment
NVIT

8/22/2022 - Mon
Albert Widjaja

Do you mean usingthe pop up like Net Send ?
ASKER CERTIFIED SOLUTION
NVIT

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
HBS-Mach

ASKER
NVIT
Looks great!
I will test this out and get back to you.
Albert Widjaja

@NVIT,

Does it works on Windows 10 workstations ?
Your help has saved me hundreds of hours of internet surfing.
fblack61
HBS-Mach

ASKER
Can confirm that this works well on Windows 7 and 10.

I put it as a scheduled task via GPO, reoccurring once an hour.
That should annoy the users enough that they delete the junk.

Thank you for your assistance NVIT
NVIT

I overlooked the Windows 10 need in your question and just tested with Windows 7. Still... It worked. Awesome!

I'm glad to have helped, HBS-Mach. Have a nice day/night...