Skip to content

IAdmReportGeneratorScript

The IAdmReport interface represents a report generator that executes a PowerShell script.

Inheritance: The IAdmReportGeneratorScript interface inherits from the IAdmReportGenerator interface.

Methods

Properties

  • Property

  • Description

  • Script

  • Gets or sets a text of a PowerShell script.

  • RunAs

  • Gets the IAdmRunAs interface that can be used to specify credentials to be used to run a PowerShell script.

Details

ResolveValueReferencesInScript()

Returns a PowerShell script with value references replaced with values of corresponding properties of the user, for which a report is generated.

String ResolveValueReferencesInScript(IAdmReportArguments arguments, 
                                      String script, 
                                      out String[] warnings)

Parameters

  • arguments - Specifies arguments for report generation.
  • script - Specifies the PowerShell script.
  • warnings - An output (OUT) parameter that returns an array that contains warnings issued while resolving value references.

Script

Gets or sets a text of a PowerShell script. You can use value references in the script. Value references are replaced with values of corresponding properties of the user, for which a report is generated.

  • Type:
  • String
  • Access:
  • Read/Write

RunAs

Gets the IAdmRunAs interface that can be used to specify credentials to be used to run a PowerShell script.


Requirements

Minimum required version: 2018.1

See also