Topic
This article explains how to use Ninja-Property-Docs-Templates to retrieve a list of templates containing documents and attributes.
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 TemplateA 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: