Showing results for July 2013 - Page 11 of 13 - Scripting Blog [archived]

Jul 6, 2013
0
0

PowerTip: Counting Characters with PowerShell

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to count characters, words, and lines in a file. How can I count the number of characters, words, and lines in a text file by using Windows PowerShell? Use the Measure-Object cmdlet; specify the -Line, -Character, and -Word switched parameters; and use the Get-Content ...

Scripting Guy!Windows PowerShellPowerTip
Jul 6, 2013
0
0

Weekend Scripter: A Little PowerShell Help Here…Please?

Doctor Scripto
Doctor Scripto

Summary: Guest blogger, Matt Tisdale, talks about adding Help text to Windows PowerShell functions. Microsoft Scripting Guy, Ed Wilson, is here. Yesterday I introduced Matt Tisdale as the guest blogger. Guess what? He’s back today!  Dude!! Sweet!!! Here is Matt’s post from yesterday: Optimize Performance of AD DS Queries via PowerS...

Scripting Guy!Windows PowerShellscripting techniques
Jul 5, 2013
0
0

PowerTip: Use PowerShell to Find Performance of Processes

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to quickly find the performance of process CPU utilization.  How can I quickly and easily find the minimum, maximum, and average CPU utilization by various processes?  Open Windows PowerShell with Admin rights. Use the Get-Process cmdlet, pipe the results to the Measure-Object cmdlet, ch...

Scripting Guy!Windows PowerShellPowerTip
Jul 5, 2013
0
0

Optimize Performance of AD DS Queries via PowerShell

Doctor Scripto
Doctor Scripto

Summary: Guest blogger, Matt Tisdale, talks about using the Measure-Command cmdlet to optimize an AD DS query. Microsoft Scripting Guy, Ed Wilson, is here. I love to attend events where I can meet new people and get reacquainted with those I have previously met. I especially love meeting people and hearing how they use Windows PowerShell. One ...

Scripting Guy!Windows PowerShellscripting techniques
Jul 4, 2013
0
0

PowerTip: Use PowerShell to Copy Items and Retain Folder Structure

Doctor Scripto
Doctor Scripto

Summary: Copy items in a folder and retain the container with Windows PowerShell 3.0.  How can I use Windows PowerShell 3.0 to copy a folder structure from a drive to a network share, and retain the original structure?  Use the Copy-Item cmdlet and specify the –Container switched parameter: Copy-Item c:\fso &ndas...

Scripting Guy!Windows PowerShellPowerTip