$nicMagicPacket.EnableWakeOnMagicPacketOnly = $True Verify that the property exists and can be set. The property 'EnableWakeOnMagicPacketOnly' cannot be found on this object. CategoryInfo : InvalidOperation: (Put:String), RuntimeExceptionĮnableWakeOnMagicPacketOnly is FALSE. Method invocation failed because does not contain a method named 'Put'. FullyQualifiedErrorId : PropertyNotFound CategoryInfo : InvalidOperation: (:), RuntimeException The property 'Enable' cannot be found on this object. Write-output "HiberbootEnabled is already DISABLED" Set-ItemProperty -Path $FindHiberbootEnabled.PSPath -Name "HiberbootEnabled" -Value 0 -Type DWORD -Force | Out-Null Write-output "HiberbootEnabled is Enabled. If ($FindHiberbootEnabled.HiberbootEnabled -eq 1) $FindHiberbootEnabled = Get-ItemProperty "hklm:\SYSTEM\CurrentControlSet\Control\Session?Manager\Power" -ErrorAction Silentl圜ontinue # This checks if HiberbootEnabled is equal to 1 Disabling Fast Startup, as this breaks Wake On LAN." Disabling Fast Startup, as this breaks Wake On LAN."ĮlseIf ((gwmi win32_operatingsystem).caption -match "Windows 10") If ((gwmi win32_operatingsystem).caption -match "Windows 8") # Disable Fast Startup in Windows 8-10 (Fast Startup breaks Wake On LAN) Write-output "EEELinkAdvertisement is already turned OFF" ![]() Write-output "$($env:computername) - SUCCESS - EEELinkAdvertisement set to $($FindEEELinkAd.EEELinkAdvertisement)" Write-output "$($env:computername) - ERROR - EEELinkAdvertisement set to $($FindEEELinkAd.EEELinkAdvertisement)" If ($FindEEELinkAd.EEELinkAdvertisement -eq 1) Fast Startup to DISABLED (Windows 8-10 only) "Only allow a magic packet to wake the computer" to CHECKED "Allow the device to wake the computer" to CHECKED #This script will check/set the following:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |