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
Desktop freezes; iexplore process still running
Sage Accounts 50 2008 transaction mail invoice layout
Locked out of my own server
conditional formating on continuous form to make bottom row change colour
Wireless access in very large house
SBS 2003 AD, have outlook auto add user when loggin
Bilateral Referential Integrity
unable to get reply from other computers
VBA timing out on SQL Server update
Problem sending meeting request in outlook 2010 with exchange 2010 to members within my GAL.