Const ATTR_DEFAULT = 4
strComputer = "."

Set oWMI = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colPrinters = oWMI.ExecQuery("SELECT * FROM Win32_Printer")

For Each oPrinter in colPrinters
if oPrinter.default then
Set propPrinters = oWMI.ExecQuery("SELECT * FROM Win32_PrinterConfiguration WHERE DeviceName = '"& oPrinter.Name &"'")
for Each oPP in propPrinters
Wscript.Echo "Nume printer: " & oPrinter.Name & vbCrLf & "Marime Pagina: " & oPP.PaperSize
next
end if
Next
