header image

Archive for June, 2009

out-gridview

Posted by: | June 30, 2009 | No Comment |

The version of PowerShell that ships with Windows 7 RC has fixed out-gridview so that we can display more than 10 columns. try get-process | select * | Out-GridView to test it Technorati Tags: PowerShell,version 2

under: PowerShellV2

As James pointed out recently the AD Web Service from Windows 2008 R2 has been released for Windows 2008 and Windows 2003 -  see http://blogs.msdn.com/adpowershell/archive/2009/06/23/use-active-directory-powershell-to-manage-windows-2003-2008-dcs.aspx for details. Having installed it there doesn’t appear to be any sign of the AD cmdlets or Provider.  On this basis it is useless.  If anyone knows different please let […]

under: PowerShell and Active Directory

Microsoft Learning Manager

Posted by: | June 25, 2009 | No Comment |

I went on to the Microsoft site looking for books on SQL Server 2008.  What you get is an incomprehensible jumble of stuff.  Don’t tell me about everything there is – let me get to the information I want. I used to really like the Microsoft site as there was masses of information that usually […]

under: SQL Server

SQL Server autoclose

Posted by: | June 25, 2009 | No Comment |

Buck Woody blogged about SQL Server autoclose and how it should be set to being off  – http://blogs.msdn.com/buckwoody/archive/2009/06/24/sql-server-best-practices-autoclose-should-be-off.aspx  I’m doing a lot with SQL Server and PowerShell at the moment and it started me thinking that I could easily set this property in PowerShell. 001 002 003 004 005 006 007 008 009 010 $Server = New-Object Microsoft.SqlServer.Management.Smo.Server("SQL08") […]

under: PowerShell and SQL Server

PowerShell survey

Posted by: | June 25, 2009 | No Comment |

The PowerShell team want to know how you find PowerShell related material – scripts, training material etc etc http://blogs.msdn.com/powershell/archive/2009/06/24/new-powershell-survey-on-connect.aspx Technorati Tags: PowerShell

under: PowerShell original

foreach usage

Posted by: | June 24, 2009 | 1 Comment |

I’ve noticed the way foreach is being used and it falls into two groups. I am using foreach-object to keep the discussion straight – like everyone else I use the foreach alias – yes I know I rant about aliases but the aliases for the *-object cmdlets make sense. 001 002 003 004 005 006 […]

under: PowerShell original

AD Recovery

Posted by: | June 24, 2009 | No Comment |

I have always been impressed by by Quest’s AD Recovery Manager and now its even better – yep it has PowerShell cmdlets see http://wiki.powergui.org/index.php/Quest_Recovery_Manager_for_Active_Directory_cmdlets_reference Technorati Tags: PowerShell,Active Directory,Quest

under: PowerShell original

Scripting Games – Event 6 and 7

Posted by: | June 23, 2009 | No Comment |

Event 6 Beginners – find the errors in the script Advanced – read a text file of a network trace and find the delay can’t be bothered.  Beginners was done last year plus I really hate scripts that have $objxxx    – so VBScript  Advanced is yet another variation on reading a file. Event 7 Advanced […]

under: PowerShell original

PowerShell in Practice Chapter 13

Posted by: | June 22, 2009 | No Comment |

Chapter 13 – IIS – is now available on MEAP  www.manning.com/siddaway Technorati Tags: PowerShell

under: PowerShell original

Games: Advanced 4

Posted by: | June 21, 2009 | No Comment |

Read a file and create a graph of the results.  The quickest way to graph the data is to take the height and display a number of “*” depending on the value. 001 002 003 004 005 006 007 008 cls Get-content "High Jump Stats_Adv4.txt" | foreach {     $data = $_ -split ","     Write-Host "Jumper: $($data[1]) $($data[0]) last $($data.count – 3) jumps" […]

under: PowerShell original

Older Posts »

Categories