Adding the PowerShell SnapIn

You must add the MicroFocus.SEE.PowerShell snap-in to your PowerShell session to use SEE cmdlets. Use the Add-PSSnapin cmdlet. At the PowerShell command prompt, type the following and press Enter.

Add-PSSnapin MicroFocus.SEE.PowerShell

If an error occurs running the Add-PSSnapin, the following message appears.

Add-PSSnapin : Windows PowerShell snap-in "MicroFocus.SEE.Powershell" is loaded
 with the following warnings:  There were errors in loading the format data fil
e:
MicroFocus.SEE.Powershell, , MicroFocus.SEE.PowerShell.format.ps1xml : File skipped because of the following validation exce
ption: File MicroFocus.SEE.PowerShell.format.ps1xml cannot be loaded because the execution of scripts is disabled on this sy
stem. Please see "get-help about_signing" for more details..
At line:1 char:13
+ Add-PSSnapin <<<<  MicroFocus.SEE.Powershell
    + CategoryInfo          : InvalidData: (MicroFocus.SEE.Powershell:String)
   [Add-PSSnapin], PSSnapInException
    + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.Ad
   dPSSnapinCommand

If this error occurs, run the following cmdlet, then close your PowerShell session and restart a new one:

Set-Execution-Policy unrestricted

The execution policy persists from session to session until changed again using Set-Execution-Policy. Use Get-ExecutionPolicy without any parameters to see your current execution policy.

If you needed to set the execution policy, be aware that it is system wide, and you should set it back to its original value if required.