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