Windows OS 管理用戶端:如何管理 iTunes 控制功能

  • 最後更新: 28 七月, 2009
  • 文章: HT2102
  • 舊文章: 306026

摘要

注意:本文件適用於 Microsoft Windows 相容電腦。如需 Mac OS X 版 iTunes 控制功能的管理說明文件,請詳讀 HT2653HT3490 等文。如需有關透過 iTunes 偏好設定使用 iTunes 分級保護控制功能的資訊,請閱讀 HT1904 一文。

iTunes 提供分級保護、企業和教育控制功能,可讓系統管理者設定內容限制。下列資訊適用於想在 Microsoft Windows 版 iTunes 中預先設定分級保護和/或其他控制功能的客戶。本資訊僅適用於 iTunes 7.1 或以上版本。

重要事項:下列步驟需要使用“登錄編輯程式”(Regedit) 更動 Windows 登錄檔。即使您對編輯登錄檔十分熟悉,仍應在編輯前先製作備份。如果在 Regedit 中犯下任何錯誤,可能導致行為異常,甚至可能讓 Windows 無法啟動。更動可能會讓安裝這些登錄項目的軟體無法正常運作,除非您回復這些項目。

如何在 Windows XP、Windows Vista 和 Windows Server 2003 中備份、編輯和還原登錄
如何備份、編輯和還原 Windows 2000 的登錄

受影響的產品

iTunes 8 for Windows, iTunes 8 for Windows, Microsoft Windows Vista

分級保護控制登錄機碼

在 Windows 中,必須使用登錄檔管理 iTune 的分級保護控制功能。分級保護控制偏好設定儲存在兩個登錄機碼下:

在 Windows XP 和 Windows Vista 32 位元版上:

  • HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\[SID]\Parental Controls\

  • HKEY_CURRENT_USER\Software\Apple Computer, Inc.\iTunes\Parental Controls\

在 Windows Vista 64 位元版上:

  • HKEY_LOCAL_MACHINE\Software\Wow6432Node\Apple Computer, Inc.\iTunes\[SID]\Parental Controls\

  • HKEY_CURRENT_USER\Software\Wow6432Node\Apple Computer, Inc.\iTunes\Parental Controls\

  • [SID] 是使用者帳號的安全性識別碼的字串表示法,通常格式如下:
    S-1-5-21-1715567821-1202687629-839522115-1003

由於每個帳號的 SID 均不同,因此 iTunes 可將每位使用者的分級保護控制偏好設定儲存在 HKEY_LOCAL_MACHINE 中而不致重複。

如果您要指定新使用者帳號繼承的分級保護控制偏好設定,可以在下列機碼中建立這些偏好設定:

在 Windows XP 和 Windows Vista 32 位元版上:

  • HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\Parental Controls\Default\

在 Windows Vista 64 位元版上:

  • HKEY_LOCAL_MACHINE\Software\Wow6432Node\Apple Computer, Inc.\iTunes\Parental Controls\Default\

在 iTunes 8.0.2 和以上版本,如果特定使用者的 [SID] 值不存在,就會使用這些機碼底下的值。

分級保護控制偏好設定會儲存在上述每個機碼底下的五個登錄值中。當分級保護控制功能遭到鎖定時,iTunes 會使用這些值:

  • HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\[SID]\Parental Controls\AdminFlags
  • HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\[SID]\Parental Controls\AdminMoviesLimit
  • HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\[SID]\Parental Controls\AdminTVShowsLimit
  • HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\[SID]\Parental Controls\AdminRatingSystemID
  • HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\[SID]\Parental Controls\AdminGamesLimit


在 iTunes 8.0.2 和以上版本,如果這些特定使用者的 [SID] 值不存在,iTunes 就會使用這些值:

  • HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\Parental Controls\Default\AdminFlags
  • HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\Parental Controls\Default\AdminMoviesLimit
  • HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\Parental Controls\Default\AdminTVShowsLimit
  • HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\Parental Controls\Default\AdminRatingSystemID
  • HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\Parental Controls\Default\AdminGamesLimit

