Compliance rule transport data

J.S 156 Reputation points
2021-03-01T15:02:27.093+00:00

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,171 Reputation points Microsoft Employee
    2021-03-01T19:22:22.997+00:00

    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
    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?

    0 comments No comments

  2. Jason Sandys 31,171 Reputation points Microsoft Employee
    2021-03-01T21:25:23.923+00:00
    0 comments No comments