-
One of the questions on tonight’s Live Meeting concerned the compatibility between remoting on PowerShell v2 and PowerShell v3 CTP 2 The difference is that v3 uses a WSMAN 3.0 stack but v2 uses 2.0 I used two machines: Windows 2008 R2 SP 1 with PowerShell...
-
Do you know which users are logged on to your systems? Want to find out? function get-logedonuser { param ( [string] $computername = $env:COMPUTERNAME ) Get-WmiObject -Class Win32_LogonSession -ComputerName $computername | foreach { $data = $_ $id = Read...
-
When: Thursday, Dec 15, 2011 7:30 PM (GMT) Where: Virtual *~*~*~*~*~*~*~*~*~* Discover how to use the WSMAN cmdlets to retreive WMI information and see a demo of the new WMI API's CIM cmdlets in PowerShell v3 CTP 2 Notes Richard Siddaway has invited...
-
The November meeting http://msmvps.com/blogs/richardsiddaway/archive/2011/11/05/powershell-user-group-22-november.aspx was “What’s new in PowerCLI 5?” presented by Jonathan Medd The recording of Jonathan’s presentation is available from https://skydrive...
-
Virtualisation is a great technique for creating demo labs. I took my laptop with a bunch of VMs of Windows 8/Server 8 to the PowerShell Deep Dive. Normally I run my “server” laptop and my development laptop on a switch or connected via a cross...
-
This builds on adding an IPv4 address - http://msmvps.com/blogs/richardsiddaway/archive/2011/10/24/hosts-file-add-a-record.aspx function add-IPv6hostfilecontent { [ CmdletBinding ( ) ] param ( [ parameter ( Mandatory = $true ) ] [string] $IPAddress ,...
-
A comment was left on one of the articles in my recent series on working with the hosts file asking about using IPv6. I’ve not used it really as I’ve never had any reason but it seems a good idea to dig into it a bit as IPv6 is enabled by default...
-
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 =...
-
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...
-
I got a fun call last night – PluralSight has a regular webcast but this week’s presenter has had personal issues – and would I like to do the webcast? Well SURE! When don’t I like the chance to talk about PowerShell!?!? As it turns out, this is...
-
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...
-
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}\....
-
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...
-
I was working with the new CIM cmdlets in PowerShell 3 CTP and mistyped a command (as I thought) Get-Cimclass win32_operatingsystem | select -ExpandProperty methods | select -f 1 select -ExpandProperty Qualifiers My surprise was because of the...
-
Some more sessions have been announced for the Deep Dive http://www.theexpertsconference.com/europe/2011/powershell-deep-dive/session-abstracts/ The speaker line up includes: Aleksandar Nikolic Shay Levy Kirk Munro Dmitry Sotnikov Jeffery Hicks James...