當分級保護控制功能解鎖時,iTunes 會使用這些值:

  • HKEY_CURRENT_USER\Software\Apple Computer, Inc.\iTunes\Parental Controls\UserFlags
  • HKEY_CURRENT_USER\Software\Apple Computer, Inc.\iTunes\Parental Controls\UserMoviesLimit
  • HKEY_CURRENT_USER\Software\Apple Computer, Inc.\iTunes\Parental Controls\UserTVShowsLimit
  • HKEY_CURRENT_USER\Software\Apple Computer, Inc.\iTunes\Parental Controls\UserRatingSystemID
  • HKEY_CURRENT_USER\Software\Apple Computer, Inc.\iTunes\Parental Controls\UserGamesLimit

UserFlags 和 AdminFlags 的數值

儲存在 UserFlagsAdminFlags 中的數值是旗標的位元遮罩,定義如下:

kParentalFlags_Locked = 0x00000001
kParentalFlags_DisablePodcasts = 0x00000002
kParentalFlags_DisableMusicStore = 0x00000004
kParentalFlags_DisableSharing = 0x00000008
kParentalFlags_DisableExplicitContent = 0x00000010
kParentalFlags_DisableRadio = 0x00000020
kParentalFlags_RestrictMovieContent = 0x00000040
kParentalFlags_RestrictTVShowContent = 0x00000080
kParentalFlags_DisableCheckForUpdates = 0x00000100
kParentalFlags_RestrictGames = 0x00000200
kParentalFlags_DisableMiniStore = 0x00000400
kParentalFlags_DisableAutomaticDeviceSync = 0x00000800
kParentalFlags_DisableGetAlbumArtwork = 0x00001000
kParentalFlags_DisablePlugins = 0x00002000
kParentalFlags_DisableOpenStream = 0x00004000
kParentalFlags_DisableAppleTV = 0x00008000
kParentalFlags_DisableDeviceRegistration = 0x00010000
kParentalFlags_DisableDiagnostics = 0x00020000
kParentalFlags_AllowITunesUAccess = (1<<18) // (0x00040000) iTunes 8.1 新增

UserMoviesLimit、UserTVShowsLimit、AdminMoviesLimit 和 AdminTVShowsLimit 的數值

這些數值是不公開的。通常系統管理者只需注意 UserFlagsAdminFlags 指定的分級保護控制偏好設定。

UserFlags、UserMoviesLimit 和 UserTVShowsLimit

這些數值代表分級保護控制功能解鎖。由於這些數值位於 HKEY_CURRENT_USER 機碼底下,因此目前使用者不需提高取用權就能寫入。換言之,如果您希望禁止受到限制的使用者修改分級保護控制功能,就不應使用這些登錄值。

如果 HKEY_LOCAL_MACHINE 中沒有 AdminFlags 數值,或如果 AdminFlags 數值中的 kParentalFlags_Locked 位元是 0,表示分級保護控制功能已經解鎖,iTunes 會使用 UserFlagsUserMoviesLimitUserTVShowsLimitUserRatingSystemIDUserGamesLimit 數值。

AdminFlags、AdminMoviesLimit 和 AdminTVShowsLimit

這些數值代表分級保護控制功能遭到鎖定。由於這些數值位於 HKEY_LOCAL_MACHINE 機碼底下,因此受到限制的使用者無法修改。iTunes 偵測到目前使用者有 AdminFlags 數值時,表示控制功能遭到鎖定,iTunes 就會使用該數值,忽略 HKEY_CURRENT_USER 底下的任何 UserXXX 數值。請注意,如果控制功能解鎖,AdminXXX 數值可能不會反映目前的分級保護控制設定,因為在此情況下只會保留 UserXXX 數值。不過 AdminFlags 中的鎖定位元應該都是正確的。

