Sign in
|
Join PowerShell.com!
|
Help
Home
PowerTips
Ask the Experts
Forums
Webcasts
Blogs
eBookV2
Script Library
Twitter Grid
Featured Posts
Dreaming in PowerShell
Don Jones
Code MarkUp Tool
Directory
October 2011 - Richard Siddaway's Blog
Share
|
Recent Posts
Where-object in PowerShell v3
UK PowerShell group–next two meetings
Using Invoke-WmiMethod to set the DNS servers
TCP/IP Alternative Configurations: pt IV reset to static address
TCP/IP Alternative Configurations: pt III set the alternative configuration
Archives
May 2012 (23)
April 2012 (21)
March 2012 (65)
February 2012 (94)
January 2012 (53)
December 2011 (17)
November 2011 (11)
October 2011 (15)
September 2011 (39)
August 2011 (57)
July 2011 (58)
June 2011 (65)
May 2011 (6)
Tags
.NET
Active Directory
Books
COM
Deep Dive
File System
IT Security
Networking
Office 2010
Outlook
Powershell
PowerShell and Active Directory
PowerShell and SQL Server
PowerShell and WMI
PowerShell Basics
PowerShell User Group
PowerShell V2
PowerShell V3
Remoting
Scripting Games
Strings
Technology
Windows 7
Windows Server 2008 R2
Windows Server 8
View more
Sort by:
Most Recent
|
Most Viewed
|
Most Commented
Reading the hosts file–revised
Quick revision to the post on reading the hosts file http://msmvps.com/blogs/richardsiddaway/archive/2011/10/23/reading-the-hosts-file.aspx . I wanted to be able to display the whole file function get-hostfilecontent { param ( [switch] $all ) $file =...
Published
Mon, Oct 31 2011 5:51 PM
by
Richard Siddaway's Blog
Filed under:
PowerShell V2
,
Networking
Multiple value query in WQL
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 '...
Published
Mon, Oct 31 2011 3:04 PM
by
Richard Siddaway's Blog
Filed under:
PowerShell and WMI
,
PowerShell Basics
Logging non-contactable systems
In this post - http://msmvps.com/blogs/richardsiddaway/archive/2011/10/23/1760058.aspx – I showed how to get the date of the last update applied to a system. A comment was posted asking how to log machines that can’t be contacted "." Read...
Published
Mon, Oct 31 2011 2:45 PM
by
Richard Siddaway's Blog
Filed under:
PowerShell and WMI
Clearing hosts file
We seen how to delete a single entry from the hosts file – this is how we clear all entries function clear-hostfilecontent { [ CmdletBinding ( ) ] param ( ) $file = Join-Path -Path $( $env:windir ) -ChildPath "system32\drivers\etc\hosts" if...
Published
Sun, Oct 30 2011 3:39 PM
by
Richard Siddaway's Blog
Filed under:
PowerShell V2
,
Networking
PowerShell, Storage, WMI and Windows Server 8
A must read if you are interested in any of these http://blogs.technet.com/b/server-cloud/archive/2011/10/14/windows-server-8-standards-based-storage-management.aspx WMI is getting everywhere these days – better learn it quick Read More...
Published
Wed, Oct 26 2011 3:08 PM
by
Richard Siddaway's Blog
Filed under:
PowerShell and WMI
,
PowerShell V3
,
Windows Server 8
Remove a host file record
Next up is removing a record from a hosts file function remove-hostfilecontent { [ CmdletBinding ( ) ] param ( [ parameter ( Mandatory = $true ) ] [ ValidatePattern ( "\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b" ) ] [string] $IPAddress , [ parameter...
Published
Wed, Oct 26 2011 2:51 PM
by
Richard Siddaway's Blog
Filed under:
PowerShell V2
,
Networking
Minor rant
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...
Published
Tue, Oct 25 2011 4:19 PM
by
Richard Siddaway's Blog
Filed under:
Rant
PowerShell and WMI – new MEAP release
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 17 deals...
Published
Mon, Oct 24 2011 3:07 PM
by
Richard Siddaway's Blog
Filed under:
PowerShell and WMI
Hosts file - add a record
We’ve seen how to read the Hosts file – this is how we add a record function add-hostfilecontent { [ CmdletBinding ( SupportsShouldProcess = $true ) ] param ( [ parameter ( Mandatory = $true ) ] [ ValidatePattern ( "\b\d{1,3}\.\d{1,3}\.\d{1,3}\....
Published
Mon, Oct 24 2011 3:07 PM
by
Richard Siddaway's Blog
Filed under:
PowerShell V2
,
Networking
Reading the hosts file
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...
Published
Sun, Oct 23 2011 12:07 PM
by
Richard Siddaway's Blog
Filed under:
PowerShell V2
,
Networking
Discovering NIC that has a specific IP Address
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...
Published
Wed, Oct 19 2011 3:11 PM
by
Richard Siddaway's Blog
Filed under:
PowerShell and WMI
,
Networking
,
Deep Dive
European Deep dive approaching
Next Monday & Tuesday sees the first European Deep Dive - if you are a PowerShell fan its where you need to be. The speaker line up is available from http://blogs.msdn.com/b/powershell/archive/2011/10/06/powershell-deep-dive-lineup...
Published
Wed, Oct 12 2011 2:14 PM
by
Richard Siddaway's Blog
Filed under:
Deep Dive
,
Powershell
Deep Dive line up
The line up for this months Deep Dive has been announced http://blogs.msdn.com/b/powershell/archive/2011/10/06/powershell-deep-dive-lineup.aspx Looks good Read More...
Published
Thu, Oct 06 2011 1:27 PM
by
Richard Siddaway's Blog
Filed under:
Deep Dive
,
Powershell
Win32_OSRecoveryConfiguration class
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...
Published
Tue, Oct 04 2011 2:26 PM
by
Richard Siddaway's Blog
Filed under:
PowerShell and WMI
PowerShell 3 and DHCP: scope options
In this post - http://msmvps.com/blogs/richardsiddaway/archive/2011/09/23/powershell-3-and-dhcp-2-scopes.aspx - we created a new DHCP scope. Now we need to set some options on the scope. One of the main options we need to set is the DNS server We can...
Published
Sun, Oct 02 2011 2:20 PM
by
Richard Siddaway's Blog
Filed under:
PowerShell V3
,
Windows Server 8
,
DHCP
Copyright 2011 PowerShell.com. All rights reserved.