From 0113ec2c4358a5a6f4ad473372a63d2aa3c249c0 Mon Sep 17 00:00:00 2001 From: Clecio Jung Date: Sat, 18 Mar 2023 20:43:43 -0300 Subject: Improve parsing --- examples/cfg.ini | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++ examples/incorrect.ini | 5 +++++ 2 files changed, 61 insertions(+) create mode 100644 examples/cfg.ini (limited to 'examples') diff --git a/examples/cfg.ini b/examples/cfg.ini new file mode 100644 index 0000000..ae0ae42 --- /dev/null +++ b/examples/cfg.ini @@ -0,0 +1,56 @@ +[InitialConfiguration] +;Optional, display language can only be one of the installed language +Language=en-us +;Optional, The name of a script that runs after setupComplete.cmd but before the initial configuration begins. +;Optional +Locale=en-us +;Optional +Country=US +;Optional +Keyboard=0409:00000409 +AcceptEula=true +;This is only required on a server where an OEM EULA has been specified +;by using the OOBE.xml file +AcceptOEMEula=true +;Optional. Example: My Company Name +CompanyName=EnterCompanyName +ServerName=EnterServerName +; Example: CONTOSO +NetbiosName=EnterNetbiosDomainName +; Example: contoso.local +DNSName=EnterDNSDomain +; Used to set the user name for the domain admin +UserName=EnterDomainAdminUserName +;The password has to be strong and at least 8 characters +PlainTextPassword=EnterAdminPassword +;. Used to set the user name for the domain standard user account. Ignored in migration mode. +StdUserName=EnterDomainStandardUserName +;. The password for the domain standard user account has to be strong and at least 8 characters +StdUserPlainTextPassword=EnterStandardUserPassword +;Controls the Watson and automatic update settings +Settings=All or Updates or None +WebDomainName=www.abc.com +TrustedCertFileName=c:\cert\a.pfx +TrustedCertPassword=Enteryourpassword +EnableVPN=true +EnableRWA=true +IPv4DNSForwarder= +IPv6DNSForwarder= +VpnIPv4StartAddress= +VpnIPv4EndAddress= +VpnBaseIPv6Address= +VpnIPv6PrefixLength= +;All these section are optional. + [PostOSInstall] +;Optional, The name of a script that runs after setupComplete.cmd but before the initial configuration begins. + +IsHosted=true +StaticIPv4Address= +StaticIPv4Gateway= +StaticIPv4SubnetMask= +StaticIPv6Address= +StaticIPv6SubnetPrefixLength= +StaticIPv6Gateway= +ClientBackupOn=true +FileHistoryOn=true +LaunchPadHiddenTasks= \ No newline at end of file diff --git a/examples/incorrect.ini b/examples/incorrect.ini index 317ce8a..42dd5f2 100644 --- a/examples/incorrect.ini +++ b/examples/incorrect.ini @@ -10,6 +10,11 @@ a = 1 test=2 beta=96 +# We allow for spaces and special characters inside values, but not on keys +erro r = 56 +correct = al bel gam + +# Section names can have special characters and spaces [ section 2 ] test2 = 65 a = ; 15 -- cgit v1.2.3