pondělí 24. května 2010

Hyper-V

Disable Firewall
netsh advfirewall set allprofiles state off
Allow Remote Desktop
netsh advfirewall firewall set rule group=”remote desktop” new enable=yes
Allow Remote Administration
netsh advfirewall firewall set rule group=”Remote Administration” new enable=yes
Allow Remote Firewall Administration
netsh advfirewall firewall set rule group=”Windows Firewall Remote Management” new enable=yes
Allow Ping
netsh firewall set icmpsetting 8
Connect to remote Server Core w/ out domain (this is done on management box)
cmdkey /add: /user: /pass:

Enabling Remote Access to Device Manager

Run MMC, then select File > Add or Remove Snap-in > Group Policy Object Editor, then select the Hyper-V Server 2008 R2 computer.

Once in the Group Policy Editor, it took me a while to find the PnP setting. The correct location is:  Computer Configuration\Administrative Templates\System\Device Installation\Allow remote access to the PnP interface.

Run gpupdate on Hyper-V Server 2008 R2 computer.

Powercfg při 40% baterie vypnout

40%
Powercfg -setdcvalueindex scheme_balanced sub_battery batlevelcrit  28
shutdown
Powercfg -setdcvalueindex scheme_balanced sub_battery batactioncrit 3

And from powershell, it's possible to monitor UPS state and battery levels...
get-wmiobject -class CIM_Battery -namespace "root\CIMV2"

Žádné komentáře: