Configuring Your PowerShell to run VMware vSphere PowerCLI cmdlets

If you are new to even PowerShell, you need get your base PowerShell configured to run the cmdlets.  You may want to take a look at Setting up environment for PowerShell scripting   Configure Your PowerShell successfully run the cmdlets in VMware vSphere PowerCLI: Launch VMware vSphere PowerCLI as Administrator on the system you are running:           Welcome to the VMware vSphere PowerCLI! Log in to a vCenter Server or ESX host:              Connect-VIServer To find out what commands are available, type:       Get-VICommand To show searchable help for all PowerCLI commands:   Get-PowerCLIHelp Once you’ve connected, display all virtual machines: Get-VM If […]

Read more

PowerShell Script Editors

List of PowerShell script editors: Name Shell/Editor Cost Screenshot Comments PowerShell ISE Both Free Included in PowerShell V2 and V3. In Windows Server 2008R2 can be installed as a feature. PowerGUI Script Editor Both Free/$200 Comes with PowerGUI, a tool that allows you to build graphical mmc-like interfaces on PowerShell commands. A paid version with additional features such as mobile shell is available. Idera PowerShell Plus Both Free   PoshConsole Shell Free   PowerShell SE Editor Free   PowerSE Editor Free   Admin Script Editor Editor $99/$199/$299   Primal Script 2012 Editor $349 Script editor that supports over 50 languages […]

Read more

Converting PowerShell script into an Executable/Application

Converting PowerShell script into an Executable/Application It’s very often need to convert a PowerShell script into an Executable/Application to hand over to third party without disclosing the source of your scripts.   Here are few simple steps that lets you have this done: Download PS2EXE script from CodePlex project here. Have your script ready which you would like to convert into a standalone Executable/Application Run PS2EXE to have your script converted into an Executable/Application   Example: Say you create a one line script that launches Notepad as shown below: C:Temp>echo Invoke-Item “C:Windowssystem32notepad.exe” >> Invoke-Notepad.ps1 C:Temp>type Invoke-Notepad.ps1 Invoke-Item “C:Windowssystem32notepad.exe” C:Temp> PS […]

Read more