Create Shares For All Drives
$Drives = (Get-PSDrive).Name -match '^[a-z]$' | foreach { New-SmbShare -Name $_ -Path ("{0}:\" -f $_) }
Points:
- Format strings:
("{0}:\" -f $_ - All other
PSDrives have names with more than one letter unless they are mapped network drives.