PowerCLI question This topic contains 0 replies, has 1 voice, and was last updated by Forums Archives 5 years, 3 months ago. Author Posts January 1, 2012 at 12:00 am #5349 Forums ArchivesMember by GeorginaHowland at 2012-12-14 07:52:36 is there a powerCLI command that informs the user they are connected to a PowerCLI C:\> get-vm cbs* | measure-objectCount : 419Average :Sum :Maximum :Minimum :Property : PowerCLI C:\> (What command would i type to determine which server i am retriving info from) I would have posted this in the PowerCLI forum however there was no post-topic button to click by aadkins1964 at 2012-12-17 11:52:56 The current server is stored in the $DefaultVIServer variable, would that be what you are looking for (just type $defaultviserver and hit enter in PowerCLI)? by Makovec at 2012-12-17 12:00:44 Check this thread for PowerCLI questions. David by DonJ at 2013-01-02 07:27:39 Functions also have an -ErrorAction and -ErrorVariable parameter. You could try that. Author Posts You must be logged in to reply to this topic.