No, not directly in a CI as the only content possible in a CI is a script. There are many paradigms you can use though to make the data accessible including hosting it on a shared folder or using a web service that the script is configured to access.
Compliance rule transport data
We need to check regularly if our servers for local users and disable the ones that are not authorized.
We have a file in our SCCM server that has all the servers and the correspondent authorized local users.
With this information we-re thinking about creating a compliance rule that read the local file (csv/text file) in our SCCM and then transport that information to the discovery script to check if the users on that system are compliant with our file, and if not do the remediation accordantly.
Is it possible to transport information from a local file to the discovery script that runs on the servers?
Any suggestions/alternatives to this plan are welcome.
Thank you.
-
Jason Sandys 31,316 Reputation points Microsoft Employee
2021-03-01T19:22:22.997+00:00
2 additional answers
Sort by: Most helpful
-
J.S 156 Reputation points
2021-03-01T21:04:51.22+00:00 Thank you for your answer, Can you point me any link where I could see similar deployment, I mean, how to configure a webservice that a PowerShell script as access?
-
Jason Sandys 31,316 Reputation points Microsoft Employee
2021-03-01T21:25:23.923+00:00 A quick web search will get you lots of hits on this: https://www.bing.com/search?q=web+service+powershell&cvid=eaa4bd1d1cb541d0a6ca3d639af78cea&pglt=547&FORM=ANNAB1&PC=W069