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
Answers (2)
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 11 years ago
-
Oh that's right, I was confusing running that command as a user vs. localsystem. - jknox 11 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 11 years ago