Showing archive results for September 2014

Sep 25, 2014
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Assess Memory Requirements

Doctor Scripto

Summary: Use Windows PowerShell to assess memory requirements.  How can I use Windows PowerShell to figure out the minimum, maximum, and average working set            requirements for processes on my workstation?  Use the Get-Process cmdlet to return the working set information. Select the working ...

Scripting Guy!Windows PowerShellPowerTip
Sep 25, 2014
Post comments count0
Post likes count0

Analyzing PowerShell Script Files

Doctor Scripto

Summary: Learn how to analyze Windows PowerShell script files. Microsoft Scripting Guy, Ed Wilson, is here. This morning I am sitting around sipping a cup of English Breakfast tea. I added some peppermint, spearmint, lemon grass, licorice root, and a cinnamon stick to the pot. The result is a very refreshing cup of tea. I am sitting on the back por...

Scripting Guy!Windows PowerShellscripting techniques
Sep 24, 2014
Post comments count0
Post likes count0

PowerTip: Use PowerShell and Graphical Tool to View Files

Doctor Scripto

Summary: Use Windows PowerShell and a graphical tool to view large files.  How can I use Windows PowerShell to easily see what files in a folder are the largest so I can clean up my file system?   Use the Get-ChildItem cmdlet to return the contents of a folder, select the name and length of the files, then     &nb...

Scripting Guy!Windows PowerShellPowerTip
Sep 24, 2014
Post comments count0
Post likes count0

Use Select-String Cmdlet in PowerShell to View Contents of Log File

Doctor Scripto

Summary: Use the Windows PowerShell cmdlet, Select-String, to view the contents of a log file.  Hey, Scripting Guy! I have a log file that I created by dumping process information from Get-Process. It is quite long, and I am trying to use Select-String to find the number of instances of a certain process. The problem is that when I find the in...

Scripting Guy!Windows PowerShellscripting techniques
Sep 23, 2014
Post comments count0
Post likes count1

PowerTip: Read First Line of File with PowerShell

Doctor Scripto

Summary: Learn how to read only the first line of a file by using Windows PowerShell.  How can I use Windows PowerShell to read only the first line of a file?  Introduced in Windows PowerShell 3.0, you can use the -First parameter, for example: Get-Content C:\fso\batteryReport.txt -First 1

Scripting Guy!PowerTipPowerShell