Month: March 2010

PowerShell ISE addon GUI for importing and removing modules

I (@ravikanth) & Bernd have been working on reviving the PSISECream codeplex project. We are trying to improve a few modules that are already a part of this project and adding new modules as required. The first step towards that goal was to provide a standardized way of adding and removing ISE addon menu items. Bernd did a great job at that and created ISECreamBasic module. You can use this module to add / remove ISE addon menu items. You can find the documentation for this module @ You can download v0.1 release of this project @ While ISECreamBasic is the core of the PSISECream project, it does not really add any addon modules. So, I started up writing a addon GUI to provide the functionality of importing and removing modules. If you have used PowerGUI script editor, this GUI addon is very similar to what you see in PowerGUI’s File -> PowerShell libraries option. You can download the PSISECream release here. As you see in the above screenshot, this GUI shows a list of …

eBook: Layman’s guide to PowerShell 2.0 remoting

If are you a regular visitor to this blog, you may be aware of my PowerShell remoting series of blog articles. Traffic to this blog increased by almost 80% ever since I started the remoting series. This set of articles appear on the first page of Internet search almost all the time. The idea behind starting the remoting series was to develop the content in to an eBook at the end. I have been sitting on it for while and just got a chance to complete it after a few late night efforts.This eBook has more content than the remoting blog posts. This kinda concludes the remoting series. There are a few things I have not discussed including fan-in remoting. I will add those things as separate chapters, if required. You can download the eBook here [download id=”22″ format=”4″] This eBook got an update from the initial release. Here are the additions in the update. Chapter 2 Enable remoting for only a specific network adapter Remoting in an Enterprise Chapter 3 Run script files on remote …

Slides: Getting Started with PowerShell scripting

I just came back from the PowerShell / Bangalore ITPro UG meet. We had nearly 40 people showing up for this event. I spoke about getting started with PowerShell scripting and Ismail talked about Exchange 2010 migration. Here are the slides I used for my session. If you were there at the session, please provide your feedback either here or as a tweet to @psbug. See you at the next meet.

Enabling PowerShell remoting for only a specified set of IP addresses

I’ve published a free book on PowerShell 2.0 remoting. You can download it at: [download id=”22″ format=”4″] I wasn’t so sure about the post title. But read on to understand what I really meant. 🙂 When you enable remoting on a computer using Enable-PSRemoting cmdlet, an http listener will be created to listen for remoting requests on all IP addresses on the local computer. This may not be a great security practice in an enterprise. For example, you have an Internet facing server with two network connections. One – obviously – is the Internet connection and a second one connecting to your internal network. You don’t need remoting be enabled on the network adapter connected Internet. But, since you used Enable-PSRemoting cmdlet, remoting will be enabled and there is a WinRM listener on the Internet facing network too. So, how do we disable remoting on the Internet facing adapter? Enable-PSRemoting is a comprehensive cmdlet that does lot of things for you in one shot. This is also the recommended way to enable remoting. So, if …

Managing VirtualBox using PowerShell – Part 1: Introduction to COM objects

The VirtualBox is a nice piece of work by the people at Sun and the community around it. I started using this especially because it lets me run x64 OS for my SharePoint 2010 demo virtual machines. VMWare Workstation can also do this but I found VirtualBox to be an easier one to use. I love VirtualBox’s seamless mode too.    VirtualBox supports COM API and also has a command-line tool called vboxmanage.exe. However, automating using the command-line requires lot of text parsing, unnecessary coding and that is not fun. So, I started experimenting a bit with VirtualBox COM API and found that it is rather easy to program that in PowerShell. I wrote a few scripts to complement my existing OS VM / SharePoint deployment automation. I will start sharing those scripts here. The end goal is to generate a PowerShell wrapper that can be used even from a remote machine to manage VirtualBox virtual machines.    VirtualBox COM Objects    When you install VirtualBox on a Windows computer, you will find three COM objects in the …

PowerShell extensions for CodePlex release web service version 0.2

I just made a release of PSCodePlex 0.2. This has got no fancy features but a lot of improvements as suggested by some of you. This release got some breaking changes to parameters. Add-Release $rName changed to $releaseName $pName changed to $projectName $rDescription changed to $releaseDescription $Status changed to $releaseStatus $public and $default have been changed to switch parameter type Upload-Release $rName changed to $releaseName $pName changed to $projectName $rType changed to $releaseType $rFolderPath changed to $releaseFolderPath Comment based help has been added. You can, now, use Get-Help cmdlet to retrieve help topics about Add-Release and Upload-Release. You can also -VERBOSE parameter to see detailed activity while using these cmdlets.

PowerShell scripts demonstrating usage of datagrid and treeview controls in Windows forms

I just posted a couple of scripts that demonstrate how Windows forms controls such as DataGrid and TreeView can be used in PowerShell. These scripts can be found on the TechNet script center. 1. Process Manager example showing how to use datagrid control Link to the script: 2. PowerShell help browser using TreeView control Link to the script: These scripts will be explained in a later post either here or somewhere else. Stay tuned.