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
Hardware Interrupt and CPU
Forest Migration
Hyper-V machines missing after Windows upgrade
linkbutton does not run
Can't map a drive to a redhat server from Window7Pro?
Remove ListItem from RadioButtonList inside a GridView
Exchange 2007 some groups get Calendar invites just as email
How to best format an SD Card or a Pendrive?
How could you resize & place images automatically in a PowerPoint file at a specific location on each slide?
Anyone know exactly triggers the "this program may have installed incorrectly" dialog?