From 7af8c40f0a8fd8958eadddc10f3c64edc4c0bed8 Mon Sep 17 00:00:00 2001 From: Alex Kup <116945542+Lifailon@users.noreply.github.com> Date: Tue, 28 Feb 2023 01:55:00 +0300 Subject: [PATCH] Update README.md --- README.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 0fe6454..bbfe8e3 100644 --- a/README.md +++ b/README.md @@ -594,22 +594,6 @@ `& $NSSM_Path set $Service_Name description "Check performance CPU and report email"` изменить описание \ `& $NSSM_Path remove $Service_Name` удалить -### Storage -`Get-Command -Module Storage` \ -`Get-Disk` список логических дисков \ -`Get-Partition` отобразить разделы на всех дисках \ -`Get-Volume` список логичких разделов \ -`Get-PhysicalDisk` список физических дисков \ -`Initialize-Disk 1 –PartitionStyle MBR` инициализировать диск \ -`New-Partition -DriveLetter D –DiskNumber 1 -Size 500gb` создать раздел (выделить все место -UseMaximumSize) \ -`Format-Volume -DriveLetter D -FileSystem NTFS -NewFileSystemLabel Disk-D` форматировать раздел \ -`Set-Partition -DriveLetter D -IsActive $True` сделать активным \ -`Remove-Partition -DriveLetter D –DiskNumber 1` удалить раздел \ -`Clear-Disk -Number 1 -RemoveData` очистить диск \ -`Repair-Volume –driveletter C –Scan` Check disk \ -`Repair-Volume –driveletter C –SpotFix` \ -`Repair-Volume –driverletter C -Scan –Cimsession $CIMSession` - # SMB `Get-SmbServerConfiguration` \ `Set-SmbServerConfiguration -EnableSMB1Protocol $false -Force` отключить протокол SMB v1 \ @@ -658,6 +642,22 @@ `Get-ChildItem -Path "\\$srv\xl-share" -Recurse -Force | Clear-NTFSAccess` удалить все разрешения, без удаления унаследованных разрешений \ `Get-ChildItem -Path "\\$srv\xl-share" -Recurse -Force | Enable-NTFSAccessInheritance` включить NTFS наследование для всех объектов в каталоге +### Storage +`Get-Command -Module Storage` \ +`Get-Disk` список логических дисков \ +`Get-Partition` отобразить разделы на всех дисках \ +`Get-Volume` список логичких разделов \ +`Get-PhysicalDisk` список физических дисков \ +`Initialize-Disk 1 –PartitionStyle MBR` инициализировать диск \ +`New-Partition -DriveLetter D –DiskNumber 1 -Size 500gb` создать раздел (выделить все место -UseMaximumSize) \ +`Format-Volume -DriveLetter D -FileSystem NTFS -NewFileSystemLabel Disk-D` форматировать раздел \ +`Set-Partition -DriveLetter D -IsActive $True` сделать активным \ +`Remove-Partition -DriveLetter D –DiskNumber 1` удалить раздел \ +`Clear-Disk -Number 1 -RemoveData` очистить диск \ +`Repair-Volume –driveletter C –Scan` Check disk \ +`Repair-Volume –driveletter C –SpotFix` \ +`Repair-Volume –driverletter C -Scan –Cimsession $CIMSession` + ### iSCSI `New-IscsiVirtualDisk -Path D:\iSCSIVirtualDisks\iSCSI2.vhdx -Size 20GB` создать динамический vhdx-диск (для фиксированного размера -UseFixed) \ `New-IscsiServerTarget -TargetName iscsi-target-2 -InitiatorIds "IQN:iqn.1991-05.com.microsoft:srv3.contoso.com"` создать Target \