Users Guide

Table Of Contents
b. Define a PowerShell variable to specify boot-order to set $newboLegacy. Assign the new boot-order to it. For
example, Current boot-order type is retained.
c. $newboLegacy = $boLegacy
d. Get dcim_bootconfigsetting instance corresponding to type 1 boot-list by running the following command:
$bcsLegacy = Gwmi -Namespace root\dcim\sysman -ClassName dcim_bootconfigsetting |
where {$_.ElementName -eq 'Next Boot Configuration Setting : Boot List Type 1'}.
e. Invoke the method by running the following command: $ bcsLegacy.changebootorder($newboLegacy,
$AuthorizationToken). $AuthorizationToken variable is used to pass the BIOS password.
5. Changing Boot order for type 2 boot-list using PowerShell:
a. Get Current Boot-order for type 2 boot-list by running the following command: $boUefi = gwmi -namespace
root\dcim\sysman -class dcim_orderedcomponent | where {$_.partcomponent -match
'BootListType-2'} | select -expand partcomponent.
b. Define a PowerShell variable to specify boot-order to set $newboUefi. Assign the new boot-order to it. For example,
current boot-order type is retained.
c. Get dcim_bootconfigsetting instance corresponding to type 2 boot-list by running the following command:
$bcsUefi = Gwmi -Namespace root\dcim\sysman -ClassName dcim_bootconfigsetting | where
{$_.ElementName -eq 'Next Boot Configuration Setting : Boot List Type 2'}.
d. Invoke the method by running the following command: $ bcsUefi.changebootorder($newboUefi,
$AuthorizationToken). $AuthorizationToken variable is used to pass the BIOS password.
Shutting down and restarting the Windows system remotely
You can shut down or restart the Windows system remotely using the RequestStateChange method.
1. Shut down the Windows system remotely using the following command:
(gwmi -ComputerName "SYSNAME" -Namespace root\dcim\sysman DCIM_ComputerSystem | Where-
Object {$_.Dedicated -ne 28}).RequestStateChange(3)
2. Restart the Windows system remotely using the following command:
(gwmi -ComputerName "SYSNAME" -Namespace root\dcim\sysman DCIM_ComputerSystem | Where-
Object {$_.Dedicated -ne 28}).RequestStateChange(11)
Getting system time value on Windows system remotely
You can get the system time value for the Windows system remotely using ManageTime method. For example:
In the command line interface, run the following:
a. $cred = Get-Credential
b. $session = New-CimSession -ComputerName "Server01" -Credential $cred
c. Get-CimInstance -CimSession $session -Namespace root\dcim\sysman -ClassName
DCIM_TimeService | Invoke-CimMethod -MethodName ManageTime -Arguments
@{GetRequest="TRUE"}
20
Using Dell Command | Monitor 10.4