PowerShell Lab Complete!

You've mastered storage management with PowerShell!

Take the Quiz → Try GUI Lab
Tip: Use Get-Help <cmdlet> to learn about any command. Try Get-Help Get-Disk -Examples!
Pipeline Example:
Chain commands together:
Get-Disk 2 | Initialize-Disk -PartitionStyle GPT -PassThru | New-Partition -UseMaximumSize

Lab Tasks

1. List Physical Disks
View all physical disks connected to the server.
Get-Disk
2. Initialize a Disk
Initialize Disk 2 with GPT partition style.
Initialize-Disk -Number 2 -PartitionStyle GPT
3. Create a Partition
Create a new partition on Disk 2 using all available space.
New-Partition -DiskNumber 2 -UseMaximumSize -AssignDriveLetter
4. Format the Volume
Format the new volume with NTFS and label it "Backup".
Format-Volume -DriveLetter E -FileSystem NTFS -NewFileSystemLabel "Backup"
5. View Volumes
List all volumes on the server.
Get-Volume
6. Create an SMB Share
Create a network share for the Backup folder.
New-SmbShare -Name "Backup$" -Path "E:\Backup" -FullAccess "Administrators"