Notification

Icon
Error

WMI Security (Powershell/Lansweeper)

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

Cobra7

Member Premium Users Posts: 146
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 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 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 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)
6 Lansweeper E-Mail Reports as HTML instead of attachment
by  memxit  
Go to last post Go to first unread
Last post: 3/6/2015 11:33:22 PM(UTC)
7 Lansweeper Approve software only for certain PCs or Users
by  sarmo  
Go to last post Go to first unread
Last post: 11/13/2014 4:09:33 PM(UTC)
8 Lansweeper Edit IP Location?
by  elliotross  
Go to last post Go to first unread
Last post: 3/6/2015 7:23:18 PM(UTC)

Active Discussions

Lansweeper Report showing event errors of specific servers
by  stuiver.5   Go to last post Go to first unread
Last post: Today at 8:14:52 AM(UTC)
Lansweeper Clean the log
by  MakeBug  
Go to last post Go to first unread
Last post: Today at 7:33:28 AM(UTC)
Lansweeper How many machines can I scan on demo version?
by  Darkmause   Go to last post Go to first unread
Last post: Today at 7:10:51 AM(UTC)
Lansweeper Auto-filling relationship information?
by  crashff  
Go to last post Go to first unread
Last post: Yesterday at 8:52:16 PM(UTC)
Lansweeper Assets Warrenty - specific type of machines
by  hasayeret   Go to last post Go to first unread
Last post: Yesterday at 8:00:11 PM(UTC)
Lansweeper Scan a IP adress on demand
by  MHilson  
Go to last post Go to first unread
Last post: Yesterday at 7:27:23 PM(UTC)
Lansweeper Asset Group reports
by  Daniel.B   Go to last post Go to first unread
Last post: Yesterday at 6:45:04 PM(UTC)
Lansweeper Deployment: Enable/Disable Individual Steps
by  Ponchohobono  
Go to last post Go to first unread
Last post: Yesterday at 5:36:44 PM(UTC)