Microsoft
Software
Hardware
Network
Question : get-wmiobject error - Powershell
I am getting this error trying to querry a remote print server on my local LAN:
Get-WmiObject : Access denied
At C:\Documents and Settings\me\My Documents\Scripts\Print-st
atus-test-
3b.ps1:3 char:26
+ $colItems = get-wmiobject <<<< -class "Win32_Printer" -namespace "root\CIMV2" `
+ CategoryInfo : InvalidOperation: (:) [Get-WmiObject], ManagementException
+ FullyQualifiedErrorId : GetWMIManagementException,
Microsoft.
PowerShell
.Commands.
GetWmiObje
ctCommand
Answer : get-wmiobject error - Powershell
As the command states, you dont have access to WMI on that print server
Try running the script as a user that has those permissions.
Random Solutions
ms sql calculation in wrong
How to show Inbox Time column?
Dreamweaver PHP MySQL Session Variables
Can't set Datagridview data source to list object
add name to combo box on form
What to do when MS Forefront fails?
HTML 5: UML diagram drawing: Sequence diagram: Class(Clazz).
Free hierarchical DB available?
how to empty a mailbox of microsft exchange2000 from the server?
Lables printing problem using MS Word