Enable WOL in DELL BIOS
Log In or Register to download the BES file, and more.

0 Votes

Description

This task uses the Dell Command PowerShell Provider software to enable WOL functionality in the BIOS of DELL computers

Property Details

ID26695
StatusAlpha - Code that was just developed
TitleEnable WOL in DELL BIOS
DomainBESC
SourceLawrence Berkeley National Laboratory
Source Release Date4/8/2020 12:00:00 AM
KeywordsWOL DELL BIOS
Is TaskTrue
Added by on 4/10/2020 12:15:01 PM
Last Modified by on 4/10/2020 12:15:01 PM
Counters 344 Views / 3 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance


Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
action uses wow64 redirection {not x64 of operating system}

download as DellCommandPowerShellProvider2.2_328.zip "https://downloads.dell.com/FOLDER05492832M/1/DellCommandPowerShellProvider2.2_328.zip"
download as 7z.exe "https://someserver/7z.exe"

parameter "module_folder"="C:\Options\DellCommandPowerShellProvider2.2_328"

if {not exists folder (parameter "module_folder")}
    folder create "C:\Options\DellCommandPowerShellProvider2.2_328"
    waithidden __Download\7z.exe x __Download/DellCommandPowerShellProvider2.2_328.zip -o{parameter "module_folder"}
endif

createfile until ENDPOSH
import-module C:\Options\DellCommandPowerShellProvider2.2_328\DellBIOSProvider
si DellSmbios:\PowerManagement\WakeOnLan LanOnly
si DellSmbios:\PowerManagement\DeepSleepCtrl S4AndS5

$reg_path = "HKLM:\SOFTWARE\BIOS"
new-item $reg_path -ErrorAction SilentlyContinue | Out-Null
Get-ChildItem dellsmbios:/ | % {{
$category_path = "$reg_path/$($_.Category)"
new-item "$category_path" -ErrorAction SilentlyContinue | Out-Null
$path = "dellsmbios:/$($_.Category)"
get-childitem $path | % {{
if ($_.currentvalue.gettype().BaseType -eq [System.Array]){{
$arr_path = "$category_path/$($_.Attribute)"
New-Item $arr_path -ErrorAction SilentlyContinue | Out-Null
$i = 0
$_.CurrentValue | % {{
$item = $_
$item_path = "$arr_path/$i"
New-Item $item_path -ErrorAction SilentlyContinue | Out-Null
$properties = get-member -InputObject $item -MemberType Property
$properties | % {{
Set-ItemProperty -Path $item_path -Name $_.Name -Value $item.$($_.Name)
}
}
} else {{
Set-ItemProperty -Path $category_path -Name $_.Attribute -Value $_.CurrentValue
}
}
}

ENDPOSH
delete C:\options\enable_wol.ps1
copy __createfile C:\options\enable_wol.ps1
waithidden powershell -ExecutionPolicy ByPass -File C:\options\enable_wol.ps1
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
jgstew -
because this uses a download command instead of a proper prefetch with size and hash validation, this is insecure and should not be used this way.