Статьи
Команды PowerShell
Microsoft Hyper-V
Установка роли Hyper-V в Windows Server
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart
Установка роли Hyper-V в Windows Desktop
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All
Вывести список виртуальных машин на хосте Hyper-V:
Get-VM
Windows PowerShell
(C) Корпорация Майкрософт (Microsoft Corporation). Все права защищены.
PS C:\Users\Администратор> Get-VM | Select Name, Id
Name Id
---- --
VM1 93028b8b-9d8a-4d72-abf9-35945a9dd492
VM2 f8921c74-6840-4c8b-a9b5-94545ee58f8f
VM3 ae96f07f-c772-41b3-a920-ca0c07db13ac
VM4 6f708b4a-14b0-4854-b21f-bae2e888ee5f
VM5 a03dcd4e-c48b-4779-b11a-bf4aef954c8c
Удаленный доступ PowerShell и SSH
ssh <ip-address-server> - где вторым параметром ваш сервер
ssh user@192.168.1.17
Команда расчет хеш суммы файла
Get-FileHash
Get-FileHash -Algorithm SHA256 'C:\Windows\notepad.exe' | Format-List
Get-FileHash -Algorithm SHA512 'C:\Windows\notepad.exe' | Format-List
Get-FileHash -Algorithm MD5 'C:\Windows\notepad.exe' | Format-List
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\WINDOWS\system32> Get-FileHash -Algorithm MD5 'C:\Windows\notepad.exe' | Format-List
Algorithm : MD5
Hash : 6F51BCABF1B2B34AD7E670AEE6DA451F
Path : C:\Windows\notepad.exe
Примечание: Ссылка на Microsoft Docs по командам PowerShell