Configuration File Syntax Parent topic

The configuration file uses the XML format to specify parameters used by Safe Lock.
Important
Important
The configuration file only supports UTF-8 encoding.
Refer to the following example of the configuration file:
<?xml version="1.0" encoding="UTF-8"?>
<Configurations version="1.00.000" 
    xmlns:xsi="http://www.w3.org/2001/
    XMLSchema-instance" 
    xsi:noNamespaceSchemaLocation="WKConfig.xsd">
	<Configuration>
		<AccountGroup>
			<Account 
                ID="{24335D7C-1204-43d1-9CBB-332D688C85B6}"
                Enable="no">
				<Password/>
			</Account>
		</AccountGroup>
		<UI>
			<SystemTaskTrayIcon Enable="yes"/>
		</UI>
		<Feature>
			<ApplicationLockDown LockDownMode="2">
				<WhiteList 
                RecentHistoryUnapprovedFilesLimit="50"/>
				<ScriptLockdown Enable="yes">
					<Extension ID="bat">
						<Interpreter>cmd.exe</Interpreter>
					</Extension>
					<Extension ID="cmd">
						<Interpreter>cmd.exe</Interpreter>
					</Extension>
					<Extension ID="com">
						<Interpreter>ntvdm.exe</Interpreter>
					</Extension>
					<Extension ID="dll">
						<Interpreter>ntvdm.exe</Interpreter>
					</Extension>
					<Extension ID="drv">
						<Interpreter>ntvdm.exe</Interpreter>
					</Extension>
					<Extension ID="exe">
						<Interpreter>ntvdm.exe</Interpreter>
					</Extension>
					<Extension ID="js">
						<Interpreter>cscript.exe</Interpreter>
						<Interpreter>wscript.exe</Interpreter>
					</Extension>
					<Extension ID="msi">
						<Interpreter>msiexec.exe</Interpreter>
					</Extension>
					<Extension ID="pif">
						<Interpreter>ntvdm.exe</Interpreter>
					</Extension>
					<Extension ID="ps1">
						<Interpreter>powershell.exe
                        </Interpreter>
					</Extension>
					<Extension ID="sys">
						<Interpreter>ntvdm.exe</Interpreter>
					</Extension>
					<Extension ID="vbe">
						<Interpreter>cscript.exe</Interpreter>
						<Interpreter>wscript.exe</Interpreter>
					</Extension>
					<Extension ID="vbs">
						<Interpreter>cscript.exe</Interpreter>
						<Interpreter>wscript.exe</Interpreter>
					</Extension>
				</ScriptLockdown>
				<TrustedUpdater>
					<PredefinedTrustedUpdater Enable="no">
						<RuleSet/>
					</PredefinedTrustedUpdater>
					<WindowsUpdateSupport Enable="yes"/>
				</TrustedUpdater>
				<DllDriverLockDown Enable="yes"/>
				<ExceptionPath Enable="no">
					<ExceptionPathList/>
				</ExceptionPath>
				<TrustedCertification Enable="yes"/>
				<TrustedHash Enable="no"/>
				<WriteProtection Enable="yes" ActionMode="1"
				ProtectApprovedList=”yes”/>
				<CustomAction ActionMode="0"/>
			</ApplicationLockDown>
			<UsbMalwareProtection Enable="yes" ActionMode="1"/>
			<DllInjectionPrevention Enable="yes" 
            ActionMode="1"/>
			<ApiHookingPrevention Enable="yes" ActionMode="1"/>
			<MemoryRandomization Enable="yes"/>
			<NetworkVirusProtection Enable="yes" 
            ActionMode="1"/>
			<IntegrityMonitoring Enable="yes"/>
			<Log>
				<EventLog Enable="yes">
					<Level>
						<WarningLog Enable="yes" /> 
						<InformationLog Enable="yes" /> 
					</Level>
					<BlockedAccessLog Enable="yes"/>
					<ApprovedAccessLog Enable="yes">
						<TrustedUpdaterLog Enable="yes"/>
						<DllDriverLog Enable="yes"/>
						<ExceptionPathLog Enable="yes"/>
						<TrustedCertLog Enable="yes"/>
						<TrustedHashLog Enable="yes"/>				
						<WriteProtectionLog Enable="yes"/>
					</ApprovedAccessLog>
					<SystemEventLog Enable="yes">
						<ExceptionPathLog Enable="yes"/>
						<WriteProtectionLog Enable="yes"/>
					</SystemEventLog>
					<ListLog Enable="yes"/>
					<UsbMalwareProtectionLog Enable="yes"/>
					<ExecutionPreventionLog Enable="yes"/>
					<NetworkVirusProtectionLog Enable="yes"/>
					<IntegrityMonitoringLog>
						<FileCreatedLog Enable="yes"/>
						<FileModifiedLog Enable="yes"/>
						<FileDeletedLog Enable="yes"/>
						<FileRenamedLog Enable="yes"/>
						<RegValueModifiedLog Enable="yes"/>
						<RegValueDeletedLog Enable="yes"/>
						<RegKeyCreatedLog Enable="yes"/>
						<RegKeyDeletedLog Enable="yes"/>
						<RegKeyRenamedLog Enable="yes"/>
					</IntegrityMonitoringLog>
				</EventLog>
				<DebugLog Enable="no"/>
			</Log>
		</Feature>
		<ManagedMode Enable="yes">
			<Agent>
				<Port/>
				<SslAllowBeast>1</SslAllowBeast>
			</Agent>
			<Server>
				<HostName/>
				<FastPort/>
				<SlowPort/>
				<ApiKey/>
			</Server>
			<Message>
				<Register Trigger="1"/>
				<Unregister Trigger="1"/>
				<UpdateStatus Trigger="1"/>
				<UploadBlockedEvent Trigger="1"/>
				<CheckFileHash Trigger="1"/>
				<QuickScanFile Trigger="1"/>
			</Message>
			<MessageRandomization TotalGroupNum="1" 
            OwnGroupIndex="0"
                TimePeriod="0"/>
			<Proxy Mode="0">
				<HostName/>
				<Port/>
				<UserName/>
				<Password/>
			</Proxy>
		</ManagedMode>
	</Configuration>
	<Permission>
		<AccountRef 
        ID="{24335D7C-1204-43d1-9CBB-332D688C85B6}">
			<UIControl ID="DetailSetting" State="no"/>
			<UIControl ID="LockUnlock" State="yes"/>
			<UIControl ID="LaunchUpdater" State="yes"/>
			<UIControl ID="RecentHistoryUnapprovedFiles"
                 State="yes"/>
			<UIControl ID="ImportExportList" State="yes"/>
			<UIControl ID="ListManagement" State="yes"/>
		</AccountRef>
	</Permission>
</Configurations>