SMS_TaskSequence_ApplyWindowsSettingsAction 服务器 WMI 类

SMS_TaskSequence_ApplyWindowsSettingsAction WMI 类是 Configuration Manager 中的 SMS 提供程序服务器类。 它表示为目标计算机应用 Windows 设置配置信息的任务序列操作。

以下语法在托管对象格式 (MOF) 代码中进行了简化,并包含所有继承的属性。

语法

Class SMS_TaskSequence_ApplyWindowsSettingsAction : SMS_TaskSequence_Action  
{  
    String AdminPassword;  
    String ComputerName;  
    SMS_TaskSequence_Condition Condition;  
    Boolean ContinueOnError;  
    String Description;  
    Boolean Enabled;  
    String InputLocale;
    String Name;  
    String ProductKey;  
    Boolean RandomAdminPassword;  
    String RegisteredOrgName;  
    String RegisteredUserName;  
    UInt32 ServerLicenseConnectionLimit;  
    String ServerLicenseMode;  
    String SystemLocale;
    String SupportedEnvironment;  
    UInt32 Timeout;  
    String TimeZone;  
    string UILanguage;
    string UILanguageFallback;
    string UserLocale;

};  

方法

SMS_TaskSequence_ApplyWindowsSettingsAction 不定义任何方法。

属性

AdminPassword

数据类型String

访问类型:读/写

限定 符: [VariableName("OSDLocalAdminPassword"), Secret, AllowedLen("0-255")]

本地管理员密码。 名称的长度可以介于 0 到 255 个字符之间。 必须设置此属性,但如果属性设置为 true,则会忽略此属性RandomAdminPassword

与此属性关联的任务序列变量是 OSDLocalAdminPassword

ComputerName

数据类型String

访问类型:读/写

限定符:无

分配给目标计算机的名称。 默认值为 "%_SMSTSMachineName%"

Condition

数据类型SMS_TaskSequence_Condition

访问类型:读/写

限定符:无

有关详细信息,请参阅 SMS_TaskSequence_Action服务器 WMI 类

ContinueOnError

数据类型Boolean

访问类型:读/写

限定符:无

有关详细信息,请参阅 SMS_TaskSequence_Action服务器 WMI 类

Description

数据类型String

访问类型:读/写

限定 符: [AllowedLen("0-255")]

有关详细信息,请参阅 SMS_TaskSequence_Action服务器 WMI 类

Enabled

数据类型Boolean

访问类型:读/写

限定符:无

有关详细信息,请参阅 SMS_TaskSequence_Action服务器 WMI 类

InputLocale

数据类型String

访问类型:读/写

指定默认键盘布局。 有关此 Windows 安装程序应答文件值的详细信息,请参阅 Microsoft-Windows-International-Core

Name

数据类型String

访问类型:读/写

限定 符: [AllowedLen("1-100")]

有关详细信息,请参阅 SMS_TaskSequence_Action服务器 WMI 类

ProductKey

数据类型String

访问类型:读/写

限定 符: [QuasiSecret]

新 OS 的产品代码。

RandomAdminPassword

数据类型Boolean

访问类型:读/写

限定 符: [not_null]

  • 设置 true (默认) ,将管理员密码设置为随机生成的值。 它还会禁用新 OS 中的帐户。
  • 设置为 false 启用本地管理员帐户。 它还设置 由 属性指定的 AdminPassword 密码。

此属性是必需项。

RegisteredOrgName

数据类型String

访问类型:读/写

限定 符: [Not_Null, AllowedLen("1-255")]

新 OS 中已注册的组织名称。 名称长度可以介于 1 到 255 个字符之间。 此属性是必需项。

RegisteredUserName

数据类型String

访问类型:读/写

限定 符: [Not_Null, AllowedLen("1-255")]

新 OS 中已注册的用户名。 名称长度可以介于 1 到 255 个字符之间。 此属性是必需项。

ServerLicenseConnectionLimit

数据类型UInt32

访问类型:读/写

限定 符: [ValueRange("5-9999")]

限制服务器许可证连接。 该值可以介于 5 和 9999 之间。 使用此属性在 Windows Server 上配置服务器许可。

ServerLicenseMode

数据类型String

访问类型:读/写

限定符:无

服务器许可模式。 Windows Server 的可能值为:

  • PerSeat

  • PerServer

SystemLocale

数据类型String

访问类型:读/写

指定系统区域设置。 有关此 Windows 安装程序应答文件值的详细信息,请参阅 Microsoft-Windows-International-Core

SupportedEnvironment

数据类型String

访问类型:读/写

限定 符: [Not_Null:ToInstance]

有关详细信息,请参阅 SMS_TaskSequence_Action服务器 WMI 类

此任务序列操作的此属性的默认值为 WinPE。

Timeout

数据类型UInt32

访问类型:读/写

限定符:无

有关详细信息,请参阅 SMS_TaskSequence_Action服务器 WMI 类

TimeZone

数据类型String

访问类型:读/写

限定 符: [Not_Null]

新 OS 的时区。 将此属性设置为英语字符串。 非英语本地化字符串会导致时区设置失败,并默认为世界协调时 (UTC) 。

UILanguage

数据类型String

访问类型:读/写

指定 Windows UI 语言。 有关此 Windows 安装程序应答文件值的详细信息,请参阅 Microsoft-Windows-International-Core

UILanguageFallback

数据类型String

访问类型:读/写

指定 Windows UI 的回退语言。 有关此 Windows 安装程序应答文件值的详细信息,请参阅 Microsoft-Windows-International-Core

UserLocale

数据类型String

访问类型:读/写

指定用户区域设置。 有关此 Windows 安装程序应答文件值的详细信息,请参阅 Microsoft-Windows-International-Core

备注

此类的类限定符包括:

[CommandLine("osdwinsettings.exe /config"),VariablePrefix("OSD"),  

ActionCategory{"Settings,4,7"},ActionUI{"AdminUI.TaskSequenceEditor.dll", "Microsoft.ConfigurationManagement.AdminConsole.TaskSequenceEditor", "ApplyWindowsSettingsControl", "TaskSequenceOptionControl"}]  

有关“属性”部分中包含的类限定符和属性限定符的详细信息,请参阅 Configuration Manager 类和属性限定符

要求

运行时要求

有关详细信息,请参阅Configuration Manager服务器运行时要求

开发要求

有关详细信息,请参阅Configuration Manager服务器开发要求