Notification

Icon
Error

WMI Security (Powershell/Lansweeper)

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

Cobra7

Member Premium Users Posts: 145
0
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 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
#2Cobra7 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 Display A/V info on asset page
by  gwelsted  
Go to last post Go to first unread
Last post: 10/24/2014 10:34:14 PM(UTC)
2 Lansweeper Confused on a report output.
by  drlord  
Go to last post Go to first unread
Last post: 10/10/2014 2:29:21 PM(UTC)
4 Lansweeper Managing Licenses
by  coraz  
Go to last post Go to first unread
Last post: 10/24/2014 5:59:13 PM(UTC)
5 Lansweeper Report all Dell PC's and OS
by  Chad  
Go to last post Go to first unread
Last post: 9/19/2014 11:43:45 PM(UTC)
6 Lansweeper Number of CPU cores and one result per server
by  jaekob  
Go to last post Go to first unread
Last post: 10/20/2014 3:31:46 PM(UTC)
7 Lansweeper License compliance report
by  moarsmor  
Go to last post Go to first unread
Last post: 9/8/2014 9:15:00 AM(UTC)
8 Lansweeper Need Report for Two Specific Software Programs
by  pwalach  
Go to last post Go to first unread
Last post: 9/17/2014 2:08:35 PM(UTC)

Active Discussions

Lansweeper Default Package Share username permissions
by  Susan.A   Go to last post Go to first unread
Last post: Today at 1:30:01 AM(UTC)
Lansweeper Is it possible to link a web page to an asset?
by  Susan.A  
Go to last post Go to first unread
Last post: Today at 1:24:10 AM(UTC)
Lansweeper LS v5.2 silentupgrade
by  MDGraves   Go to last post Go to first unread
Last post: Yesterday at 2:45:43 PM(UTC)
Lansweeper Query Assets in Multiple Groups
by  Susan.A   Go to last post Go to first unread
Last post: Yesterday at 2:18:06 PM(UTC)
Lansweeper Scanner Model Report
by  Susan.A  
Go to last post Go to first unread
Last post: Yesterday at 2:00:09 PM(UTC)
Lansweeper relations between assets and users
by  Susan.A   Go to last post Go to first unread
Last post: Yesterday at 1:04:13 PM(UTC)