Administrator Guide

返回內容頁
寫入 XML 組態檔
Latitude ON Flash 允許您使用 XML 進行遠端設定。本章節提供一些簡單的遠端設定 XML 程式碼範例。
注意:在開始設定 Latitude ON Flash 之前,您必須使用文字編輯器寫入 XML 指令。
ChangeAllUserPassword.xml
下列程式碼讓您在分派遠端設定後,確認所有使用者在第一次登入時變更密碼:
<?xml version="1.0" encoding="utf-8"?>
<cmdstore xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=" DVMRemoteCmd.xsd">
<cmd>
<allUser action="changeUser"></allUser>
</cmd>
</cmdstore>
ChangeUserPassword.xml
下列程式碼允許特定使用者變更他/她的密碼:
<?xml version="1.0" encoding="utf-8"?>
<cmdstore xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=" DVMRemoteCmd.xsd">
<cmd>
<allUser action="changeUser"></allUser>
</cmd>
</cmdstore>
如果上列陳述式 <singleUser action="changePassword" user="User"> 變更為 <singleUser action="changePassword"
user="User1">,那麼 User1 帳戶的使用者在下一次登入系統時,會被詢問是否要變更密碼。
DeleteAllUsers.xml
下列程式碼會刪除所有使用者(除了預設使用者以外):
<?xml version="1.0" encoding="utf-8"?>
<cmdstore xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="
DVMRemoteCmd.xsd">
<cmd>
<allUser action="deleteUser"></allUser>
</cmd>
</cmdstore>
DeleteUser.xml
下列程式碼會刪除特定使用者帳戶 (User)
<?xml version="1.0" encoding="utf-8"?>
<cmdstore xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=" DVMRemoteCmd.xsd">
<cmd>
<singleUser action="deleteUser" user="User"></singleUser>