PowerShell for Windows Admins:

January, 2013


January 16, 2013  12:18 PM

PowerShell wins award

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

PowerShell has won one on InfoWorld’s Technology of the Year awards for 2013

See

January 16, 2013  11:02 AM

Workflow article 4

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

The next in the series of articles on PowerShell workflows that are appearing on the Scripting Guy blog has been published.

The articles in the series that have been published are:


January 15, 2013  3:38 PM

Updating Help on PowerShell v3

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

One of the new features in PowerShell v3 is the capability to update the help files. In fact you have to do this because PowerShell v3 doesn’t ship with any help files. Since Windows 8 RTM’d there have been a succession of new help files released.

I discovered one of my netbooks...


January 11, 2013  1:40 PM

Select-string – keeping in context

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

 

Today’s question involves using the Context parameter:

It's probably just me, but I've never gotten the...


January 9, 2013  11:57 AM

Select-String – finding the first and last matches

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Today's question concerns finding the first and last matches in a file

Sometimes, I need to make two passes at seeking content in this file, once for the first occurrence; and a second grep for obtaining the last occurrence of a phrase. After the second pass, I figure placing the...


January 9, 2013  11:18 AM

Workflow article 3

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

 

The next in the series of articles on PowerShell workflows that are appearing on the Scripting Guy blog has been published.

The articles in the series that have been published are:


January 8, 2013  3:32 PM

Select-String–information on matching files

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Following on from yesterday’s post this is the second question:

Since I'm recursively searching thru files to find matching phrases, how can I obtain other directory service information about the matching files file(s) - this is more of a methodology technique question because I...


January 7, 2013  4:41 PM

Select-String scenarios – fixed columns

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

  I had some questions come in after mu recent post regarding select-string. I’ll answer them as a series of posts. First off: I'm recursively searching thru many files, and want to pull out specific data in 'fixed column' positions from the line(s) that match the phrase I'm...


January 5, 2013  7:10 AM

Select-String confusion

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

I have seen a lot of confusion recently over the use of Select-String.

One mis-conception is that you need to use Get-Content to pipe the file contents into Select-String.  Not so. Select-String will read the file for you.

If you just want to scan the files in a single...


January 5, 2013  6:20 AM

Number of processors in a box

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

WMI enables you find the number of processors in your system:

PS> Get-WmiObject -Class Win32_ComputerSystem | fl Number*


NumberOfLogicalProcessors : 2
NumberOfProcessors        : 1

This works fine for Windows...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: