Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell Command | PowerShell Provider Version 2.8.0 User's Guide

PDF

Sample scripts

This section provides some exemplary sample scripts that depict the typical usage of Desired State Configuration using the functionality of Dell Command | PowerShell Provider for enforcing BIOS settings of the supported attributes. The scripts authored for Desired State Configuration should be saved in .ps1 format.

Enforcing simple configuration for category POSTBehavior

NOTE:
  • Category property is mandatory field for each resource.
  • BlockDefinition is a mandatory property only for the Powermanagement category. BlockDefinition must be unique for each resource block in the Powermanagement category.
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"
        }
    }
} 

Configuring AdvancedBatteryChargeConfiguration 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"          
        }
    }
} 

Configuring PeakShiftDayConfiguration in category Powermanagement

Configuration PowerManagementConfigurationPeak
{
    Import-DscResource -ModuleName DellBIOSProvider

    Node localhost {
        PowerManagement PowerManagementSettingsSaturday    #resource name
        {
          Category = "PowerManagement"
          BlockDefinition="1"
          PeakShiftDayConfiguration = "Saturday"
          StartTime = "10:30"
          EndTime = "12:30"
          ChargeStartTime = "13:30"       
        }

        PowerManagement PowerManagementSettingsWednesday    #resource name
        {
          Category = "PowerManagement"
          BlockDefinition="2"
          PeakShiftDayConfiguration = "Wednesday"
          StartTime = "12:30"
          EndTime = "15:30"
          ChargeStartTime = "16:45"         
        }
    }
} 

Enforcing simple configuration for category POSTBehavior when BIOS password is set

NOTE: When the BIOS password is set on the client system, the password must be provided through the 'Password' property.
Configuration POSTBehaviorConfiguration
{
    Import-DscResource -ModuleName DellBIOSProvider

    Node clientMachine01 {
        POSTBehavior POSTBehaviorSettings    #resource name
        {
          Category = "POSTBehavior"
          Keypad = "EnabledByNumlock"
	   Password = “biospassword”
        }
    }
}
NOTE:For more sample scripts, see theDellBIOSProvider > DSC_SampleScripts folder.

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\