$colors = [System.ConsoleColor]::GetValues([System.ConsoleColor]); 1..100 | % { $var= ($_ %= $colors.Length ); Write-Host $var.ToString().PadRight($var * 10, '*') -ForegroundColor $colors[$var] -BackgroundColor $colors[$var -1 ] }
Subscribe to:
Post Comments (Atom)
How to find the last interactive logons in Windows using PowerShell
Use the following powershell script to find the last users to login to a box since a given date, in this case the 21st April 2022 at 12pm un...
-
Example... Add this to your controls namespace declarations xmlns:MyNameSpace="clr-namespace:MyNameSpace;assembly=MyAssembly" t...
-
I was wanting a clean way to convert a C# Boolean property on a view model into a javascript true / false bit of text for passing into our T...
No comments:
Post a Comment