I've been sharing some Valentine's Day themed fun on Twitter today. This one is a bit too long to fit into a tweet.
Manage and Report Active Directory, Exchange and Microsoft 365 with
ManageEngine ADManager Plus - Download Free Trial
Exclusive offer on ADManager Plus for US and UK regions. Claim now!
ManageEngine ADManager Plus - Download Free Trial
Exclusive offer on ADManager Plus for US and UK regions. Claim now!
$text = "Happy$([char]3)Valentine's$([char]3)Day" $text.ToCharArray() | foreach -begin { $colors = "Cyan","Magenta","Yellow","White","Red","DarkRed","Green" } -process { write-host $_ -NoNewline -ForegroundColor ($colors| Get-Random)} -end {"`n"}
To get the full effect you need to run in the console and not the ISE. It works in the ISE but you won't get the "special" characters.