基本管理 > 管理授權 > Windchill 授權 > 授權管理公用程式 > 使用 Windchill Shell 自動擷取授權
  
使用 Windchill Shell 自動擷取授權
此主題內容為如何在 windchill shell 中 (而非 Windchill 授權管理使用者介面中) 執行下列授權公用程式指令,以配置授權設定及擷取授權。只有在線上連線時,才能擷取此公用程式的授權。
windchill wt.licenseusage.WindchillLicenseUtility
使用下列引數來執行此公用程式。
引數
描述
-SetToOnlineMode
將授權設定切換成線上模式。如果您在線上連線,請使用此模式。
-SetToOfflineMode
將授權設定切換成離線模式。如果您為離線狀態,請使用此模式。
-FetchLicense
如果授權設定已設定為線上模式,請擷取授權。
-SetToOnlineModeAndFetchLicense
將授權設定切換成線上模式並擷取授權。
-siteUsername
網站管理員使用者名稱。
-sitePassword
網站管理員密碼。
-ptcUsername
PTC 使用者名稱。
-ptcPassword
PTC 密碼。
配置授權設定
若要將授權設定切換成線上模式,請執行下列指令:
windchill wt.licenseusage.WindchillLicenseUtility -SetToOnlineMode -ptcUsername <PTC username> -ptcPassword <PTC password> -siteUsername <SiteAdminUsername> -sitePassword <SiteAdminPassword>
若要將授權設定切換成離線模式,請執行下列指令:
windchill wt.licenseusage.WindchillLicenseUtility -SetToOfflineMode -siteUsername <SiteAdminUsername> -sitePassword <SiteAdminPassword>
擷取授權
使用 windchill shell,可執行授權公用程式以擷取授權。
如果您的授權設定已設定為線上模式,請執行下列指令來擷取授權:
windchill wt.licenseusage.WindchillLicenseUtility -FetchLicense -siteUsername <SiteAdminUsername> -sitePassword <SiteAdminPassword>
若要將離線模式切換成線上模式並擷取授權,請使用下列指令:
windchill wt.licenseusage.WindchillLicenseUtility -SetToOnlineModeAndFetchLicense -ptcUsername <PTC username> -ptcPassword <PTC password> -siteUsername <SiteAdminUsername> -sitePassword <SiteAdminPassword>
成功執行後,系統會自動處理並擷取授權。系統會將一條新授權資訊新增至「授權資訊」標籤中的表格。如果執行失敗,錯誤訊息會顯示在 windchill shell 上。使用 -- 可顯示公用程式的使用說明。