預先設定分級保護控制功能

為了預先設定分級保護控制功能,您必須在 HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\[SID]\Parental Controls\ 中設定每個使用者帳號的三個登錄數值。其中一個方法是使用 iTunes 設定和鎖定某個使用者的分級保護控制偏好設定,然後為其他使用者帳號安全性識別碼 (SID) 複製該使用者對應登錄機碼下的數值 (假設您不需要設定以下所列的任何旗標,您從 iTunes 使用者介面無法控制這些旗標)。或者不透過 iTunes,直接利用 AdminFlags 數值的上述資訊定義自己的分級保護控制數值。

如果您要針對日後才建立或尚未使用的帳號預先設定分級保護控制功能,可針對 Windows XP 與 32 位元版的 Vista 在 HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\Parental Controls\Default\ 中指定以下數值 (iTunes 8.0.2 或以上版本):

HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\Parental Controls\Default\AdminFlags
HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\Parental Controls\Default\AdminMoviesLimit
HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\Parental Controls\Default\AdminTVShowsLimit
HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\Parental Controls\Default\AdminRatingSystemID
HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\Parental Controls\Default\AdminGamesLimit

如果是 64 位元版的 Windows Vista,則是在 HKEY_LOCAL_MACHINE\Wow6432Node\Software\Apple Computer, Inc.\iTunes\Parental Controls\Default\ 中 (iTunes 8.0.2 或以上版本):

HKEY_LOCAL_MACHINE\ Wow6432Node\Software\Apple Computer, Inc.\iTunes\Parental Controls\Default\AdminFlags
HKEY_LOCAL_MACHINE\ Wow6432Node\ Software\Apple Computer, Inc.\iTunes\Parental Controls\Default\AdminMoviesLimit
HKEY_LOCAL_MACHINE\ Wow6432Node\ Software\Apple Computer, Inc.\iTunes\Parental Controls\Default\AdminTVShowsLimit
HKEY_LOCAL_MACHINE\ Wow6432Node\ Software\Apple Computer, Inc.\iTunes\Parental Controls\Default\AdminRatingSystemID
HKEY_LOCAL_MACHINE\ Wow6432Node\ Software\Apple Computer, Inc.\iTunes\Parental Controls\Default\AdminGamesLimit

附註:如果 HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\iTunes\[SID]\Parental Controls\ 中沒有特定帳號的機碼,則會針對該使用者帳號使用 HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\Parental Controls\Default 下的機碼。

一般來說,您最好設定 AdminFlags 中的 kParentalFlags_Locked,以防止受限制的使用者修改分級保護控制功能。

請注意,iTunes 不提供可設定下列旗標的使用者介面,而只有在設定 kParentalFlags_Locked 時,系統才會使用 AdminFlags 中的這些旗標。系統一律忽略 UserFlags 中的這些旗標,您必須在 AdminFlags 中設定這些旗標。如上所述,如果 AdminFlags 未鎖定,iTunes 會忽略這些設定而改用 UserFlags

kParentalFlags_DisableCheckForUpdates = 0x00000100
kParentalFlags_DisableMiniStore = 0x00000400
kParentalFlags_DisableAutomaticDeviceSync = 0x00000800
kParentalFlags_DisableGetAlbumArtwork = 0x00001000
kParentalFlags_DisablePlugins = 0x00002000
kParentalFlags_DisableOpenStream = 0x00004000
kParentalFlags_DisableAppleTV = 0x00008000
kParentalFlags_DisableDeviceRegistration = 0x00010000
kParentalFlags_DisableDiagnostics = 0x00020000

例如,若您要停用 MiniStore,則應該把 AdminFlags 登錄數值設定為 0x00000401 (即 kParentalFlags_Locked | kParentalFlags_DisableMiniStore)。

Important: Information about products not manufactured by Apple is provided for information purposes only and does not constitute Apple’s recommendation or endorsement. Please contact the vendor for additional information.