Hi Team,
I look for a script that we could use on our "cloud repository" I want a script that checks if there is a new VBK file in 24h in each tendent folder to see which client has for example no new VBK. Is there a PowerShell script for that out there?
Thanks,
-
- Service Provider
- Posts: 14
- Liked: never
- Joined: Jun 02, 2020 7:00 pm
- Full Name: Snapshot
- Contact:
-
- Product Manager
- Posts: 14844
- Liked: 3086 times
- Joined: Sep 01, 2014 11:46 am
- Full Name: Hannes Kasparick
- Location: Austria
- Contact:
Re: Service provider - Script which checks the tendents folder for a new VBK file
Hello,
and welcome to the forums. I just searched the internet and combined the first hits for
<powershell date last 24h>
https://stackoverflow.com/questions/579 ... t-24-hours
<powershell scan file tree>
https://devblogs.microsoft.com/scriptin ... for-files/
should be a good starting point
Best regards,
Hannes
and welcome to the forums. I just searched the internet and combined the first hits for
<powershell date last 24h>
https://stackoverflow.com/questions/579 ... t-24-hours
<powershell scan file tree>
https://devblogs.microsoft.com/scriptin ... for-files/
Code: Select all
Get-Childitem -Path e:\ -Recurse -include *.vbk | Where-Object { $_.LastWriteTime -ge ((Get-Date).AddDays(-1)).Date}
Best regards,
Hannes
Who is online
Users browsing this forum: Google [Bot] and 6 guests