Reuse of script modules
I have written a powershell script module to verify a computer's membership in an AD security group that I pass as an argument.
I use this script as a condition in the policy to install an msi package.
I need to configure several other similar policies to install other packages after verifying that the computer belongs to a particular security group.
I could just duplicate the script module with different names and it would work but I was wondering if there was a way to do it better and easier to manage?
Is it possible to call the same powershell source from different script modules?
Is there anyone who can help me?
Your script module you can use as many times as you want in policies.
For example you can make a policy for Firefox with your script module, another one for Chrome with your script module.