Compliance rule transport data

J.S 156 Reputation points

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.

Microsoft Configuration Manager
0 comments No comments
{count} votes

Accepted answer
  1. Jason Sandys 31,186 Reputation points Microsoft Employee

    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.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. J.S 156 Reputation points

    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?

    0 comments No comments

  2. Jason Sandys 31,186 Reputation points Microsoft Employee
    0 comments No comments