Showing results for September 2015 - Page 4 of 12 - Scripting Blog [archived]

Sep 23, 2015
0
0

Extending Objects with PowerShell: Week of the Year

Doctor Scripto
Doctor Scripto

Summary: Ed Wilson talks about adding members to an object with Windows PowerShell to get the week of the year.Microsoft Scripting Guy, Ed Wilson, is here. One of the cool things about Windows PowerShell is that it is configurable. Not merely configurable, but amazingly flexible. For example, when I look at a DateTime object, I see the following:PS...

Scripting Guy!Windows PowerShellscripting techniques
Sep 22, 2015
0
0

PowerTip: Find Number of Hours in Number of Days

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to find the number of hours in a number of days.  How can I use Windows PowerShell to easily figure out how many hours are in 30 days without            doing any multiplication?  Use New-TimeSpan to create a timespan object for 30 days. The output will tell the numbe...

Scripting Guy!Windows PowerShellPowerTip
Sep 22, 2015
0
0

Break Text File into Chunks with PowerShell

Doctor Scripto
Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, talks about breaking the contents of a text file into chunks with Windows PowerShell.  Hey, Scripting Guy! The other day, you tweeted Get First 140 Characters from String with PowerShell. That is fine, but what about the rest of the text? I mean, if I want to break a text file into lines of 140 char...

Scripting Guy!Windows PowerShellscripting techniques
Sep 21, 2015
0
0

PowerTip: Use PowerShell to Determine Host

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to find your PowerShell host.  How can I use Windows PowerShell to determine what PowerShell host is being used?  Use the Get-Host cmdlet. To get only the name of the host, use the following syntax: (Get-Host).name

Scripting Guy!Windows PowerShellPowerTip
Sep 21, 2015
0
0

Talk Like a Pirate—The Video

Doctor Scripto
Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, talks a bit about the script he wrote to translate pirate speech by using Invoke-WebRequest.Microsoft Scripting Guy, Ed Wilson, is here. Today I present a video where I talk a bit about my script to submit data to a webpage and receive information back from that page. These sorts of web projects seem to ...

Scripting Guy!Windows PowerShellscripting techniques