header image

Archive for April, 2011

During Jeff Hicks’ talk about formatting he did the usual demo of taking an extract of a format file and modify it to create a new default format.  Jim Truher mentioned that he had a script that would generate the XML for a format file and that he would post it.  He has and its […]

under: Deep Dive, PowerShellV2

One topic that came up during my talk at Deep Dive was the speed of running a WQL vs using –Filter in Get-WmiObject.  I’d never tested it so its time to find out. PowerShell v2 has a handy cmdlet called Measure-Command that times how long a command runs We’ll start with using a filter Get-WmiObject […]

under: Deep Dive, PowerShell and WMI

One of the events involved getting some information about a file running in a particular process. On a local machine we can use Get-Process powershell –FileVersionInfo   Get-Process has a computername parameter so we can work remotely.    WRONG. If you try this against remote machine PS> Get-Process powershell -FileVersionInfo -ComputerName server02 Get-Process : Exception […]

under: PowerShellV2

One question that I was asked at the deep dive – Is there a way to link a disk volume back to the physical disk it resides on? There doesn’t seem to be. If we test the WMI classes associated with a volume we get these results Win32_Directory Win32_QuotaSetting Win32_ShadowProvider Win32_ShadowCopy Win32_ComputerSystem Win32_Volume Win32_Group If […]

under: Deep Dive, PowerShellV2

In PowerShell we have a number of ways to perform actions on remote machines. Many of the scenarios in the Scripting Games introduced the need to perform some action on a remote machine. Many of the solutions involved creating sessions, using invoke-command and then tearing down the sessions. WHY? The problem is to get a […]

under: PowerShellV2, Scripting Games

Scripting Games 2012

Posted by: | April 27, 2011 | No Comment |

Next years Scripting Games will be April 2-13 Looking forward to it already

under: Scripting Games

PowerShell cmdlets that change the system state have a –whatif parameter to test what would happen for example PS> Get-Service sp* | Stop-Service -WhatIf What if: Performing operation "Stop-Service" on Target "Print Spooler (Spooler)". What if: Performing operation "Stop-Service" on Target "Software Protection (sppsvc)". What if: Performing operation "Stop-Service" on Target "SPP Notification Service (sppuinotify)". […]

under: PowerShellV2

Some of the events had the production of a CSV file as the end result with a bonus point if you opened the file in Excel. The quickest way and easiest way to open a CSV file in Excel is like this Invoke-Item -Path chapt4.csv   This will work if you have the CSV file […]

under: COM, Office 2010, PowerShellV2

When: Tuesday, May 10, 2011 8:30 PM (BST)Where: Live Meeting *~*~*~*~*~*~*~*~*~* Join PowerShell MVP and author Jonathan Medd to learn about PowerShell modules and how to get the most out of them. Notes Richard Siddaway has invited you to attend an online meeting using Live Meeting.Join the meeting.Audio InformationComputer AudioTo use computer audio, you need […]

under: PowerShell User Group

The PowerShell Deep Dive last week was the best conference I have ever attended. The group consisted of members of the PowerShell team, Ed Wilson – the Scripting Guy, PowerShell MVPs and a large number of PowerShell experts and enthusiasts.  The last word summed it up.  The Scripting Club was supposed to finish at 10pm […]

under: Deep Dive, PowerShellV2

Older Posts »

Categories