Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

How to fix Get-CimInstance Access PermissionDenied

Posted on 24/02/202315/08/2026 Christian By Christian No Comments on How to fix Get-CimInstance Access PermissionDenied
  1. Home
  2. Windows
  3. How to fix Get-CimInstance Access PermissionDenied
cimInstance-wmi

The Get-CimInstance cmdlet gets the Common Information Model (CIM) instances of a class from a CIM server. You can specify either the class name or a query for this cmdlet. This cmdlet returns one or more CIM instance objects representing a snapshot of the CIM instances present on the CIM server. A CIM session is a client-side object representing a connection to a local computer or a remote computer. The CIM session contains information about the connection, such as ComputerName, the protocol used, or various identifiers. As you are aware, the Get-WmiObject cmdlet has been superseded with the Get-CimInstance cmdlets as discussed in this guide “How to get a list of installed applications using PowerShell in Windows“, and Windows Management Instrumentation: WMI Commands. In this article, you would learn how to fix Get-CimInstance Access PermissionDenied.

Note: The CIM is an extensible, object-oriented data model that contains information about different parts of an enterprise. The CIM is a cross-platform standard maintained by the Distributed Management Task Force (DMTF). Here are some related guides: How to get the list of installed programs locally or remote computer in Windows. How to get a list of installed applications using PowerShell in Windows. And lastly, how to delete an Instance (AssignedAccess) when applied via MDM WMI bridge Provider.

From the image below, I am running the Get-CimInstance command to query a remote device and it failed. But on my local PC with administrative rights, I am able to get the information for this specific PC. I will be showing you this very shortly, and why this is so. Here is a similar error “WinRM cannot complete the operation, verify that the specified computer name is valid, that the computer is accessible“.

image-43

Why was the Get-CimInstance Access Denied Prompted?

This error was prompted because, as you can see from the command below, I was remotely querying a device that I do not have administrative rights over using my regular (standard) Windows account. Below is the cmdlet to query the Windows-based operating system. Knowing your environment is paramount to resolving this issue.

PS C:\Windows\System32> Get-CimInstance Win32_OperatingSystem -computer TechDAPc1

Launch PowerShell with Administrative Rights

To fix this issue, you will need to run PowerShell in the context of a different user with an account that has an administrative right to manage the device.

Step 1: To do this, please launch the Command Prompt by right-clicking and selecting “Run as different user“. You may need to hold the Shift button while right-clicking as the case may be!

image-44

This step is optional: You can do the same for PowerShell as shown below

image-45

Step 2: – Query the Remote Device

You can also use the Windows Terminal as the default shell opens in Windows PowerShell. Alternatively, you can enter PowerShell in the Command Prompt terminal as shown below to switch to PowerShell. Then run the cmdlet below to query the remote device. Under the column “Registered User”,

PS C:\Windows\System32> Get-CimInstance Win32_OperatingSystem -computer TechDAPc1
image-46

Note: The difference between Get-WMIObject and Get-CimInstance cmdlets is the protocols and security in use when accessing a remote computer. Once they get to the remote computer and authenticate, WMI and CIM access the same data. Learn more from this guide “How to get the list of installed programs locally and on a remote computer in Windows“. Kindly refer to these related guides: How to Locate Your PC’s BIOS Serial Number and System Information on Windows 11, and how to Enable or Disable WMI Traffic at Command Prompt Using WMI Rule.

As discussed previously, running the command locally as an administrator will not prompt this error because I am a member of the local administrator group on this PC. Below is the output when run as a standard user having the local administrators right, and will display the output for the Win32_operatingsystem data store.

image-47

I hope you found this blog post helpful. Now, you have learned how to fix the “Get-CimInstance Access PermissionDenied” issue. If you have any questions, please let me know in the comment session.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
Windows Tags:Configure WinRM, Microsoft Windows, Windows 10, Windows 11, Windows Server 2016

Post navigation

Previous Post: Set up Cross-Region Replication for S3 Buckets
Next Post: Determine the Remote Desktop Client Version

Related Posts

  • enable or disable WinRM
    How to enable or disable WinRM via the command-line Windows
  • TrueCrypt to BitLocker
    How to Migrate from TrueCrypt to BitLocker Backup
  • How to Fix Windows Stuck on System Restore
    How to Fix Windows Stuck on System Restore Windows
  • change default apps windows 10 1
    Clean Install and PC Reset: How to perform a Fresh Start installation of Windows 10 Windows
  • Featured image DNS Server settings
    Do not use Public DNS in Prod: Change DNS Server in Windows Network | Monitoring
  • image 10
    Change Visual Studio Code UI language JIRA|Confluence|Apps

More Related Articles

enable or disable WinRM How to enable or disable WinRM via the command-line Windows
TrueCrypt to BitLocker How to Migrate from TrueCrypt to BitLocker Backup
How to Fix Windows Stuck on System Restore How to Fix Windows Stuck on System Restore Windows
change default apps windows 10 1 Clean Install and PC Reset: How to perform a Fresh Start installation of Windows 10 Windows
Featured image DNS Server settings Do not use Public DNS in Prod: Change DNS Server in Windows Network | Monitoring
image 10 Change Visual Studio Code UI language JIRA|Confluence|Apps

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

veeaam100

Veeam Vanguard

  • bannerr
    How to Disable Driver Signature Enforcement in Windows 11 Windows
  • article 1280x720.aa742702
    How to create a custom view in Windows Event Viewer Windows Server
  • windows 10 bjw3 1280x720 1
    How to Find the Pathname of a Mapped Network Drive Windows
  • VBR patch update
    Patch Veeam Backup and replication 12.3.2.3617 to 12.3.2.4165 Backup
  • win10
    How to add a device to Windows Windows
  • image 8
    Enable or disable Core Isolation Memory Integrity in Windows 10 and 11 Windows
  • amazon ec2 multiple ips 1
    What to note before assigning Multiple IPs’ to an Instance AWS/Azure/OpenShift
  • How to Completely Uninstall Norton Security
    How to remove Norton from Mac using the RemoveNortonMacFiles tool Anti-Virus Solution

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,752 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.