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

Issue / Help using script params #257

Open
jshplayer opened this issue Sep 20, 2023 · 0 comments
Open

Issue / Help using script params #257

jshplayer opened this issue Sep 20, 2023 · 0 comments

Comments

@jshplayer
Copy link

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.

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

No branches or pull requests

1 participant