Let's say i want to capture an email address to a variable, then i want to take the part after the "@" and assign that to another variable. How?
Write-Host "Enter Email Address"
$mailbox = Read-Host
$domain = ?
Let's say i want to capture an email address to a variable, then i want to take the part after the "@" and assign that to another variable. How?
Write-Host "Enter Email Address"
$mailbox = Read-Host
$domain = ?