Latest Posts



Translate

Total Pageviews

Wednesday, 3 September 2014

Some Helpful PowerCLI Commands


Here are some helpful PowerCLI Commands:-
1. Sometimes when you are using the PowerCLI commands output of that commands is listed completed on Screen then how to get the output completely:-

(a.)  Complete Output is not Visible through this command

 
(b.)  Complete Output is Visible through this command
 

 (c.) Even with this command complete Output is Visible

 
2. How to Check the Alias of Any Command in PowerCLI:-
 
Get-Alias -definition Command
 
 
 
3. How to Create Variable in PowerCLI
(a.) How to create variable for command:-
$VariableName=command
Ex:-
$a=get-credential
(b.) How to create variable for Particular Object (For example:- VM)
$VaribaleName="ObjectName"
Ex:-
$b="Win01"
 
4. How to Count the Lines those are available in Output
$VariableName.count
Ex:-
$a.count
 
 
5. How to Change the Column Name in the Output