Enable WOL in DELL BIOS
0 Votes |
Description
Property Details
26695 | |
Alpha - Code that was just developed | |
Enable WOL in DELL BIOS | |
BESC | |
Lawrence Berkeley National Laboratory | |
4/8/2020 12:00:00 AM | |
WOL DELL BIOS | |
True | |
tasaif on 4/10/2020 12:15:01 PM | |
tasaif on 4/10/2020 12:15:01 PM | |
2678 Views / 18 Downloads | |
![]() ![]() ![]() ![]() ![]() |
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: |
Comments
![]() |
|
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. |