简体   繁体   中英

Enable Wol settings programmatically in windows service

Is there any way to set the WOL(wake-on-lan) settings programmatically with c#? I've found few ways with powershell script but needed with c#.

在此处输入图像描述

I need a way to check/uncheck the power management settings with c# in windows service. Is it only possible by running powershell script with c#?

You can try starting the powershell script from c#

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM