powershell-intune-samples icon indicating copy to clipboard operation
powershell-intune-samples copied to clipboard

Issue / Help using script params

Open jshplayer opened this issue 1 year ago • 0 comments

Hi, i'm trying to pass simple functions through to these scripts including the tenant admin UPN (so it doesn't ask) and the JSON directory output (again so it doesn't ask). This is to automate the scripting process however I can't seem to get these scripts to accept the passed params?

They seem to have a param configured for use from what i can see? (for $user and $json)

What i'm pushing to the .ps1 via a batch: powershell.exe -command 'powershell-intune-samples-master\CompliancePolicy\CompliancePolicy_Import_FromJSON.ps1' -User '[email protected]' -JSON 'dirname'

Any help is much appreciated.

jshplayer avatar Sep 20 '23 02:09 jshplayer