Notification

Icon
Error

WMI Security (Powershell/Lansweeper)

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

Cobra7

Member Posts: 143
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 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  
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 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)
2 Lansweeper Network Printer by user
by  mikesecond  
Go to last post Go to first unread
Last post: 1/1/2015 6:13:41 AM(UTC)
3 Lansweeper Deployment Organization
by  Niley  
Go to last post Go to first unread
Last post: 7/10/2015 10:50:17 AM(UTC)
4 Lansweeper Deployment monitor
by  DaveinJP  
Go to last post Go to first unread
Last post: 3/19/2015 1:36:19 PM(UTC)
5 Lansweeper VMware ESXi Host Scanning
by  sukaitsu  
Go to last post Go to first unread
Last post: 8/13/2015 11:52:26 AM(UTC)
6 Lansweeper Restricted asset / user / ip-range viewing
by  Solina  
Go to last post Go to first unread
Last post: 8/27/2015 11:06:22 AM(UTC)
7 Lansweeper Custom Fields for User Pages
by  novasam  
Go to last post Go to first unread
Last post: 3/18/2015 1:23:33 PM(UTC)
8 Lansweeper Microsoft Surface Pro 3 Purchase/Warranty lookup and scanning
by  yallah  
Go to last post Go to first unread
Last post: 8/27/2015 10:43:13 AM(UTC)

Active Discussions

Lansweeper Kitchen Cabinets Exeter
by  botolijo   Go to last post Go to first unread
Last post: Today at 3:38:57 AM(UTC)
Lansweeper Deployment to AD Security Groups
by  ghelpdesk  
Go to last post Go to first unread
Last post: Today at 3:33:31 AM(UTC)
Lansweeper Adding group to asset page
by  gnohs  
Go to last post Go to first unread
Last post: Yesterday at 10:42:02 PM(UTC)
Lansweeper Report for all assets
by  jipearce   Go to last post Go to first unread
Last post: Yesterday at 7:56:51 PM(UTC)
Lansweeper Migrating Servers
by  gnohs  
Go to last post Go to first unread
Last post: Yesterday at 6:19:27 PM(UTC)
Lansweeper LSPush 6.0.0.2 - Black Screen on clients
by  PeterG   Go to last post Go to first unread
Last post: Yesterday at 6:10:11 PM(UTC)
Lansweeper How is software detected?
by  mickeyshowers  
Go to last post Go to first unread
Last post: Yesterday at 3:01:30 PM(UTC)