Skip to main content

Using Powershell cmdlets

  • January 27, 2020
  • 0 replies
  • 761 views
Using Powershell cmdlets
psullivan
Administrator
Forum|alt.badge.img+15

This article contains information on how to view the documentation for the Unity API PowerShell Cmdlets (or any PowerShell module). You should have experience with PowerShell before using this documentation.

 

To view the documentation for a PowerShell Cmdlet:

  1. Open Windows PowerShell.
     
  2. Use the Import-Module command to load a module to the active PowerShell session.
    • Command: Import-Module “module-name-and-location

      Where module-name-and-location is the name and full file path of the module
       
    • Example command:
      Import-Module “C:\Users\username\AppData\Local\Webroot Reporting\Main\Cmdlets\Webroot.UnityAPI.PowerShell.dll”
       
    • By default, this command will not return any results.
       

       
  3. Use the Get-Command command to display a list of the available commands/cmdlets in a module.
    • Command: Get-Command -Module module-name
      Where module-name is the name of the module.
       
    • Example command:
      Get-Command -Module Webroot.UnityAPI.Powershell
       
    • A list of commands and cmdlets will display, including name, version and source.
       

       
  4. Use the Get-Help command to get more information about a specific command or cmdlet.
    • Command: Get-Help command/cmdlet name -Full
      Where command/cmdlet name is the name of the specific command/cmdlet.
       
    • Example command:
      Get-Help Get-UnityAPIConsoleGSMSites -Full
       
    • More information will be displayed on the command or cmdlet, including:
       

      Parameter

      Description

      Name

      Name of the cmdlet

      Synopsis

      Brief summary of the cmdlet

      Syntax

      An auto-generated section displaying all valid parameters and parameter combinations

      Description

      Detailed information on what the cmdlet does, how to use it, what to watch out for and things to keep in mind while using it

      Parameters

      Provides more information about the parameters, including a detailed explanation, common properties (if a parameter is required, default values, etc.) and acts as a supplement to the cmdlet description

       

 

For additional information on Universal Reporter, please see:

Did this help you find an answer to your question?
This topic has been closed for comments