
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2010 01:49 AM
Not directly related to Lansweeper but it is affecting Lansweeper.
I'm trying to use Powershell to access the Win32_printer on various PC's.
When I do my own I can see all printers:
When I do my own via network, I can also see my own:
When I do someone elses PC, I can only see local printers, not the network (mapped) printers
When I do someone elses PC with the current user credentials, I can see everything:
When I do the above as domain administrator, I can only see local printers.
Also when I check the printers on a PC under Lansweeper, I also only see local printers.
I know I am set up as a local admin on these PC's just like domain administrator, so anyone know whats going on?
I'm trying to use Powershell to access the Win32_printer on various PC's.
When I do my own I can see all printers:
Get-WMIObject -class Win32_printers
When I do my own via network, I can also see my own:
Get-WMIObject -class win32_printers -computername (PC name)
When I do someone elses PC, I can only see local printers, not the network (mapped) printers
Get-WMIObject -class Win32_printers -computername (PC name)
When I do someone elses PC with the current user credentials, I can see everything:
$cred = get-credentials;get-wmiobject -credentials $cred -class Win32_printers -computername (PC name)
When I do the above as domain administrator, I can only see local printers.
Also when I check the printers on a PC under Lansweeper, I also only see local printers.
I know I am set up as a local admin on these PC's just like domain administrator, so anyone know whats going on?
Labels:
- Labels:
-
General Discussion
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2010 06:06 PM
*ponders* So my guess is when I run the query with my credentials, it looks for default printers and printers under my profile (which there are none).
That must also be why Lansweeper (useing domain administrator credentials) doesn't see the users printers either.
Thanks for the info.
That must also be why Lansweeper (useing domain administrator credentials) doesn't see the users printers either.
Thanks for the info.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2010 10:39 AM
From what I understand Win32_printer shows the printers for the current user and the printers installed for everyone.
The current user is in this case the user performing the lansweeper scan.
The current user is in this case the user performing the lansweeper scan.
