Hi folks, I am working with win32_printerconfiguration for checking the duplex option is installed or not in the printers. $objWMIService = ObjGet("winmgmts:\\" & @ComputerName & "\root\CIMV2") $Error_WMI = @error If IsObj($objWMIService) Then $colItemsa = $objWMIService.ExecQuery ("Select * from Win32_PrinterConfiguration ", "WQL",$wbemFlagReturnImmediately + $wbemFlagForwardOnly) If IsObj($colItemsa) Then For $objPrinters In $colItemsa msgbox(0,"check","entering loop") $NameP = $objPrinters.Name If $NameP = $cfgLocPrinterName[$p - 1] Then $DuplexValue = $objPrinters.Duplex EndIf Next EndIf Else LogCreation("DuplexInstalledCheck", "WMI object", "Error in reading WMI object") EndIf script is existing from the for loop. it is not even printing the msg box titled check. any one please help