Notification

Icon
Error

WMI Security (Powershell/Lansweeper)

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

Cobra7

Member Premium Users Posts: 146
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
#-29Lansweeper Member Premium Users 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
#-28Cobra7 Member Premium Users  
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.

Top Rated

1 Lansweeper Post here about your lansweeper setup.
by  Lansweeper  
Go to last post Go to first unread
Last post: 6/13/2014 1:18:56 AM(UTC)
2 Lansweeper User-Inventory
by  jhache  
Go to last post Go to first unread
Last post: 11/14/2014 3:29:48 PM(UTC)
3 Lansweeper Unlock Password Customization
by  Hobbs13  
Go to last post Go to first unread
Last post: 7/26/2012 2:50:56 PM(UTC)
4 Lansweeper LS not pulling in corrected version of Visio/Project
by  ldellinger  
Go to last post Go to first unread
Last post: 12/4/2014 3:41:41 PM(UTC)
5 Lansweeper Lansweeper 5.2 (recent update)
by  MikeInLa  
Go to last post Go to first unread
Last post: 11/26/2014 9:57:29 AM(UTC)
6 Lansweeper Approve software only for certain PCs or Users
by  sarmo  
Go to last post Go to first unread
Last post: 11/13/2014 4:09:33 PM(UTC)

Active Discussions

Lansweeper Cheap Online Kitchens
by  poltax   Go to last post Go to first unread
Last post: Today at 4:20:37 AM(UTC)
Lansweeper Package to uninstall Chrome
by  jasonw  
Go to last post Go to first unread
Last post: Today at 3:37:27 AM(UTC)
Lansweeper Scan credentials password cutoff with apostrophe
by  BSONO   Go to last post Go to first unread
Last post: Yesterday at 8:15:10 PM(UTC)
Lansweeper Asset Displaying as UPLINK on Ports of Managed Switch
by  pwalach  
Go to last post Go to first unread
Last post: Yesterday at 7:17:12 PM(UTC)
Lansweeper Limit Event Log Types per Server
by  davidp   Go to last post Go to first unread
Last post: Yesterday at 5:49:01 PM(UTC)
Lansweeper Report Showing Security Update KB3008923
by  RC62N  
Go to last post Go to first unread
Last post: Yesterday at 5:42:13 PM(UTC)
Lansweeper Forum itself: copy reports with IE9 bugged
by  stiwa   Go to last post Go to first unread
Last post: Yesterday at 3:37:47 PM(UTC)
Lansweeper Alert Only once
by  ryraffael  
Go to last post Go to first unread
Last post: Yesterday at 11:21:32 AM(UTC)