One thought on “Get your KIX on route 66 – Powerful (login) scripts made easy with KiXtart

  • February 23, 2011 at 3:03 pm
    Permalink

    WMI calls take for ever
    XP Pro with SP3
    ===============================
    ? “1”
    $strComputer = “.”
    ? “2”
    $ObjWMIService = GetObject(“winmgmts:\\” + $strComputer + “\root\cimv2″)
    ?”3”
    $colInstalledPrinters = $objWMIService.ExecQuery(“Select * from Win32_Printer”)
    ?”4″
    For Each $objPrinter in $colInstalledPrinters
    ? “Name: ” + $objPrinter.Name
    ? “Location: ” + $objPrinter.Location
    ? “Default: ” + $objPrinter.Default
    Next
    ? “5”
    =====================
    it dies in the for each loop

Leave a Reply