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
nested tables in jquery
Using Jave SE 1.6, how can I determine the charset/encoding type of text inside a file?
AD site and services best practice
How to get a formula to calcutate even if one of the fields in it is null
Command Button Help!!
custom ADM which will restrict and hide all drives except F on Windows 2008 Server
Install MS Visual Studio .NET/SQL Server and PHP/MySql on the same computer
How to run an executable packaged inside a JAR?
How to make Windows 2000 server support disk greater than 250GB?
Export Query to Excel from Access 2007