PowerShell script exchange
Post Reply
surfingoncloud
Service Provider
Posts: 12
Liked: never
Joined: Jun 02, 2020 7:00 pm
Full Name: Snapshot
Contact:

Service provider - Script which checks the tendents folder for a new VBK file

Post by surfingoncloud »

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,

HannesK
Veeam Software
Posts: 5694
Liked: 780 times
Joined: Sep 01, 2014 11:46 am
Location: Austria
Contact:

Re: Service provider - Script which checks the tendents folder for a new VBK file

Post by HannesK »

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/

Code: Select all

 Get-Childitem -Path e:\ -Recurse -include *.vbk | Where-Object { $_.LastWriteTime -ge ((Get-Date).AddDays(-1)).Date}
should be a good starting point

Best regards,
Hannes

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests