PowerShell for Windows Admins:

PowerShell v2


July 18, 2011  12:36 PM

Joining objects



Posted by: Richard Siddaway
Network, PowerShell v2, WMI

PowerShell doesn’t have the equivalent of an SQL Union statement that lets you join objects together. What you can do is use New-Object to create the joined output.

As an example that recently came up on a forum

$outputs 
				
								
				 

				Bookmark and Share

				   

				 0 Comments
				   

				  RSS Feed
				   

				  Email a friend

			
			
			

July 17, 2011  4:17 AM

Can I? Should I?



Posted by: Richard Siddaway
Automation, PowerShell v2

The question “Can I do X with PowerShell?” comes up very frequently.

PowerShell provides access to a huge range of functionality:

  • .NET
  • COM
  • WMI
  • Microsoft and third party products

Usually the answer is “Yes, you...


July 7, 2011  2:12 PM

July User group meeting details–PowerShell Remoting



Posted by: Richard Siddaway
PowerShell v2, User Group


When: Tuesday, Jul 26, 2011 7:30 PM (BST)


Where:

*~*~*~*~*~*~*~*~*~*

A look at PowerShell Remoting using individual commands, Invoke-Command and PowerShell sessions. How to configure remoting and get the best out of it

Notes


Richard...


July 6, 2011  1:13 PM

PowerShell and WMI webcast



Posted by: Richard Siddaway
PowerShell v2, WMI

I have been invited by PowerShell.com to give a webcast on 7 September 2011 @ 12 noon Central Time (6pm UK time).

The webcast is entitled Get the most from PowerShell and WMI

Register here


July 3, 2011  6:52 AM

Computer Report IV: Time server



Posted by: Richard Siddaway
Operating System, PowerShell v2, WMI

The batch file uses

net time /querysntp

which displays the name of the Network Time Protocol (NTP) server currently configured for the local computer or the one specified in ComputerName.

Unfortunately /querysntp  has been deprecated in later versions of...


July 3, 2011  5:17 AM

Computer Report III: Eventlog service



Posted by: Richard Siddaway
PowerShell v2, WMI

The batch file has a separate report for event log service status

wmic service where name="EventLog" get Name, SystemName, StartMode, Status

PowerShell translation

Get-WmiObject -Class Win32_Service -Filter "Name='Eventlog'" | Select Name, SystemName,...


July 1, 2011  1:56 PM

Computer report



Posted by: Richard Siddaway
Hardware, Operating System, PowerShell v2, WMI

A recent post on the powershell.com site asked about running a Windows command (batch) file through PowerShell against remote machines. The batch file was expected to produce a number of files of data in a folder structure based on computer name. This makes it difficult as we could in theory run...


June 30, 2011  3:18 PM

PowerShell web cast by Don Jones



Posted by: Richard Siddaway
PowerShell v2

Combining Output from Multiple Sources

Webcast: Combining Output from Multiple Sources REGISTER NOW

July 6, 2011, 12pm CST

Presented by: Don Jones

Learn how...


June 30, 2011  3:13 PM

Scripting Guy discusses PAM modules



Posted by: Richard Siddaway
PowerShell v2, PSAM, WMI

My codeplex project publishing PowerShell Admin Modules (PAM) is discussed in this post

Bookmark and Share     0 Comments     RSS Feed     Email a friend


June 29, 2011  12:42 PM

Network Connection Ids



Posted by: Richard Siddaway
Network, PowerShell v2, Windows 2008 R2, Windows 7, WMI

Yesterday I was looking at changing a Network connection id (the name that shows in Network and Sharing Center when you look at the adapters). I kept getting an error – either COM or number of arguments depending if I was running locally or remotely.

I eventually realised that I must...


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: