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
Windows 7 Pro, won't join domain.
OUTLOOK 2007 no INDEX to search ON
there was a smtp communication problem with the recipient's email server
Will VMWare run on HP Proliant ML110G6 X3430, vShpere WAN performance
Path.Combine with UNC network path
recommended swap space
How to choose better iSCSI server software for cluster
Why doesn't this very simple C program not work all the way through?
comments in code
Platform to build the Social Network on