You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, did you run any command outside of a script or at the least the Get-SettingsFile command? It needs to be run interactively first so it can save your preferences before it will be usable in a script.
By running the Get-SettingsFile command, that will generate the Settings.xml file and save it in C:\Users\*\AppData\Local\AdminTools. Once that is complete, it should work without error.
I changed the CUCM_PATH value in the psm1 file and it didnt work. i found that it is both the psm1 and the psd1 file. once i changed the path in the psd1 file, then it worked.
is there a reason it is in both locations? is the CUCM_PATH necessary in the psm1 file?
Describe the bug
When running any of the examples from Sample Commands such as:
Get-Phone -Name SEP706E6D10904E -Basic
i am met with:
Cannot index into a null array.
At T:\AdminTools\Scripts\Powershell\Modules\CUCMPosh\Public\Get-SettingsFile.ps1:32 char:3
$cucm_path = $MyInvocation.MyCommand.Module.PrivateData['cucm ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray
Cannot index into a null array.
At T:\AdminTools\Scripts\Powershell\Modules\CUCMPosh\Public\Get-SettingsFile.ps1:32 char:3
$cucm_path = $MyInvocation.MyCommand.Module.PrivateData['cucm ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray
Cannot index into a null array.
At T:\AdminTools\Scripts\Powershell\Modules\CUCMPosh\Private\Invoke-CUCMAPIRequest.ps1:22 char:2
$cucm_path = $MyInvocation.MyCommand.Module.PrivateData['cucm_pat ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray
I am on windows 10 using the most current version of the download as of today's date.
This happens if i am using ISE or PowerGUI.
It will ultimately produce the desired output but causes these errors along the way.
The text was updated successfully, but these errors were encountered: