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
Where can I download the BNA Income Tax Planner program from?
Create a Generic Service using Cluster.exe
Access Query
How do I reset a VERY stubborn default (htm/html)?
Exchange 2007 SCC Cluster
How to set up Wireless Home Network with Mcafee Firewall that is SAFE from public
Set JTable cell text to bold
Java application, sequency diagram triggered test
Javascript question on populating required field
Win 7 versus XP - is win 7 way better, more stable than xp?