Already a NinjaOne customer? Log in to view more guides and the latest updates.

PowerShell: Ninja Property Docs Templates

Topic

This article explains how to use Ninja-Property-Docs-Templates to retrieve a list of templates containing documents and attributes.

If you use the NinjaOne PowerShell Module outside of an automation script, you may need to adjust PowerShell's execution policy. For more information about execution policies, refer to Microsoft's documentation: about Execution Policies (external link).

Environment

  • NinjaOne
  • Microsoft PowerShell

Description

The Ninja-Property-Docs-Templates cmdlet retrieves a list of templates containing documents and readable or writable attributes in the format <id>=<name>.

Syntax

Ninja-Property-Docs-Templates [<CommonParameters>]

Example

List of Document Templates

PS C:> Ninja-Property-Docs-Templates
5=My Test Template
4=Remote Access
10=Mark test
11=MultiPage
3=Test Template

A list of document templates containing documents and readable or writable attributes is returned in the format <id>=<name>. The ID represents the unique identifier for the document template, and the name represents the name of the document template as defined in the NinjaOne platform.

Inputs

None

Outputs

System.String[]

The cmdlet returns a string or an array of strings representing the list of document templates containing documents and readable or writable attributes in the format <id>=<name> . Each string in the array corresponds to a document template, where the ID is the unique identifier for the template and the name is the name of the template as defined in the NinjaOne platform.

Additional Resources

For more information about asset management and custom scripting, refer to the following resources:

FAQ

Next Steps