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
How to replace hard drive on Sony VGN-NS240E laptop. PCG-7153L
union issue in SQL 2k
MVP's: Is there a currently accepted standard for optimizing workbook calculations?
What is the color of a toolstrip in vb.net 2005
Graphics2D.clearPolygon(Po
lygon p) ?
How do i convert the images i create into themes to be sold for different phones
T-SQL while loop
Dell 5310n - Additional tray not showing in printer settings
Google Merchant Account
Count in a Query