header image

Archive for March, 2014

Continue please

Posted by: | March 18, 2014 | 1 Comment |

I needed to be able to skip processing in a loop and remembered that the continue command suspends the loop processing and immediate goes back to the top of the loop. I thought a quick look at how it works in different types of loop would be worthwhile. These all work and produce the same […]

under: PowerShell Basics

WMI type accelerators

Posted by: | March 18, 2014 | No Comment |

Something you don’t see used very often but that you need to be aware of are the WMI type accelerators. These were introduced as part of PowerShell 1.0 and have continued to be available in later versions.  A type accelerator is a shortcut to using a .NET class – remember everything in PowerShell is >NET […]

under: PowerShell and CIM, PowerShell and WMI, PowerShell original

Multiple book offers

Posted by: | March 17, 2014 | No Comment |

There are multiple money off offers from Manning for you to consider. Firstly – tomorrow March 18 2014: Half off Learn Active Directory Management in a Month of Lunches. Use code dotd031814au at www.manning.com/siddaway3/ The deal will go live at Midnight US ET and will stay active for ~48 hours. Some other books in the […]

under: Books

Select is a filter

Posted by: | March 16, 2014 | No Comment |

This is a common scenario: Get-WmiObject -Class Win32_Logicaldisk | select Name, Size, Freespace You will see a display with three properties – turning them into a list for ease of display: Name      : C: Size      : 248951861248 Freespace : 171627724800 What this means is that you’ve got an object with 3 properties. £> Get-WmiObject -Class […]

under: PowerShell Basics

Learn Active Directory Management in a MoL is 43% off through April 3, 2014 with code pbradm at www.manning.com/siddaway3/

under: Active Directory, Books, PowerShell and Active Directory, PowerShell original

If I run Get-Module –ListAvailable on my Windows 8.1 system (PowerShell 4.0) I find a total of 58 modules installed in $pshome\modules i.e. C:\windows\system32\WindowsPowerShell\v1.0\Modules These are the modules installed as part of PowerShell. Right? Wrong? Compare this with a Windows 7 machine that’s been upgraded to PowerShell 4.0.  Repeating the exercise I find a grand […]

under: PowerShell V3, PowerShell v4

Manning have released the print edition of Learn Active Directory Management in a Month of Lunches – http://www.manning.com/siddaway3/ – joining the pdf version released earlier.  ePub & Kindle versions scheduled for 20 March

under: Books, PowerShell and Active Directory

The issue that I discussed in these posts: http://richardspowershellblog.wordpress.com/2013/11/08/get-aduser-issue-2/ http://richardspowershellblog.wordpress.com/2013/11/06/get-aduser-issue/ With Get-ADUser and –Properties * in a forest level below 2012 R2 has been resolved  in this update: http://support.microsoft.com/kb/2923122

under: PowerShell and Active Directory, Windows 2012 R2, Windows 8.1

My series on PowerShell Jobs for the Scripting Guy blog has finished.  The set of articles is: Jobs week 1 : Introduction to PowerShell jobs http://blogs.technet.com/b/heyscriptingguy/archive/2014/03/02/powershell-jobs-week-introduction-to-powershell-jobs.aspx  http://blogs.technet.com/b/heyscriptingguy/archive/2014/03/02/powertip-control-job-starts-with-powershell.aspx Jobs week 2 : WMi and CIM jobs http://blogs.technet.com/b/heyscriptingguy/archive/2014/03/03/powershell-jobs-week-wmi-and-cim-jobs.aspx  http://blogs.technet.com/b/heyscriptingguy/archive/2014/03/03/powertip-use-powershell-to-keep-job-data.aspx  Jobs week 3 : Remote Jobs http://blogs.technet.com/b/heyscriptingguy/archive/2014/03/04/powershell-jobs-week-remote-jobs.aspx  http://blogs.technet.com/b/heyscriptingguy/archive/2014/03/04/powertip-use-powershell-to-find-job-help.aspx  Jobs week 4 : Scheduled Jobs http://blogs.technet.com/b/heyscriptingguy/archive/2014/03/05/powershell-jobs-week-scheduled-jobs.aspx  http://blogs.technet.com/b/heyscriptingguy/archive/2014/03/05/powertip-use-powershell-to-discover-tasks-associated-with-scheduled-jobs.aspx  Jobs week […]

under: PowerShell original, PowerShell V3, PowerShell v4, PowerShellV2

Now we’re in March the Summit is getting closer.  Looking forward to see friends old & new and listening to some excellent sessions. If you haven’t registered there’s still places available. As a bonus one of the things you’ll take away is a module for working with the registry – filling one of gaps in […]

under: PowerShell original, PowerShell Summit

« Newer Posts - Older Posts »

Categories