Please provide your feedback in this short Flings' survey.
fling logo of Sample Exchange PowerShell ISE Integration

Sample Exchange PowerShell ISE Integration

Contributors 1

View All
Project Details
Summary Contributors
Discover
Similar Flings
Community

Summary

SampleExchangePowerCLI Module

A PowerShell Module that contains integration between VMware's new sample code repository Sample Exchange, and PowerShell ISE. Sample Exchange contains an ever growing catalog of PowerCLI samples and snippets, and this module uses Sample Exchange REST web services to allow a user to paste sample code into their editors directly in PowerShell ISE.

Pre-Requisites

PowerShell version 4 or later.

Installation

1) Download (or clone) all files comprising the module.

2) Create a folder for the module in your module folder path, e.g. C:\Users\username\Documents\WindowsPowerShell\Modules\SampleExchangePowerCLI

3) Place the module files in the above folder. The SampleExchangePowerCLI.psd1 and SampleExchangePowerCLI.psm1 files should be in the root of the folder

NOTE: If you create the folder in the path above, then PowerShell ISE (and regular PowerShell windows) will load the module.
If you don't want to do this, you can manually install the module by running the command

PS C:> Import-Module -Force -Verbose C:\local\path\where\you\extracted\SampleExchangePowerCLI

where SampleExchangePowerCLI is the folder containing SampleExchangePowerCLI.psd1 and SampleExchangePowerCLI.psm1.

4) Restart PowerShell ISE

5) If you would like to have Sample Exchange samples available via the PowerShell ISE Snippets feature, Go to "Add-ons" > "Sample Exchange" > "Sync Snippets"

This command is the equivilent of calling the "Sync-SampleExchangeSnippetsWithISE" method directly. It downloads all samples and registers them as "Snippets" in PowerShell ISE thus making them available for use in the editor when you issue the "CTRL + J" hot-key.

If you later decide that you do not like this, you can simply go to C:\Users<user>\Documents\WindowsPowerShell\Snippets and delete all of the VMW*.ps1xml files and the snippets will go away.

Usage

Selecting Either Add-ons > VMware Sample Exchange > Search Samples, or hitting "CTRL + SHIFT + S" will bring up a dialog box which lists all available PowerShell language samples by default. You can additionally enter a search term and click the "Search" button to additionally filter the list.

Select any sample from the list and click the "Insert in Editor" button to insert the given sample code at the location of the cursor in the editor that had focus when the dialog was opened (yes, it doesn't work to select another editor after the dialog is opened, sorry).

If you click "OK" the sample content is pasted in the shell. "Cancel" simply closes the window.

To see a list of available functions:

Get-Command -Module SampleExchangePowerCLI

Contributors

Similar Flings

No similar flings found. Check these out instead...
Mar 27, 2020
fling logo of Horizon View Events Database Export Utility

Horizon View Events Database Export Utility

version 2.2

This utility allows administrators to easily apply very detailed filtering to the data and export it to a .CSV file. You can filter on time range, event severity, event source, session type (application or desktop), usernames and event types.

Aug 15, 2017
fling logo of vRealize Operations Export Tool

vRealize Operations Export Tool

The vRealize Operations Export Tool allows users to extract and export metrics and properties from vRealize Operations.

Apr 29, 2019
fling logo of Workspace ONE UEM OG Builder (Private)

Workspace ONE UEM OG Builder (Private)

version 1.0

Workspace ONE UEM OG Builder takes a csv file and create Organization Groups in Workspace ONE UEM in seconds. Quickly create those 100 or 10,000 OGs for your customer in minutes rather then spending hours or days clicking the same buttons.

Dec 14, 2015
fling logo of VMware vRealize Operations Docker 1.0 Adapter

VMware vRealize Operations Docker 1.0 Adapter

version 1.0

The Docker Management Pack for vRealize Operations Manager collects performance data from monitored container and image objects in your Docker environment.

Mar 16, 2015
fling logo of Horizon View Persona Management Share Validation Tool

Horizon View Persona Management Share Validation Tool

version 1.0

The Horizon View Persona Management Share Validation Tool is a command-line utility that analyzes user profiles and CIFS shares used by Persona Management to ensure minimum security requirements are met. Persona depends on two CIFS shares to function: the central profile store and the redirected folder share.

Jun 06, 2016
fling logo of VMware CPU Microcode Update Driver

VMware CPU Microcode Update Driver

version 2.1

This Fling is a Windows driver that can be used to update the microcode on a computer system’s central processor(s) (“CPU”). This type of update is most commonly performed by a system’s firmware (“BIOS”).

View More