вторник, 16 июля 2024 г.

Working with user sessions in Windows from CLI

> query session   # get all sessions

> logoff ID    # close the session with specific ID

> tsdiscon    # disconnect user, but left it logged in

среда, 20 марта 2024 г.

The 'IIS 6 Metabase Compatibility' component is required. Install the component via Server Manager.

Start PowerShell as Administrator and do it:

PS C:\WINDOWS\system32> dism /online /Enable-Feature /FeatureName:IIS-IIS6ManagementCompatibility /all

четверг, 8 февраля 2024 г.

Как запустить удалённую командную консоль и полезные команды в ней

winrs -r:PCNAME cmd
 # see also winrm - Windows Remote Management (WinRM) 

WMIC: WMI command-line utility (https://learn.microsoft.com/en-us/windows/win32/wmisdk/wmic)
wmic cpu get loadpercentage
wmic ComputerSystem get TotalPhysicalMemory
wmic OS get FreePhysicalMemory