Monthly Archives: May 2015

Multiple expands

PowerShell outputs objects but sometimes you need just the values. The –Expandproperty parameter of select-object can pull the values from a property.  Compare: £> Get-VM | select Name Name—-AristaSphinxLx01W12R2DSCW12R2OD01W12R2SCDC01W12R2SUSW12R2TGTW12R2Web01W12R2Web02 with £> Get-VM | select -ExpandProperty NameAristaSphinxLx01W12R2DSCW12R2OD01W12R2SCDC01W12R2SUSW12R2TGTW12R2Web01W12R2Web02 In the first you … Continue reading

Posted in Powershell Basics | Leave a comment

Finding users that can change their password

Way back in this post https://richardspowershellblog.wordpress.com/2012/02/10/finding-users-who-cannot-change-password/ I showed how to discover those users who can’t change their passwords. I was recently asked how to find those users that can change their password. Active Directory doesn’t store this information directly but … Continue reading

Posted in PowerShell and Active Directory | Leave a comment

IPAM: 2 Reading data

Once you have your IPAM server configured you can start to read the data its collected. If you are working against a remote IPAM server than you need to create a CIM session to that machine before doing anything else. … Continue reading

Posted in Networking, Powershell | Leave a comment

Copy files over PS remoting sessions

One neat feature of the April 2015 WMF 5.0 preview is that you can copy files over a remoting session. First create a session to a remote machine $cs = New-PSSession -ComputerName W12R2SUS   Define the source and destination for … Continue reading

Posted in PowerShell v5 | 6 Comments

PowerShell Summit Europe 2015 – – sold out

The PowerShell Summit Europe 2015 is sold out.  Please be aware that we don’t maintain a waiting list as the Summit is a benefit of  PowerShell Association membership

Posted in European Summit, Powershell | Leave a comment

IPAM: 1 Installation and configuration

IPAM stands for IP Address Management. It’s a feature in Windows Server 2012 R2 that enables you manage your DHCP and DNS servers as a whole rather than at the individual service or server level. Installation of IPAM follows the … Continue reading

Posted in Networking, Powershell, Windows Server 2012 R2 | Leave a comment

PowerShell Summit Europe 2015–nearly sold out

There are a handful of places left for the PowerShell Summit Europe 2015. If you want to secure a place I recommend that you book very soon as we can’t extend capacity any further.

Posted in European Summit, Powershell | Leave a comment

Playing with the range operator

The range operator allows you to reference a range of numbers 1..10 is equivalent to 1,2,3,4,5,6,7,8,9,10 If you want anything other than numbers you’re stuck as the range operator only works with integers though you can have a decrementing list … Continue reading

Posted in Powershell Basics | Leave a comment

PowerShell DSC for Linux

PowerShell DSC for Linux has moved out of CTP and v1 is available for download from http://www.microsoft.com/en-us/download/details.aspx?id=46919 You will find more details at http://blogs.msdn.com/b/powershell/archive/2015/05/06/powershell-dsc-for-linux-is-now-available.aspx You will need to download OMI version 1.0.8-1 which is available from https://collaboration.opengroup.org/omi/documents.php?action=show&dcat=&gdid=32721 OMI has to … Continue reading

Posted in DSC, PowerShell v5 | Leave a comment

WMF 5.0 April 2015 preview – – software inventory logging

A software inventory module is now included with the April 2015 WMF 5.0 preview £> Get-Command -Module SoftwareInventoryLogging | select Name Name—-Get-SilComputerGet-SilComputerIdentityGet-SilDataGet-SilLoggingGet-SilSoftwareGet-SilUalAccessGet-SilWindowsUpdatePublish-SilDataSet-SilLoggingStart-SilLoggingStop-SilLogging Windows updates are always a good place to start poking into your systems £> Get-Command Get-SilWindowsUpdate -Syntax Get-SilWindowsUpdate … Continue reading

Posted in CDXML, CIM, PowerShell v5, WMFv5 | Leave a comment