Monthly Archives: February 2015

PowerShell Europe 2015 Agenda

As has been announced registration for the PowerShell Summit Europe 2015 opens on 27 February 2015. http://powershell.org/wp/2015/02/20/powershell-summit-europe-registration/ Other details on the Summit can be found here:  http://powershell.org/wp/community-events/summit/powershell-summit-europe-2015/ The agenda for the Summit can be found on the event site for … Continue reading

Posted in European Summit, Powershell | Leave a comment

Change to DSC Resource Kit release strategy

The PowerShell team blog http://blogs.msdn.com/b/powershell/archive/2015/02/13/new-and-improved-resource-kit.aspx details the new resources and bug fixes in wave 10 of the DSC resource kit. This is a much smaller release than the of late but includes new resources for initializing and formatting disks IMPORTANT … Continue reading

Posted in Desired State Configuration, PowerShell v5, WMFv5 | Leave a comment

DSC Resource Kit Wave 10

The next release (wave 10) of the Desired State Resource Kit is available. You can download the whole of the resource kit from https://gallery.technet.microsoft.com/scriptcenter/DSC-Resource-Kit-All-c449312d This version includes the IIS resources that were missing in wave 9

Posted in PowerShell v5, WMFv5 | Leave a comment

WMF 5.0 February 2015 preview

A new preview of Windows Management Framework 5.0 (PowerShell) is available. See http://blogs.msdn.com/b/powershell/archive/2015/02/18/windows-management-framework-5-0-preview-february-2015-is-now-available.aspx for details. The release notes indicate which new features are considered stable and which are still regarded as experimental and therefore subject to change. Downloads are available … Continue reading

Posted in PowerShell v5, WMFv5 | Leave a comment

Copy a file with WMI

A question came up on the forum about copying files with CIM (WMI). I normally use Copy-Item rather than CIM as its easier. The questioner was using CIM_LogicalFile when I’ve normally used CIM_DataFile so I decided to take a look … Continue reading

Posted in CIM, File system, PowerShell and WMI | Leave a comment

Shutting down machines in parallel

My test lab is a set of virtual machines running on a Lenovo w1510 laptop. When I’ve finished working for the day I want to shut down the virtual machines and the laptop. I may have anywhere between 2 and … Continue reading

Posted in Hyper-V, Powershell | Leave a comment

Testing AD replication

I thought that using a workflow with its foreach –parallel construct would be a good way to test AD replication. I found that I got double the results – the foreach seemed to go to each machine twice. Eventually decided … Continue reading

Posted in PowerShell and Active Directory | Leave a comment

Typing variables

I was recently asked a question about typing variables after thinking about it came up with this demonstration. Create a variable with an integer value £> $a = 2£> $a.GetType() IsPublic IsSerial Name——– ——– —-True     True     Int32 AS you would … Continue reading

Posted in Powershell Basics | Leave a comment

Modifying AD attribute – PO Box

I was left a question on this post – https://richardspowershellblog.wordpress.com/wp-admin/post.php?post=2762&action=edit Asking how to modify the PO Box value for a user account.  This attribute can be set on the Address tab of AD Users and Computers but isn’t directly visible … Continue reading

Posted in PowerShell and Active Directory | Leave a comment

Starting VMs based on WSUS state

I use WSUS in my lab to update machines – means I only have to download updates once. The issue is that I have to start the VMs so they can communicate with the WSUS server. WSUS will start to … Continue reading

Posted in Hyper-V, Powershell, WSUS | Leave a comment