Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-JCPolicyTemplateConfigField does not exist, making New-JCPolicy function not work #652

Open
joelengelhardt-crsrds opened this issue Feb 18, 2025 · 1 comment

Comments

@joelengelhardt-crsrds
Copy link

Describe the bug
When I run the following command in PowerShell:
New-JCPolicy -TemplateName darwin_Login_Window_Text -LoginwindowText "Welcome to JumpCloud" -Name "macOS - Login Window Policy"

I get the following error:

Get-JCPolicyTemplateConfigField: 
Line |
  49 |  …             $templateObject = Get-JCPolicyTemplateConfigField -templa …
     |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The term 'Get-JCPolicyTemplateConfigField' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
New-JCPolicy: Cannot retrieve the dynamic parameters for the cmdlet. Could not find policy template by specified Name

Expected behavior
I expected this to work, as it's an example here: https://github.com/TheJumpCloud/support/wiki/New-JCPolicy#example-1

System Device (please complete the following information):

  • OS: macOS 15
  • Running PowerShell in Visual Studio Code
@jworkmanjc
Copy link
Contributor

@joelengelhardt-crsrds can you confirm that you are using the latest PowerShell Module and SDKs?

This does work for me

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants