Showing results for getting started - Scripting Blog [archived]

Jan 29, 2016
Post comments count0
Post likes count0

PowerTip: Return remainder after dividing two numbers

Doctor Scripto
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 28, 2016
Post comments count0
Post likes count0

PowerTip: Add number to existing variable value

Doctor Scripto
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 23, 2016
Post comments count0
Post likes count0

PowerTip: Create list of approved PowerShell verbs

Doctor Scripto
Doctor Scripto

Summary: Learn how to easily produce a list of approved Windows PowerShell verbs.  How can I find what verbs are approved for use in a Windows PowerShell function?  Use the Get-Verb cmdlet, and to make it easy to peruse, send the output to the Out-GridView cmdlet: get-verb | Out-GridView

Scripting Guy!Windows PowerShellscripting techniques
Jan 19, 2016
Post comments count0
Post likes count0

PowerTip: Find related cmdlet aliases

Doctor Scripto
Doctor Scripto

Summary: Learn how to find aliases related to a series of cmdlets. How can I find aliases that are related to a series of Windows PowerShell cmdlets, such as processes? Use the Get-Alias cmdlet and specify a wildcard character for the definition parameter, for example:Get-Alias -Definition "*process"

Scripting Guy!Windows PowerShellscripting techniques
Jan 17, 2016
Post comments count0
Post likes count0

Weekend Scripter: Find Information on the Hey, Scripting Guy! Blog

Doctor Scripto
Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, talks about how to find stuff on the Hey, Scripting Guy! Blog. Microsoft Scripting Guy, Ed Wilson, is here. It is hard to imagine that it is 2016. It’s even harder to imagine that I have been writing the Hey, Scripting Guy! Blog since 2008! With the current pace of twice a day posts, 7 days a week,...

Scripting Guy!Windows PowerShellWeekend Scripter