Памятка админа. Windows Server 2008/2012/2016/2019. Полезное.

Windows 8/8.1/2012

Изменить профиль сети с Public на Private в Windows 8.1/Server 2012 R2

PSH> Get-NetConnectionProfile PSH> Set-NetConnectionProfile -InterfaceIndex Num -NetworkCategory Private

Windows Server 2019 core

Core Edition. Установка Features on Demand (FOD) for App Compatibility

The easiest method for installing the Feature on Demand (FoD) package is online via Windows Update. This can be done with the PowerShell command:

PSH> Add-WindowsCapability -Online -Name ServerCore.AppCompatibility~~~~

Features On Demand
Available Features on Demand
Install Windows Server 2019 Core Feature on Demand for App Compatibility

Автозагрузка в Windows Server Core (Hyper-V Server)

Самое простое — через реестр. Например, запуск Far Manager при старте:

reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Far /d "C:\Program Files\Far Manager\Far.exe"

Windows Registry Editor Version 5.00

"far"="\"C:\Program Files\Far Manager\Far.exe\""

Удалённый интерактивный сеанс Powershell

Enter-PSSession -ComputerName SERVERNAME

Управление производительностью процессора Windows Server Core

For example, to adjust the Boost Mode in the Power Saver plan and make that Power Saver is the current plan, run the following commands:

Powercfg -setacvalueindex scheme_current sub_processor PERFBOOSTMODE 1
Powercfg -setactive scheme_current

If your server requires ultra-low latency, invariant CPU frequency (e.g., for repeatable testing), or the highest performance levels, you might not want the processors switching to lower-performance states. For such a server, you can cap the minimum processor performance state at 100 percent by using the following commands:

Powercfg -setacvalueindex scheme_current sub_processor PROCTHROTTLEMIN 100
Powercfg -setactive scheme_current

If your server requires lower energy consumption, you might want to cap the processor performance state at a percentage of maximum. For example, you can restrict the processor to 75 percent of its maximum frequency by using the following commands:

Powercfg -setacvalueindex scheme_current sub_processor PROCTHROTTLEMAX 75
Powercfg -setactive scheme_current

For example, if your server requires ultra-low latency while still wanting to benefit from low power during idle periods, you could quicken the performance state increase for any increase in load and slow the decrease when load goes down. The following commands set the increase policy to «Rocket» for a faster state increase, and set the decrease policy to «Single». The increase and decrease thresholds are set to 10 and 8 respectively.

Powercfg.exe -setacvalueindex scheme_current sub_processor PERFINCPOL 2
Powercfg.exe -setacvalueindex scheme_current sub_processor PERFDECPOL 1
Powercfg.exe -setacvalueindex scheme_current sub_processor PERFINCTHRESHOLD 10
Powercfg.exe -setacvalueindex scheme_current sub_processor PERFDECTHRESHOLD 8
Powercfg.exe /setactive scheme_current

Статья на сайте Microsoft

Полезные ссылки

Windows Admin Center


Windows Admin Center runs in a web browser and manages Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 R2, Windows 10, and more through the Windows Admin Center gateway installed on Windows Server or Windows 10. The gateway manages servers by using Remote PowerShell and WMI over WinRM. The gateway is included with Windows Admin Center in a single lightweight .msi package that you can download.

Microsoft Software download portal


Включение / выключение Hyper-V

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All

Управление локальным/удалённым сервером Hyper-V

Probus ProHVM.
With ProHVM you can manage Hyper-V Servers and virtual machines both locally and remotely. ProHVM enables you to manage multiple versions of Hyper-V in one application, and from almost any version of windows. Use it on Servers, desktops and Core installations both 32 and 64-Bit. Using ProHVM you can connect to and manage Hyper-V servers in other domains and workgroups using different credentials.
It is very useful on installations of free Microsoft Hyper-V Server where you cannot run Microsoft Hyper-V manager locally. ProHVM Standard Is FREE for personal and commercial use!

Добавить комментарий