in reply to Mapped Printer

when run it under other users machine name i get no output. any idea why?

Perhaps because the userid you are running it under on your machine, does not have permissions on the remote machine, to access that information.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: Mapped Printer
by Anonymous Monk on Aug 11, 2011 at 13:17 UTC
    No, i have Administrator account plus i can get alot of other data from wmi just the shared printer i cant

      Are the printers mapped to the machine, or the userid?

      That is, Windows allows some resources to only be visible to individual users, not to anyone who uses the machine. If the Administrator id you are using has never had those printer mappings assigned to it, then they will be invisible to it.

      Also, for an Administrator id to have privileges on other machines, it needs to be a Domain Administrator account, not a local Administrator account.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.