Re: IP Port Network Printer



So with that script we can set to "FALSE" all the entries in sms_def.mof that
report to WMI class Win32_Printer?

It work well. Thank you Jeff.

"Jeff Gilbert" wrote:

> I attached it as a .txt file (i'm using Outlook Express and it shows as an
> attachment when i view the message. I don't like putting scripts in the
> main body of the message as word wrap invariably messes things up. If you
> need me to email you directly just send an email to jgilbert@xxxxxxxxxxxxx
> and I'll be glad to reply with the script as an attachment that way.
>
> Jeff Gilbert, MOF Master
> SMS Expert
>
> "Bernard" <Bernard@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:3A18D13C-2A0A-46BD-8FFA-B079CABAB4C9@xxxxxxxxxxxxxxxx
> > Hi Jeff,
> >
> > Excuse me, but I dont see any .txt file in your post. And I didn't know
> > that
> > we could exchange files here...
> >
> > "Jeff Gilbert" wrote:
> >
> >> Here's the script. Just rename it from .txt to .vbs and run it on the
> >> systems you want to inventory the printer information for. It will
> >> create a
> >> NOIDMIF file that SMS hardware inventory will pick up (as long as you
> >> have
> >> your hardware inventory settings to pick up NOIDMIFs in the admin
> >> console).
> >>
> >> Let me know how this works for you, and remember to test it on a single
> >> system before deploying!!
> >>
> >> Jeff Gilbert
> >> MOF Master, SMS Expert
> >>
> >>
> >> "Bernard" <Bernard@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> >> news:1C0B8E19-4E0C-4CB6-A33B-6CA0229ACFB8@xxxxxxxxxxxxxxxx
> >> > Hello Jeff,
> >> >
> >> > Yes that could be very helpful. Do you whant a E-mail or you can post
> >> > it
> >> > here?
> >> >
> >> > "Jeff Gilbert" wrote:
> >> >
> >> >> Turn on reporting for the Win32_Printer class and look for PortName.
> >> >> SMS
> >> >> expert has a printers script that creates a NOIDMIF file for
> >> >> inventorying
> >> >> this also if you'd like that I can send it to you.
> >> >>
> >> >> Jeff Gilbert, MOF Master
> >> >> SMS Expert
> >> >>
> >> >>
> >> >> "Bernard" <Bernard@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> >> >> news:1C188D95-07FE-4905-A987-99BF0F27573B@xxxxxxxxxxxxxxxx
> >> >> > Yes, here is the two sections that we modified;
> >> >> >
> >> >> > [ SMS_Report (TRUE),
> >> >> > SMS_Group_Name ("Printer Device"),
> >> >> > SMS_Class_ID ("MICROSOFT|PRINTER_DEVICE|1.0") ]
> >> >> >
> >> >> > class Win32_Printer : SMS_Class_Template
> >> >> > {
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 Attributes;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint16 Availability;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 AveragePagesPerMinute;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint16 Capabilities[];
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string CapabilityDescriptions[];
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string Caption;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 ConfigManagerErrorCode;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > boolean ConfigManagerUserConfig;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 DefaultPriority;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string Description;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint16 DetectedErrorState;
> >> >> > [SMS_Report (TRUE), key]
> >> >> > string DeviceID;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string DriverName;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > boolean ErrorCleared;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string ErrorDescription;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 HorizontalResolution;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > datetime InstallDate;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 JobCountSinceLastReset;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint16 LanguagesSupported[];
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 LastErrorCode;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string Location;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string Name;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint16 PaperSizesSupported[];
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string PNPDeviceID;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string PortName;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint16 PowerManagementCapabilities[];
> >> >> > [SMS_Report (TRUE) ]
> >> >> > boolean PowerManagementSupported;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string PrinterPaperNames[];
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 PrinterState;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint16 PrinterStatus;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string PrintJobDataType;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string PrintProcessor;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string SeparatorFile;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string ServerName;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string ShareName;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > boolean SpoolEnabled;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > datetime StartTime;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string Status;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint16 StatusInfo;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string SystemName;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > datetime TimeOfLastReset;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > datetime UntilTime;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 VerticalResolution;
> >> >> > };
> >> >> >
> >> >> >
> >> >> >
> >> >> > [ SMS_Report (TRUE),
> >> >> > SMS_Group_Name ("Printer Configuration"),
> >> >> > SMS_Class_ID ("MICROSOFT|PRINTER_CONFIGURATION|1.0") ]
> >> >> >
> >> >> > class Win32_PrinterConfiguration : SMS_Class_Template
> >> >> > {
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 BitsPerPel;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string Caption;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > boolean Collate;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 Color;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 Copies;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string Description;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string DeviceName;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 DisplayFlags;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 DisplayFrequency;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 DitherType;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 DriverVersion;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > boolean Duplex;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string FormName;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 HorizontalResolution;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 ICMIntent;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 ICMMethod;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 LogPixels;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 MediaType;
> >> >> > [SMS_Report (TRUE), key]
> >> >> > string Name;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 Orientation;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 PaperLength;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string PaperSize;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 PaperWidth;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 PelsHeight;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 PelsWidth;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 PrintQuality;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 Scale;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > string SettingID;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 SpecificationVersion;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 TTOption;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 VerticalResolution;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 XResolution;
> >> >> > [SMS_Report (TRUE) ]
> >> >> > uint32 YResolution;
> >> >> > };
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > "Jeff Gilbert" wrote:
> >> >> >
> >> >> >> can you post your mof modification?
> >> >> >>
> >> >> >> "Bernard" <Bernard@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> >> >> >> news:41EA8A38-2BB5-4CC0-BB54-5BA7A3387FC9@xxxxxxxxxxxxxxxx
> >> >> >> > Hello,
> >> >> >> >
> >> >> >> > I have modified the sms_def.mof file so we can report data from
> >> >> >> > local
> >> >> >> > printer on desktop and servers. but the network printers (\\) are
> >> >> >> > not
> >> >> >> > reported. How do we apply a filter so we can see these printers
> >> >> >> > in
> >> >> >> > Ressource
> >> >> >> > Explorer?
> >> >> >> >
> >> >> >> > Thank's
> >> >> >> >
> >> >> >> > Berny
> >> >> >>
> >> >> >>
> >> >> >>
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>
>
>
>
.



Relevant Pages

  • Re: IP Port Network Printer
    ... and I'll be glad to reply with the script as an attachment that way. ... Jeff Gilbert, MOF Master ... >> NOIDMIF file that SMS hardware inventory will pick up (as long as you ... >> MOF Master, SMS Expert ...
    (microsoft.public.sms.inventory)
  • Re: IP Port Network Printer
    ... If all these conditions are met, then when the Hardware Inventory is ran, it ... query to pull this info out, or will it show up in the sms query wizard. ... > MOF Master, SMS Expert ... >>> Jeff Gilbert, MOF Master ...
    (microsoft.public.sms.inventory)
  • Re: IP Port Network Printer
    ... > Jeff Gilbert, MOF Master ... > SMS Expert ... >>> can you post your mof modification? ...
    (microsoft.public.sms.inventory)

Loading