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 Deployment monitor
by  DaveinJP  
Go to last post Go to first unread
Last post: 3/19/2015 1:36:19 PM(UTC)
3 Lansweeper Deployment Organization
by  Niley  
Go to last post Go to first unread
Last post: 1/15/2015 3:19:39 PM(UTC)
4 Lansweeper Custom Deployment Retry Time
by  jlorsung  
Go to last post Go to first unread
Last post: 2/27/2015 10:40:49 AM(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 VMware ESXi Host Scanning
by  sukaitsu  
Go to last post Go to first unread
Last post: 3/23/2015 5:44:08 PM(UTC)
7 Lansweeper Place Main Page Tab before Global Tabs?
by  dkramer  
Go to last post Go to first unread
Last post: 1/20/2015 1:38:15 PM(UTC)

Active Discussions

Lansweeper Deployment: run at computer start up
by  servicedesk   Go to last post Go to first unread
Last post: 4/17/2015 10:41:49 PM(UTC)
Lansweeper Scripts Tab
by  servicedesk  
Go to last post Go to first unread
Last post: 4/17/2015 10:05:04 PM(UTC)
Lansweeper Computer domain migration
by  BullGates   Go to last post Go to first unread
Last post: 4/17/2015 6:39:29 PM(UTC)
Lansweeper Show only newest microsoft Office
by  Susan.A  
Go to last post Go to first unread
Last post: 4/17/2015 4:59:54 PM(UTC)
Lansweeper SQL License Tracking
by  malbanese@stamfordct.gov   Go to last post Go to first unread
Last post: 4/17/2015 4:01:19 PM(UTC)
Lansweeper Deployment package to start other packages
by  sullivane  
Go to last post Go to first unread
Last post: 4/17/2015 3:37:10 PM(UTC)
Lansweeper Computer: Mac Address list report
by  mtaggart   Go to last post Go to first unread
Last post: 4/17/2015 3:09:58 PM(UTC)
Lansweeper Chrome 42.0.2311.90 broke Lansweeper Actions
by  Susan.A  
Go to last post Go to first unread
Last post: 4/17/2015 2:32:41 PM(UTC)