PowerShell for Windows Admins:

PowerShell v2


October 31, 2011  4:52 PM

Reading the hosts file–revised



Posted by: Richard Siddaway
Network, PowerShell v2

Quick revision to the post on reading the hosts file

Bookmark and Share     0 Comments     RSS Feed     Email a friend

October 30, 2011  2:38 PM

Clearing hosts file



Posted by: Richard Siddaway
Network, PowerShell v2

We seen how to delete a single entry from the hosts file – this is how we clear all entries

function clear-hostfilecontent {            
 
				
								
				 

				Bookmark and Share

				   

				 0 Comments
				   

				  RSS Feed
				   

				  Email a friend

			
			
			


October 26, 2011  1:49 PM

Remove a host file record



Posted by: Richard Siddaway
Network, PowerShell v2

Next up is removing a record from a hosts file

function remove-hostfilecontent {
 [CmdletBinding			


October 24, 2011  12:52 PM

Hosts file – add a record



Posted by: Richard Siddaway
Network, PowerShell v2

We’ve seen how to read the Hosts file – this is how we add a record

function add-hostfilecontent {            
 [
				
								
				 

				Bookmark and Share

				   

				 0 Comments
				   

				  RSS Feed
				   

				  Email a friend

			
			
			


October 24, 2011  11:49 AM

PowerShell and WMI – new MEAP release



Posted by: Richard Siddaway
PowerShell v2, WMI

Four new chapters have been added to the MEAP  (early access) for PowerShell and WMI

Chapter 14 - Users and security

Chapter 15 - Logs, jobs, and performance

Chapter 16  - Hyper-V

Chapter 17 - Windows Remote Management

 

Chapter...


October 23, 2011  11:08 AM

Reading the hosts file



Posted by: Richard Siddaway
Network, PowerShell v2

Normally I ignore the Hosts file but my development laptop isn’t a member of my test domain – a number of reasons for this which I won’t go into.

This means that when I want to RDP to a machine in the test domain I have to use the IP address. A bit awkward but not too bad until I...


October 19, 2011  2:08 PM

Discovering NIC that has a specific IP Address



Posted by: Richard Siddaway
Deep dive, Network, PowerShell v2, WMI

One question (of many) that came up at that European Deep Dive (more on that later) was finding the particular network adapter associated with an IP Address.  The problem is that IP Address (in the later versions of Windows) is a string array in WMI

Get-WmiObject -Class...


October 4, 2011  1:27 PM

Win32_OSRecoveryConfiguration class



Posted by: Richard Siddaway
PowerShell v2, WMI

The Win32_OSRecoveryConfiguration class represents the types of information that will be gathered from memory when the operating system fails. This includes boot failures and system crashes.

One very important parameter is DebugInfoType  which sets the type of debugging information...


September 27, 2011  1:49 PM

WMI provider and MOF file



Posted by: Richard Siddaway
PowerShell v2, WMI

WMI is installed as a series of providers. The information on creating the classes comes from MOF files. I was recently asked about a problem with a specific class & could it be restored – in this case it was easier to rebuild WMI as the provider created a large part of the root\cimv2...


September 25, 2011  1:35 PM

Proxy function for Get-WmiObject



Posted by: Richard Siddaway
PowerShell v2, WMI

There are many people who don’t like to see the WMI system properties

PS> Get-WmiObject -Class Win32_OperatingSystem | select __*


__GENUS          : 2


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: