Cmdlets for ServiceNow

Build 24.0.9062

CredentialsLocation Parameter (Connect-ServiceNow Cmdlet)

The location of the settings file where MFA credentials are saved.

Syntax

Connect-ServiceNow -CredentialsLocation string

Data Type

cstr

Default Value

"%APPDATA%\\CData\\ServiceNow Data Provider\\CredentialsFile.txt"

Remarks

MFA credentials are short lived and typically expire after an hour. At that point, a different MFAToken must be specified to continue connecting. MFA tokens only work once, so in the case of multi-threaded or multi-process applications, the credentials must be centrally located and shared to avoid problems. When MFAToken is not specified, this property does nothing.

If left unspecified, the default location is "%APPDATA%\\CData\\ServiceNow Data Provider\\CredentialsFile.txt" with %APPDATA% being set to the user's configuration directory:

Platform %APPDATA%
Windows The value of the APPDATA environment variable
Mac ~/.config
Linux ~/.config

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9062