At C:\Users\isaaco\Documents\Get-MDMClientData.ps1:122 char:39
[ValidateNotNullOrEmpty()]
~
Parameter declarations are a comma-separated list of variable names with optional initializer expressions.
At C:\Users\isaaco\Documents\Get-MDMClientData.ps1:122 char:39
[ValidateNotNullOrEmpty()]
~
Missing ')' in function parameter list.
At C:\Users\isaaco\Documents\Get-MDMClientData.ps1:330 char:39
[ValidateNotNullOrEmpty()]
~
Parameter declarations are a comma-separated list of variable names with optional initializer expressions.
At C:\Users\isaaco\Documents\Get-MDMClientData.ps1:330 char:39
Isaac Oni I suppose you haven't provided the credentials in $cred variable then? Btw you should use device name from your environment instead of nj-60-ntb :)
At C:\Users\isaaco\Documents\Get-MDMClientData.ps1:122 char:39
I get the above errors when I tried to dot source the script. Can you help please