PowerShell for Windows Admins:

October, 2011


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 31, 2011  2:03 PM

Multiple value query in WQL



Posted by: Richard Siddaway
PowerShell, WMI

A simple query that demonstrates how to query for multiple values. We want to stop the running services that are running where the names a like BITS and WinRm

Get-WmiObject -Class Win32_Service -Filter "State='Running' AND Name LIKE '%BITS%' OR Name LIKE '%WinRM%'" |


October 31, 2011  1:46 PM

Logging non-contactable systems



Posted by: Richard Siddaway
PowerShell, WMI

In this post - http://msmvps.com/blogs/richardsiddaway/archive/2011/10/23/1760058.aspx – I showed how to get the date of the...


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  2:09 PM

PowerShell, Storage, WMI and Windows Server 8



Posted by: Richard Siddaway
PowerShell 3, Windows 8, WMI

A must read if you are interested in any of these

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 25, 2011  3:19 PM

Minor rant



Posted by: Richard Siddaway
Opinion

Why do software suppliers – Adobe with Acrobat Reader & Oracle with Java are the worst culprits – insist on trying to install their browser toolbar & change my default search engine??

What’s worse is that they make the default action to install it & I have to remember...


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...


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: