Share via


Powercfg on a remote machine

Question

Thursday, January 31, 2019 2:15 AM

Hi All ,

How i can run the command " powercfg /batteryreport " on a remote machine ?

Thanks

Immer

All replies (2)

Thursday, January 31, 2019 2:28 AM ✅Answered

Hello Dear,

> Get info about remote power pc settings:

PsExec.exe \rcomputer  powercfg -query

> Disable sleep timeout:

PsExec.exe \rcomputer  powercfg -change -standby-timeout-ac 0

> Other interesting options:

powercfg -change -monitor-timeout-ac 0

powercfg -change -monitor-timeout-dc 0

powercfg -change -disk-timeout-ac 0

powercfg -change -disk-timeout-dc 0

powercfg -change -standby-timeout-ac 0

powercfg -change -standby-timeout-dc 0

powercfg -change -hibernate-timeout-ac 0

powercfg -change -hibernate-timeout-dc 0

Hope it will helpful for you.

Thanks & Best Regards,
Abhishek Sachdeva
Please mark this answer if it is helpful for you.


Thursday, January 31, 2019 2:47 AM ✅Answered

你好,

谢谢你的提问。

请问你是否拥有域环境,或者说你所要远程的机器是域中的机器吗?

1.你可以使用PsExec工具来实现远程输入。

psexec \\computer_name -u username -p passwordpowercfg /batteryreport

/en-us/sysinternals/downloads/psexec

从这里去进行下载。

2.如果你已经在一个域环境中,直接运行以下命令会打开一个远程命令shell。

winrs -r:PCNAME cmd

如果想要结束远程请使用退出退出。

3. power'shell也可以作为一个备选方案。

最好的祝福,

lee

Just do it.