Quantcast
Channel: R&D Forums
Viewing all articles
Browse latest Browse all 9952

PowerShell • Re: Test Guest OS Connectivity with PowerShell

$
0
0
Hi Adam,

No officially supported cmdlet I'm aware of; I did not know about Test-VBRGuestServiceConnection, but it theoretically does what you want, but at least for me it's bugged and won't print results to the shell. If you run it with -Debug flag, it will print the results to shell and you can maybe grab it with the Powershell transcript, but I'm doubtful, and parsing the log file VeeamPowerShell_{DOMAIN}_{USER}.log in %localappdata%/Veeam/Backup/Powershell might work. (you can use the switch feature in Powershell with the -Regex flag to quickly parse data out; the entries for this cmdlet get logged with a tag [TaskLog], so you can just write an expression to capture lines starting with that and see the results and use -ErrorAction SilentlyContinue to swallow the errors in your script)

@oleg.feoktistov are you able to share a bit more about the history of this cmdlet? I get the idea of it being a fast check that the credentials work and saves a lot of failed job runs potentially, so not sure if it was ever intended for production testing or not.

Statistics: Posted by david.domask — Mar 07, 2025 4:00 pm



Viewing all articles
Browse latest Browse all 9952

Latest Images

Trending Articles



Latest Images