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
Cpanel - 301 redirect parked domains on one account
where to buy the correct aspect ratio
Is there a quick way to change all Active Directory user aliases to lower case?
Not sure how to fic Exchange 2010 virtual directories.
How do I combine the same methods used in 5 different Code behind files?
outer joins in MS Access
new SMTP connector to Ironport not working!
Size in all deleted item in Exchange 2007
Outlook Sync multiple users and multiple computers
mssql - I need to build multiple where conditions in a select statement using asp.net