Users Guide
Sample scripts
This section provides some exemplary sample scripts that depict the typical usage of Desired State Conguration using the functionality of
Dell Command | PowerShell Provider for enforcing BIOS settings of the supported attributes. The scripts authored for Desired State
Conguration should be saved in .ps1 format.
NOTE:
• Category property is mandatory eld for each resource.
• BlockDenition is a mandatory property only for the Powermanagement category. BlockDenition must be unique for each
resource block in the Powermanagement category.
Enforcing simple conguration for category POSTBehavior
Enforcing ‘Keypad’ attribute as ‘EnabledByNumlock’ on Node ’200.200.200.2’
Configuration POSTBehaviorConfiguration
{
Import-DscResource -ModuleName DellBIOSProvider
Node 200.200.200.2 {
POSTBehavior POSTBehaviorSettings #resource name
{
Category = "POSTBehavior"
Keypad = "EnabledByNumlock"
}
}
}
Conguring AdvancedBatteryChargeConguration in category
Powermanagement
Configuration PowerManagementConfiguration
{
Import-DscResource -ModuleName DellBIOSProvider
Node 200.200.200.2 {
PowerManagement PowerManagementSettingsTuesday #resource name
{
Category = "PowerManagement"
BlockDefinition="1"
AdvancedBatteryChargeConfiguration = "Tuesday"
BeginningOfDay = "10:30"
WorkPeriod = "15:45"
}
PowerManagement PowerManagementSettingsSunday #resource name
{
Category = "PowerManagement"
BlockDefinition="2"
AdvancedBatteryChargeConfiguration = "Sunday"
BeginningOfDay = "13:30"
WorkPeriod = "15:45"
}
}
}
26
Getting started with Dell Command | PowerShell Provider 2.2