Browse Forum Posts by Tags

Showing related tags and posts for the Forums application. See all tags in the site
  • PowerShell V2 CTP3 Teaser – Using Background Jobs

    This article illustrates the use of PowerShell background jobs which is new in PowerShell V2. Some commands just take a long time to execute, so this article shows you have to do it using the PowerShell V2 bits that were recently released at the PDC 2008 along with Windows 7. Read more at: http://thepowershellguy...
    Posted to Using PowerShell v2.0 (Forum) by ps2 on 12-22-2008
    Filed under: PowerShell v2, Background Jobs
  • Trouble with Try/Catch

    I'm trying to work out how to specify the Catch values for PowerShell V2 CTP3's Try/Catch stuff. Here's a simple divide by zero error that I'm trying to catch: <# .SYNOPSIS Demonstrates try/catch/finally in V2 .DESCRIPTION Shows a simple example of the try/catch/finally syntax introduced...
    Posted to Using Scripts (Forum) by Thomas Lee on 12-29-2008
    Filed under: PowerShell V2, error handling, try/catch
  • Re: Trouble with Try/Catch

    See this help file: about_Try_Catch_Finally $one=1 $zero=0 try{ $one/$zero } catch [System.DivideByZeroException]{ #"The first Catch script block handles System.DivideByZeroException exceptions" "Attempted to divide by zero" } catch { "the second Catch script block handles any...
    Posted to Using Scripts (Forum) by Shay Levy on 12-30-2008
    Filed under: PowerShell V2, error handling, try/catch
  • Using PowerShell and WatiN (PowerWatin?)

    By Joel 'Jaykul' Bennett Note: WatiN requires Single Threaded Apartment mode, so you need to be using PowerShell 2.0 (currently in CTP3) in order for any of this to work, and you need to pass the -STA parameter to PowerShell. Regardless, I thought I’d throw two ... Read More
    Posted to PowerShell v2 (Forum) by ps2 on 03-09-2009
    Filed under: PowerShell v2, STA, WatiN
  • Re: Trouble with Try/Catch

    This is very good info, but I'm lost when it comes to dealing with COM object exceptions inside PowerShell. Some are rather simple, for example, I've registered a DLL (e.g. KiXtart.DLL which comes with KiXtart 4.60). I can invoke the interface as an object in VBScript and JScript fine. It works...
    Posted to Using Scripts (Forum) by skatterbrainz on 05-07-2009
    Filed under: PowerShell V2, error handling, try/catch, kixtart
  • Windows 2008 R2 Powershell

    Widows 2008 R2 comes with powershell v2 by default. and added with 76 new Ad cmdlets and Ad provders New-ADOrganizationalUnit -Name "OUname" -ProtectedFromAccidentalDeletion $true This command creates new OU under the root. If we wanted created OU in specific path then we have to provide the...
    Posted to Windows Server 2008 R2 (Forum) by Krishna on 10-29-2009
    Filed under: Active Directory, powershell v2, OU, new-adorginizationunit, windows 2008, r2, powershell
  • Can someone help me wrap error checking around this script?

    #********************************************************************************************* #** This script will read information from a SQL database with the Windows server names #** It will take that list and pass it to a WMI call to get the drive type information #** You need the SQLCommand Script...
    Posted to Using Scripts (Forum) by adrian on 11-05-2009
    Filed under: WMI, PowerShell V2
  • get-EventLog into SQL

    OK maybe I'm posting my stuff with the wrong tags as I am not getting much responses, hopefully someone out there will see this one I am having trouble outputting the data back to SQL, I am sure it's in my statements at the bottom of the script but I've not figured it out yet, any help appreciated...
    Posted to PowerShell v2 (Forum) by adrian on 11-12-2009
    Filed under: PowerShell v2, PowerShell, Event Logs
  • 25 lines of PowerShell to Navigate PDC09 Sessions

    By Doug Finke I find the PDC09 site a bit frustrating to navigate the sessions I want to attend. So I whipped up this 25 line PowerShell/WPK GUI. Type in the search box to find matching session titles. Click on a title and the browser navigates to ... Read More
    Posted to PowerShell v2 (Forum) by ps2 on 11-19-2009
    Filed under: PowerShell v2
  • Remoting command with arguments won't work (wuauclt.exe)

    I'm running the following script and everything works except the last command: #wsus-reregister.ps1 param ($computer) Invoke-Command $computer -scriptblock { $RegPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" $RegProperties = "SusClientID","SusClientIDValidation"...
    Posted to Remoting (Forum) by oogabooga on 05-10-2010
    Filed under: Remoting, PowerShell v2
Page 1 of 2 (19 items) 1 2 Next >
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.