Guest User

Untitled

a guest
Nov 21st, 2019
103
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $uppercaseLetterPos = 0
  2. $position = foreach ($character in $networkDisks.ToCharArray())
  3. {
  4.   if ([Char]::IsUpper($character))
  5.   {
  6.     #Change color of this letter
  7.     $uppercaseLetterPos -foreground red -nonewline
  8.   }
  9.  $uppercaseLetterPos ++
  10. }
RAW Paste Data