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
Mysterious Access Query
Help installing sever 2008 on Microsoft Visual Studio 2008
Install and Configure Windows 2008 Terminal Server on a Windows 2003 AD domain
SQL cannot find stored procedure
Linux RH: how to ping a port?
Add a form in an Organisational Forms library
Can i use Windows 2003 server OS on IBM RS6000 P520 Server hardware?
Exchange 2003 - schedule mail delivery to particular mailbox
Demoted windows 2003 domain controller log on
Cannot print to an HP LaserJet 1200 Printer in Terminal Server