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 IOS App for scannability
by  AdamBird  
Go to last post Go to first unread
Last post: 2/5/2015 12:28:19 PM(UTC)
5 Lansweeper Merge Two Assets or Update Based on Serial Number
by  Matt8  
Go to last post Go to first unread
Last post: 2/9/2015 2:33:36 PM(UTC)
6 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)
7 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)
8 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 Are there plans to update the Google Chrome extension?
by  Bert.D   Go to last post Go to first unread
Last post: Yesterday at 12:53:57 PM(UTC)
Lansweeper One user won't get picture
by  sullivane  
Go to last post Go to first unread
Last post: 5/22/2015 8:36:34 PM(UTC)
Lansweeper LSremote closes down
by  Michael.V   Go to last post Go to first unread
Last post: 5/22/2015 8:22:49 PM(UTC)
Lansweeper Device History
by  Michael.V  
Go to last post Go to first unread
Last post: 5/22/2015 8:21:22 PM(UTC)
Lansweeper Installer Help
by  SimonH   Go to last post Go to first unread
Last post: 5/22/2015 4:02:16 PM(UTC)
Lansweeper SID from AD users
by  laurentiune  
Go to last post Go to first unread
Last post: 5/22/2015 3:54:57 PM(UTC)
Lansweeper Desktops over 5 years old report
by  LiquidKaoz   Go to last post Go to first unread
Last post: 5/22/2015 3:10:45 PM(UTC)
Lansweeper Single Sign on for Website
by  chads  
Go to last post Go to first unread
Last post: 5/22/2015 2:13:36 PM(UTC)