header image

Archive for April, 2012

As April comes to close so does the extension for grading scripts in the recent games. I’ve been so busy grading haven’t had time to blog about the games. I’ll start to catch up on the backlog over the next few weeks.  This years games have been huge with more than 150% growth in the […]

under: PowerShell original

The slides, demo script and recording are available from https://skydrive.live.com/?cid=43cfa46a74cf3e96#cid=43CFA46A74CF3E96&id=43CFA46A74CF3E96%212957 Thank you again to everyone who attended the Live Meeting this evening

under: PowerShell User Group, PowerShell V3, Windows 8 Server

Quick reminder that 24 April sees the first of 2 sessions on new PowerShell functionality in Windows 2012 – Windows Server 8 Details from http://msmvps.com/blogs/richardsiddaway/archive/2012/04/13/uk-powershell-group-24-april-2012.aspx

under: PowerShell User Group, Windows 8 Server

http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/06/2012-scripting-games-advanced-event-5-list-errors.aspx This is the one I was asked to supply a commentary for http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/20/expert-commentary-2012-scripting-games-advanced-event-5.aspx   This one has raised an interesting interpretation issues.  The last design point asks: Your output should be organized such that the largest source of errors appears at the top of the output. The figure shows the data sorted by Event […]

under: PowerShell original, Scripting Games

Beginners event 5 http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/06/2012-scripting-games-beginner-event-5-provide-a-source-and-errors.aspx Looking for problem applications. Need report from each server form application log listing source and number of errors. Requirements: should be capable of running against remote machine doesn’t need to run remotely for this scenario don’t need to check for admin rights assume have permissions to query application log use standard […]

under: PowerShell Basics, Scripting Games

PowerShell and WMI

Posted by: | April 15, 2012 | 2 Comments |

My latest book – PowerShell and WMI – has gone to the printers. Expect it soon at a book shop near you. www.manning.com/powershellandwmi for more details

under: Books, PowerShell and WMI, PowerShell V3, PowerShellV2

Manning are offering 50% off PowerShell in Practice using code dotd0415cc in the promotional code box at www.manning.com   The same code gets you 50% off PowerShell and WMI AND Advanced PowerShell   This is FOR TODAY ONLY

under: Books, PowerShell original

http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/05/2012-scripting-games-beginner-event-4-compare-two-folders.aspx Makes sure you run the script provided with the event to get the right folders. The script randomly removes 1 file from each folder – sneaky. After last nights head scratching this one is much simpler. It’s solvable with one line of PowerShell. For this one we have a data folder and a back […]

under: PowerShell Basics, Scripting Games

It was bugging me that I couldn’t get try-catch work on the folder where I didn’t have permissions. Finally thought of the reason – set the ErrorAction to Ignore. Heres the revised script [CmdletBinding()] param ( [string]$path = "C:\2012sg\event3", [string]$file = "Process3.txt" ) Write-Verbose "Test path is valid" if (-not (Test-Path -Path $path -IsValid)){ Throw […]

under: PowerShell Basics, Scripting Games

Onto event 3 http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/04/2012-scripting-games-beginner-event-3-create-a-file-in-a-folder.aspx where we have to create a file in a folder. Simple – well yes but not with the twists the Scripting Guy throws at you. The requirements: save file in c:\2012sg\event3 file contains process name and id running on local machine file must be called Process3.txt if folder doesn’t exist must […]

under: PowerShell Basics, Scripting Games

Older Posts »

Categories