Notification

Icon
Error

WMI Security (Powershell/Lansweeper)

Posted: Friday, June 4, 2010 12:49:37 AM(UTC)
Cobra7

Cobra7

Member Posts: 145
0
Like
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:
Code:
Get-WMIObject -class Win32_printers


When I do my own via network, I can also see my own:
Code:
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
Code:
Get-WMIObject -class Win32_printers -computername (PC name)


When I do someone elses PC with the current user credentials, I can see everything:
Code:
$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?
Lansweeper
#1Lansweeper Member Administration  
posted: 6/4/2010 9:39:03 AM(UTC)
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.
Cobra7
#2Cobra7 Member  
posted: 6/4/2010 5:06:11 PM(UTC)
*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.

Active Discussions

Lansweeper K.i.t.c.h.e.n. .U.n.i.t.s. .M.i.d.l.a.n.d.s
by  slowsnake   Go to last post Go to first unread
Last post: Yesterday at 9:09:01 AM(UTC)
Lansweeper K-i-t-c-h-e-n- -U-n-i-t-s- -M-i-d-l-a-n-d-s
by  slowsnake  
Go to last post Go to first unread
Last post: Yesterday at 9:06:20 AM(UTC)
Lansweeper SSH Mac and Linux Scanning
by  tcilmo   Go to last post Go to first unread
Last post: 12/9/2016 8:26:32 PM(UTC)
Lansweeper Office 2016 Deployment
by  GaryT  
Go to last post Go to first unread
Last post: 12/9/2016 4:49:40 PM(UTC)
Lansweeper Report login user 7 days
by  FbrAbreu   Go to last post Go to first unread
Last post: 12/9/2016 1:52:10 PM(UTC)
Lansweeper Null value for unchecked custom field check box.
by  ITops  
Go to last post Go to first unread
Last post: 12/9/2016 12:23:59 AM(UTC)
Lansweeper Outgoing Email template
by  gdudley   Go to last post Go to first unread
Last post: 12/8/2016 4:34:57 PM(UTC)
Lansweeper Unexpected results with added criteria
by  Jeff Henze  
Go to last post Go to first unread
Last post: 12/8/2016 3:50:51 PM(UTC)