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 monitor
by  DaveinJP  
Go to last post Go to first unread
Last post: 3/19/2015 1:36:19 PM(UTC)
4 Lansweeper Deployment Organization
by  Niley  
Go to last post Go to first unread
Last post: 1/15/2015 3:19:39 PM(UTC)
5 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)
6 Lansweeper Better Backup
by  sullivane  
Go to last post Go to first unread
Last post: 5/26/2015 2:11:03 PM(UTC)
7 Lansweeper Open user profile folder (asset action)
by  servicedesk  
Go to last post Go to first unread
Last post: 6/15/2015 2:52:18 PM(UTC)
8 Lansweeper Network Printer Installation Script
by  enz1ey  
Go to last post Go to first unread
Last post: 5/5/2015 8:16:21 PM(UTC)

Active Discussions

Lansweeper Where is the activity logs for LanSweeper
by  leblanc.daniel.4@hydro.qc.ca   Go to last post Go to first unread
Last post: Yesterday at 6:49:35 PM(UTC)
Lansweeper Do we have any CPU and memory usage report?
by  Susan.A   Go to last post Go to first unread
Last post: Yesterday at 2:06:46 PM(UTC)
Lansweeper Website access question
by  Susan.A  
Go to last post Go to first unread
Last post: Yesterday at 2:00:24 PM(UTC)
Lansweeper As Lansweeper works with dynamic IPs?
by  gustavo.decenci   Go to last post Go to first unread
Last post: Yesterday at 1:46:12 PM(UTC)
Lansweeper Getting SQL code for canned reports
by  Susan.A  
Go to last post Go to first unread
Last post: Yesterday at 1:10:59 PM(UTC)
Lansweeper Generate a Customized Report
by  Daniel.B   Go to last post Go to first unread
Last post: Yesterday at 12:29:01 PM(UTC)
Lansweeper Host multiple LS scanning frontend services on the same server
by  Susan.A  
Go to last post Go to first unread
Last post: Yesterday at 12:27:13 PM(UTC)