Previous Topic Next topic Print topic


PowerShell

The MicroFocus.SEE.PowerShell assembly provides PowerShell cmdlets for starting/stopping regions, as well as other administrative functions. This assembly installs as a PowerShell snap-in during a product installation or development build of PowerShell.sln. To use the SEE cmdlets, powershell.exe must be started with the COMPLUS_Version environment variable set to the 4.0 .NET framework in its environment space. For example:

set COMPLUS_Version=v4.0.30319
start powershell.exe

If this command returns an error regarding PowerShell and the .NET framework v2.0 not being installed, then find the powershell.exe install location (normally \Windows\System32\WindowsPowerShell\<release>) and create a file called powershell.exe.config that contains the following lines.

<?xml version="1.0"?>
   <configuration>
      <startup useLegacyV2RuntimeActivationPolicy="true">
         <supportedRuntime version="v4.0.30319"/>
         <supportedRuntime version="v2.0.50727"/>
         </startup>
      </configuration>
Previous Topic Next topic Print topic