Showing archive results for 2016

Jan 29, 2016
Post comments count0
Post likes count0

PowerTip: Return remainder after dividing two numbers

Doctor Scripto

Summary: Use Windows PowerShell to return the remainder after dividing two numbers.  How can use Windows PowerShell to divide two numbers and only return the remainder (called a modulo operation)?  In Windows PowerShell, the modulo operator is the % sign. Here are a few examples of how to use it: PS C:\> 3 % 2 ...

Scripting Guy!Windows PowerShellPowerTip
Jan 29, 2016
Post comments count0
Post likes count0

How to contribute to PowerShell documentation

Doctor Scripto

Summary: Learn how to contribute to Windows PowerShell documentation via various community initiatives. Today’s guest blog post is by Microsoft premier field engineer, Ashley McGlone. He will be speaking at PowerShell Saturday, so come join us for a great day of PowerShell learning. For more information, see PowerShell Saturday in Tampa, FL, March...

Scripting Guy!Windows PowerShellguest blogger
Jan 28, 2016
Post comments count0
Post likes count0

PowerTip: Add number to existing variable value

Doctor Scripto

Summary: Learn how to easily add a number to an existing value stored in a variable and update the value of the variable.  How can I use Windows PowerShell to add a number to a value stored in a variable so that I can update the            value in that variable with the number and store the number back into the v...

Scripting Guy!Windows PowerShellPowerTip
Jan 28, 2016
Post comments count0
Post likes count0

Use PowerShell to parse event log for shutdown events

Doctor Scripto

Summary: Using the Windows PowerShell Get-EventLog cmdlet makes it easy to parse the system event log for shutdown events. One of the great things about central Florida during this time of the year is that there are certain fruits, such as red grapefruit, that are in season. This is also true of a certain variety of tangelo that is super sweet. How...

Scripting Guy!Windows PowerShellevents and monitoring
Jan 27, 2016
Post comments count0
Post likes count0

PowerTip: Use PowerShell to create repeating letters

Doctor Scripto

Summary: Learn how to easily create duplicate letters by using Windows PowerShell.  How can I use Windows PowerShell to easily create a specific number of letters in a repetitive fashion?  To create repetitive letters, all you need to do is to “multiply” them, for example: PS C:\> "a"*5 aaaaa

Scripting Guy!Windows PowerShellPowerTip