I have a problem where c: drive files up due to large media files that are saved each night.
I need assistance writing a script file to do the following:
Standard Variables [to be set in script but able to update/edit]
TXTFileName: [url removed, login to view]
- check the size c: drive
- check the bytes free
- convert to GB, and percentage (FreeSpace)%
- write these figures to a txt file >> TXTLocation\TXTFileName
(overwrite existing TXTfile)
If FreeSpace% less than DeleteThreshold Then
For Each File in FolderOnCDrive
- If FileModifiedDate IS MORE THAN DaysToKeep old, then
- Write Filename to TXTFileName
- Copy File in "FolderOnCDrive" to location "FolderOnServer"
(note, single file will be ~ 1-4GB)
- Delete this file from "FolderOnCDrive"
- End If
Send Email with contents of TXTFileName in body.
If FreeSpace% less than FreeSpaceThreshold Then
Send Warning Email with FreeSpace % in subject line .
This file will be loaded on Windows 10 machines, connected to a network.
Task Scheduler will be used to call the script.
Preference for a PowerShell over cmd/bat method.
Open to ideas to improve the above design.
20 freelancers estão ofertando em média $41 para esse trabalho
I can complete the project in 1day. I have experience in similar [login to view URL] you are ready to award me the project please doit soon so can complete in this weekend.
I created a similar script on my managed servers. Its proved that it's works, I only need an easy modification on it, and it's compatible with Powershell 2 or upper.
Hi, though the rate is a bit low, i can customize my exiating os [login to view URL] fullfill your needs, i already have a ps script that i created fory own co.