PowerShell script exchange
Post Reply
Sindhuja
Influencer
Posts: 21
Liked: never
Joined: Jan 22, 2018 11:01 pm
Full Name: Sindhuja Balasubramanian
Contact:

How to get Backup server Timezone?

Post by Sindhuja »

Hello,

Is there a way to get the timezone of the backup server?
Get-VBRLocalHost or Get-VBRServer or GetVBRServerSession returns the server information, but there is no way to get the Timezone they are in.

I would appreciate any help in this regard!

Thanks,
Sindhuja
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: How to get Backup server Timezone?

Post by veremin »

Why not to leverage general (non-VBR specific) PowerShell to get that information? Just an example:

Code: Select all

[System.TimeZone]::CurrentTimeZone
Thanks.
Sindhuja
Influencer
Posts: 21
Liked: never
Joined: Jan 22, 2018 11:01 pm
Full Name: Sindhuja Balasubramanian
Contact:

Re: How to get Backup server Timezone?

Post by Sindhuja »

The above command would give the current system timezone, while I am looking to get the Veeam Server Timezone.

Example,
Let's say it is 1:40pm EST, where I am executing a powershell script to get last 2 hours of session/task details.
My time interval will be 11:40am-1:40pm.
My Veeam Server is in PST time zone. So the current time of Veeam Server would be 10.40am.

The session/task query would never be able to get data , as it is always a future time interval with respect to Veeam Server.

This is the reason, I was asking for Veeam Server Timezone. If we know that, then our time interval would be based on Veeam Server timezone, and we would get accurate data.
Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests