cancel
Showing results for 
Search instead for 
Did you mean: 

Get-JCSystem filterDateProperty throws an error

anuradhaonline
Novitiate II

Hi,

I'm getting this error message when trying to run the following command. 

 

Get-JCSystem -filterDateProperty created -dateFilter after -date (Get-Date).AddDays(-10) -returnProperties hostname, created

 

Here is the screenshot of the error. For some reason, I can't attach images.

https://i.imgur.com/poQwYrJ.png 

I think there is a problem with "Get-JCSystem.ps1" script.

Can someone please help?

Thanks!

1 REPLY 1

anuradhaonline
Novitiate II

This command works fine on Powershell 7.

What I did was,

  • Deleted the Jumpcloud module from Powershell 5

 

To get location:
Get-InstalledModule JumpCloud | Select-Object InstalledLocationโ€‹

 

  • Installed Powershell 7 from MS Store
  • Installed Jumpcloud module on Powershell 7

Hope this will help anyone else having the same issue. 

And I hope Devs will look into it.

You Might Like

New to the site? Take a look at these additional resources:

Community created scripts

Keep up with Product News

Read our community guidelines

Ready to join us? You can register here.