tamapolitical.blogg.se

Group policy power options
Group policy power options











group policy power options

Set arrayNetCards = objWMIService.ExecQuery ("Select * From Win32_NetworkAdapterConfiguration Where IPEnabled = True") StrPnPCapabilitiesKeyName = "SYSTEM\CurrentControlSet\Control\Class\!\\.\root\cimv2") ' This script enables WOL and sets magic packets as the wakeup type.ĭim arrayNetCards 'Array of all connected NICsĭim strPnPCapabilitesKeyName 'Key Specific to the Network Adapters in CurrentControlSetĭim strPnPCapabilitesKeyName001 'Key Specific to the Network Adapters in ControlSet001

  • All machines in my environment are a single Dell model (I've used this script with multiple models, but worth mentioning).
  • You'll want to adjust that unless you have some method of deploying it.
  • This script is used during OSD, so it was written (read: edited - I forget where the source came from, thanks whoever you are) to run on the local machine ONLY.
  • I'll post my script, but some points to get out of the way first: It will work more often but may still have issues. Here is another script that uses advanced settings.

    group policy power options

    Sometimes that script will work assuming everything else is set correctly. XP, WS2003, Vista and later all use slightly different settings. The powerstate settings are different for different OSs. We need to set first the wakeup state then enable the adapter. When we use PoweCfg it sets these according to the driver and not just a registry setting. Each adapter can use a slightly different technique. It works for outbound but not when a remote connect asks for the system. It sets the Power settings that allow a local connection to wake up the adapter. Chen - that script does not set WOL settings.













    Group policy power options