-
Notifications
You must be signed in to change notification settings - Fork 93
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
Feature Request: Pass script content directly to detection and requirement script rule functions #168
Comments
the new-intunewin32apptecetectionrule script is for script files, if you wanna use it directly from your script during the building of the app, here a workaround/ way I use
and use it with the -DetectionRule $DetectionRule Flag in the Add-Win32App command But yea, if it could work directly, it would be nice |
I don't use it with the requirements, but I think it could work as detection, you just need to ajust the $DetectionRule for requirement graph call |
Thanks @AlkHacNar, I was hoping I would be able to do something like this but had not had a chance to get that far. Would be nice to be able to do it natively with the function, but this is a pretty clean workaround. |
For functions like
New-IntuneWin32AppDetectionRuleScript
it would be great if there was the option to pass script content directly instead of only passing a file. This would be useful for building script blocks directly in script, or manipulating scripts before passing them to the function.The text was updated successfully, but these errors were encountered: