/build/static/layout/Breadcrumb_cap_w.png

Why doesn't the K1000 PC inventory show network drives or network printers?

When I view the inventory of a workstation I need to see the current drive mappings, installed network printers and which printer is the default printer for that workstation. Will this feature be in a future release? If not, how can I add this information to my inventory. WARNING... I'm not a big scripting guy. Thanks


0 Comments   [ + ] Show comments

Answers (2)

Posted by: AFCUjstrick 10 years ago
10th Degree Black Belt
1

Printer List with IP:

ShellCommandTextReturn(wmic printer get name, portname)

I know wmic can do the drive listing as well, but I haven't laid eyes on it yet.

 

 

Posted by: jknox 10 years ago
Red Belt
1

It depends on how the device was installed.  If it was installed under a user context, the agent can't see it.  Remember, that the agent runs as LocalSystem.

The WMIC command that ACFU posted will work, but it won't show any printers/drives that are installed to a user only. 

The easiest way to make this work would be to use a kscript to export the printers to a file, then use a custom inventory rule to read the file.

 


Comments:
  • The way you described is how we do it as well, both for local/network drives, and for printers. I just happened to have the wmic command in front of me when I saw the question. - AFCUjstrick 10 years ago
    • Oh that's right, I was confusing running that command as a user vs. localsystem. - jknox 10 years ago
  • Agree- jknox and AFCUjstrick have the only approach that will work sustainably due to how Windows stores the connection. Since the agent runs as local system, rather than the logged on user, we wouldn't be able to pull things from HKCU - cblake 10 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