Skip to content

Convert ListToOMACSVTemplate.ps1 Usage

Weatherlights edited this page Mar 28, 2024 · 5 revisions

This script can be used to capture a list file to an Intune ADMX backed profile. The output can be uploaded using the Invoke-CSVToIntuneUpload.ps1 script.

Parameter

Name Datatype Description Sample
FilePath string Specify the path to the file you want to capture. c:\Windows\Sun\Java\Deployment\exception.sites
PathOnTargetSystem string This is the path to the file on the target system. You may use envoirenment variables here in the way you use them in the cmd (So with a %-sign the beginning and at the end). %WINDIR%\Sun\Java\Deployment\exception.sites
AppName string This is the name of your app. This is used in the backend to generate the OMA-URIs and names in Intune. With AppPolicyName together this value should be unique. Java 8 SE Runtime
AppPolicyName string This is the name of your your policy (so for example the file you capture). This is used in the backend to generate the OMA-URIs and names in Intune. With AppName together this value should be unique. exception.sites
Context User or Machine This specified in which context the configuration gets applied. Use user to make the configuration user dependent and system for system wide configuration. Machine
OutputFilePath String This is where the Intune configuration profile gets saved as a csv file. You can upload this file to Intune using the Invoke-CSVToIntuneUpload.ps1 script. c:\PolicyApplicator\javase_exceptionsites_production.csv

Format of the input file

This script works on all kind of files that are written in the following format:

Entry1
Entry2
Entry3