« Back to Microsoft Discussions

Powershell Toolkit and PowerGUI

Combination View Flat View Tree View
Threads [ Previous | Next ]
I recently added the new version of the UCS powershell toolkit and do all my scripting using PowerGUI. I import the module and I am able to see that it is there and has exported cmdlets using the get-module command. I can even run the commands and access the help topics for each command but the ability for intellisense seems to have been lost. I know I was able to do this with the previous release. I have tried every way I can think of to add the module including placing the DLLs directly in C:\Windows\System32\WindowsPowerShell\v1.0\Modules. The only thing I can think is something changed in how yall put together your DLL that might be preventing PowerGUI from compiling this information. I figure PowerGUI is pretty widely used, has any one else seen this issue and found away around it?

My guess is that PowerGUI can't leverage help located in an external XML file (as ours is). Support for PowerGUI is on my list of stuff to do, so keep an eye out for updates on that topic. In the mean time, see if there's a way to get PowerGUI to reference a PowerShell XML help file when it loads modules.

So a coworker just installed the new version of the UCS cmdlets and he didn't have the issue. I did some digging and it seems PowerGUI caches the help XML files in a path like "C:\Users\%user%\AppData\Local\Quest Software\PowerGUI\Commands\2.4.0.0". In here I saw previous version for my DataONTAP cmdlets and UCS cmdlets so I figured it might be a conflict but that wasn't the face. I opened the XML file inside CiscoUCSPS_x86__en-US_1.1.0.0.xml.gz and all it had was:


 1<?xml version="1.0" encoding="utf-8" ?>
 2- <configuration>
 3- <container name="Command Info" id="c1de67e0-10ef-469b-9eee-42fb5563c082">
 4- <items>
 5- <container name="Console Version" id="7b082250-5a98-48f5-8a3f-6ab5f1e4d90e">
 6  <value>2.4</value>
 7  </container>
 8  </items>
 9  </container>
10  </configuration>


Obviously we are missing something in here. I replaced this with the working file from my coworker's computer and PowerGUI loaded and recognized the UCS cmdlets. Hope this helps any one else that might have the issue after upgrading the cmdlets.