Guide
CimCity shows the Windows Common Information Model (CIM) as a city. Use this guide to read the city, bring your own machine or Microsoft Configuration Manager site into it, and run it live.
Last updated November 9, 2026
Explore the city in learn mode
Open the city in any modern browser. You don't install anything, and nothing is uploaded. Learn mode starts with a sample city. It has two cities, each with its own page:
- Windows CIM (
/learn/cim/):root\cimv2and its neighbors, from a hand-made subset of a Windows 11 machine. - ConfigMgr (
/learn/configmgr/): the SMS Provider of a sample Configuration Manager site, PS1.
To move around the map:
- Drag to pan.
- Scroll or pinch to zoom, or double-click or double-tap to zoom in.
- Use the zoom control at the bottom right to zoom in, zoom out, or show the whole city.
To go inside a building:
- Select a building. It opens in the side panel.
- In the side panel, select Enter building.
To browse without the map, or with the keyboard alone, use the list of towns in the side panel. Select a town to list its neighborhoods, select a neighborhood to list its buildings, and then select a building. Tab moves between the buttons, and Enter or Space selects one.
To find a class, enter its name in Find a class, and then select Route. To get directions to the building that's open in the side panel, select Directions here.
The toolbar turns on the Traffic, Zoning, and Underground overlays. In a live city, Life (on by default) shows change as it happens: with Traffic on, a building where residents arrived, left or changed glows amber, people walk to its door, a class that appears is built by a crew that drives out of the region's construction yard, puts it up as a frame under a crane, and drives back, a class that goes is boarded up and then demolished, and a new namespace becomes a new town. Reduced motion shows the end state at once: a change is a glow and a small marker at the building's door. Settings has a slide switch for Animation effects, which starts at what Windows says and keeps what you choose, and one for Life. It also opens Data, where you import an export, and switches Dark mode on or off. Dark mode is a fixed choice; to have the map follow your clock instead, turn on Day and night follow the clock in Settings: day from 07:00 to 19:00, night the rest, changing on its own at those times. Turning Dark mode on or off again goes back to a fixed theme. On a phone, these controls are behind the menu button.
You can link straight into the city:
/learn/opens the Windows CIM city. Older/learn/#windowsand/learn/#configmgrlinks still work./learn/cim/?route=Win32_Processopens directions to a class.
Read the city
Every part of the city is a real piece of CIM:
- District and neighborhood: a namespace.
root\cimv2is Downtown. In Configuration Manager, the site namespaceroot\SMS\site_<code>is one district, split into neighborhoods by feature area, such as App Quarter, Device Heights, Inventory Archive, Collection Square, Update Docks, Task Sequence Rail Yard, Deployment Exchange, Package Wharf, Compliance Court, Defender Watch, Status Tower, Cloud Gate, and Civic Center.root\SMSis the Provider Gate, which says where the site lives. - Street and block: a base class. Every building on CIM_LogicalDevice Ave. inherits from
CIM_LogicalDevice. Big streets are avenues, and small ones are streets. Classes with no base class sit on Founders Plaza. - Building: a class. Its height shows how many instances it has, and the height sets what it looks like up close: bungalows and houses for the smallest classes, then shops, offices and apartments, then high-rises and skyscrapers for the biggest. In the industrial zone and the port, buildings are sheds, factories and works. Abstract classes are blueprints: they have no residents of their own.
- Residents: instances, such as the real CPU, disk, process, device, app, or collection. Inside a building, the lobby lists the class's properties and where each one was inherited from. A tower has at most 20 floors. Up to 20 residents, each floor is one resident. With more, each floor is a block of apartments, one per resident, in the same order as the list: 200 residents are 20 floors of 10 apartments, labeled Apartments 191-200 and so on, and apartment 1 is the last resident listed. Select an apartment to open its resident. Top floor and Lobby jump to either end, and Show more residents adds apartments (the floors then regroup, still 20 at most). The grouping is a default, set by
TOWER_FLOORSin the page source. - The region: the towns stand on one landscape, joined by roads that go round any town in the way. A river runs from the north edge to the sea, with a bridge wherever a road or the rail line crosses it; a rail line runs between the two biggest towns, with a platform at each end; hills and woods fill the open ground. The landscape is only scenery: it comes from the namespace names, so the same machine always gets the same region, and nothing is placed around it. You see the river, the hills and the rail line at every zoom; the sleepers, rails and the bridges' parapets appear as you zoom in.
- Underground and transit: subway lines are association classes, which link residents of two buildings. A building's basement is the station for its lines. Configuration Manager also has highways and trains. A highway is a property that holds another object's ID:
TargetCollectionIDdrives toSMS_Collection. A train is a link class that declares two such IDs itself, such as collection membership (CollectionIDandResourceID), which runs between collections and resources. Classes that only inherit the IDs don't get their own train. Dashed lines are abstract. - Zoning: where a class comes from, such as the
CIM_standard,Win32_,MSFT_, or a vendor. In Configuration Manager, zoning separatesSMS_provider classes from theSMS_G_classes that hardware inventory generates. - Traffic: a performance snapshot of CPU, processes, disks, network, and memory. In Configuration Manager, it shows deployment and software update status. Busy buildings and their streets glow red.
- Directions: the route to a class drives through its namespace and visits every base class it inherits from, in order. It also shows the same lookup in PowerShell. Select Call a cab to watch a CIMTaxi drive it: it leaves the taxi rank, picks you up at the class's ultimate parent, and stops at each base class on the way. The view follows it; close the directions to end the ride.
- City services: select City services in the side panel to see what needs attention. Police lists the buildings that refused your account (access denied). Healthcare lists the buildings that couldn't be read, such as a timeout or a provider failure. Public transport lists the transit lines. Garbage collection lists the classes deleted while you watched. In a live city with Life on, a police car, an ambulance, or a garbage truck drives from the construction yard to each of those buildings and back. A sample city has no failed reads, so its police and healthcare lists are empty.
Export your machine
Export a Windows machine to see its own city. The exporter runs on Windows 10, Windows 11, and Windows Server, in Windows PowerShell 5.1 or PowerShell 7.
- Download Export-CimCity.ps1, or in the city, go to Data and select Save Export-CimCity.ps1.
- In PowerShell, go to the folder that has the script, and then run this command:
powershell -ExecutionPolicy Bypass -File .\Export-CimCity.ps1
- In the city, select Data.
- Drop
cimcity-<COMPUTERNAME>.jsonfrom the current folder onto the drop area.
Exporter parameters
-Path: where to write the file. The default is.\cimcity-<COMPUTERNAME>.json.-Namespace: the namespaces to export. The default isroot\cimv2,root\StandardCimv2,root\wmi,root\Microsoft\Windows\Storage,root\ccm\ClientSDK,root\ccm\Policy\Machine\ActualConfig,root\ccm\InvAgt, androot\dcim\sysman. The exporter skips namespaces that don't exist and shows a warning.-MaxInstances: how many sample residents to save per class, from0to50. The default is3.-NoInstances: export the schema only, with no counts and no sample residents. The performance snapshot is still included.-CountCap: stop counting a class at this many instances, so huge classes don't take too long. The default is5000. A capped count shows as 5,000+.-TimeoutSec: how long to wait for each class's instances, from1to120seconds. The default is5. A class that times out shows an unknown count.-ConfigMgr: export the Configuration Manager SMS Provider instead. For more information, see Export a Configuration Manager site.
Permissions
A standard user can export most of root\cimv2. To read every namespace, run PowerShell as administrator. Otherwise root\ccm and some providers refuse, and their classes show an unknown count.
What the exporter skips
The exporter doesn't read these classes, because reading them is slow or has side effects:
Win32_Productand every other class from the Windows Installer provider (MSIProv), such asWin32_SoftwareFeatureandWin32_Patch: listing any of them makes Windows Installer check and reconfigure every installed product. That's slow, can start repairs, and fills the Application log with MsiInstaller event 1035. CimCity finds these classes by their provider, not by a list of names.- File and directory classes (
CIM_DataFile,CIM_Directory,Win32_Directory,CIM_LogicalFile,Win32_ShortcutFile, andWin32_CodecFile): they walk the whole disk. - Event logs and records (
Win32_NTLogEvent,Win32_ReliabilityRecords, and Configuration Manager status messages) andWin32_Perf*counters: they're huge or always changing.
It also limits or leaves out these classes:
- Account classes (
Win32_Account,Win32_UserAccount, andWin32_Group) are limited to local accounts, so a domain-joined machine doesn't list the whole domain. - Abstract and association classes have no residents of their own, so the exporter never lists their instances.
Skipped classes still appear as buildings, with an unknown count.
Check an export before you share it
The script sends nothing anywhere. It cuts long values at 200 characters. For more information, see Privacy.
Export a Configuration Manager site
Run the exporter on the site server or the SMS Provider machine, with an account that has read access to the site in Configuration Manager:
powershell -ExecutionPolicy Bypass -File .\Export-CimCity.ps1 -ConfigMgr
The exporter finds the local site through SMS_ProviderLocation, and then exports root\SMS and root\SMS\site_<code>. If there's no SMS Provider for a local site, it stops with a message.
The traffic snapshot shows deployment status from SMS_DeploymentSummary (in progress or failing), and deployed software updates that devices are missing from SMS_SoftwareUpdate.
Any file whose namespaces include root\SMS opens on the ConfigMgr tab.
How CimCity finds neighborhoods, highways, and trains
CimCity uses only class and property names, not data. That's why the same lines appear for a schema-only export.
- Neighborhoods come from class name patterns. For example,
SMS_Application*andSMS_DeploymentType*are App Quarter,SMS_R_*andSMS_G_*are Device Heights,SMS_GH_*andSMS_GEH_*(inventory history) are Inventory Archive, andSMS_Collection*is Collection Square. The patterns were fitted to a real site's class names (about 1,250 buildings on one lab site). Event indication classes (CIM_InstCreation,SMS_InstanceChangeNotification) go to the Radio Tower Quarter, and the error objects a read can return (CIM_Error,MSFT_WmiError) go to Status Tower. Classes that match no pattern go to Site Hall, which keeps site administration: site control (SMS_SCI_*), sites and boundaries, discovery, migration, console data, schedule tokens, and the data warehouse. Site Hall holds 109 of those buildings, about as many as Task Sequence Rail Yard (115). A neighborhood is a guess made from names, not Microsoft's feature list, so a class can land in the wrong one. - Highways: a class with exactly one key property that ends in
IDowns that ID. For example,SMS_CollectionownsCollectionID. When several classes have the same key, the owner is the class named after it (SMS_ResourceforResourceID), then the class most other classes are built from. Any other class with a property whose name ends in that ID, such asTargetCollectionID, gets a highway to the owner. CimCity ignores generic keys such asSiteIDandGroupID. - Trains: a class with two or more of these properties is a link class, so it becomes a train between the two owners.
A few things in a live Configuration Manager city are the way they are on purpose:
- Some IDs have no ride. An ID owned by a blueprint with more than 12 concrete classes (
CI_ID) has no highway. A collection has no ride to the deployments that target it, because that highway starts at an abstract base class (SMS_CIAssignmentBaseClass). A collection reaches its devices in two rides: first its membership rows (SMS_FullCollectionMembership), then the device. - Some classes can't be filtered. A filtered read is a query, which also reads subclasses, so a class that has subclasses (such as
Win32_Service) answers "skipped". The SMS Provider also refuses a filter on a Boolean property. - The town board and the neighborhoods count differently. The town board counts the classes the site serves. The neighborhood numbers count buildings, so they add up to fewer: association classes run underground and have no building. The list of towns closes the gap with an Underground (associations) row (15 on that lab site), so the numbers add up to the board.
- **A resident of
SMS_Programhas two keys**, so its name readsLAB00005 / Configuration Manager Client Upgrade Program. - New export files hold 64-bit values as text. Old export files still import.
Run live mode
Live mode shows your own machine right now. The landmark buildings show real counts, and every building you enter gets its live residents. It runs in the desktop app, which is the same page in a Windows window, live from the start, with no script, browser, or token. The desktop app is in development and isn't released yet; for now you build it yourself (see the README). In a browser tab, use the exporter and load the file with Data.
The app reads only the machine it runs on, read-only, through the Microsoft Management Infrastructure (MI) .NET API. It needs Windows 11 or Windows 10 with the Microsoft Edge WebView2 runtime, which is built into Windows 11, on x64 or ARM64. It's self-contained, so you don't need to install .NET.
Start as a standard user. Buildings that need more rights say "Access denied", and running the app as administrator fills them in.
On a Configuration Manager site server or SMS Provider machine, the app finds the local site through SMS_ProviderLocation and shows it on the ConfigMgr tab, with nothing to turn on. You see what your account's role, its security scopes, and its collections allow; an account with no role sees a site where most buildings are empty, and CimCity says so. If there's no SMS Provider for a local site, or your account can't read root\SMS, that tab keeps its sample.
On a Configuration Manager client, the client's own namespaces are part of the Windows CIM city, because they live on this machine and not on the site: root\ccm\ClientSDK (The Port: applications, updates, programs), root\ccm\Policy\Machine\ActualConfig (Policy Wharf: the policy the client is using), and root\ccm\InvAgt (Inventory Docks: the inventory agent). Policy needs the app to run as administrator; for a standard user it isn't shown. A building you can't read says "Access denied". When the site is loaded too (a client that is also the site server or SMS Provider machine), a resident of CCM_Application or CCM_SoftwareUpdate offers a ride under Transit from this resident, CI_UniqueID to SMS_Application in the site (or SMS_SoftwareUpdate), which opens the ConfigMgr tab on its site object. An application matches by its Id and Revision (ScopeId_x/Application_y/3), and an update by its UpdateID. The site object shows only if your role, security scopes, and collections allow it. With no client, nothing changes.
In a live site you can also do the following:
- See every property of a resident. A list from the SMS Provider leaves some properties empty, such as a collection's rules or an application's XML. When you open a resident, CimCity asks for that one object and fills them in.
- See more residents. A building shows the first 200 residents. Select Show more residents to add the next 200.
- Follow an ID to the residents it points at. Open a resident, and then choose a line under Transit from this resident. For example, open a collection and choose
SMS_FullCollectionMembership by CollectionID. The building opens with only that collection's members. Open a member, and then chooseResourceID to SMS_Resourceto arrive at the device. In the same way, a deployment'sTargetCollectionIDtakes you to its collection. To see the whole building again, select Show all residents. - See deployment and update status. Turn on Traffic.
SMS_DeploymentSummaryshows the share of deployments in progress or failing, andSMS_SoftwareUpdateshows deployed updates that devices are missing. CimCity reads these numbers from the site at most every 30 seconds.
Turn on Traffic to see live load: CPU, processes, disks, network, and memory, read about every 2 seconds. Busy buildings and their streets glow, and inside Win32_Process each process shows its CPU %. To stop reading, select Pause in the legend. Reading also stops while Traffic is off or the window is hidden.
The app only reads, unless you unlock the Services desk (below). The page can call allowlisted routes and can't send its own queries. To follow an ID, the page sends a property name and a value, and the app builds the filter. For the routes and their error codes, see the CimCity live contract.
Call a method at the Services desk
Every building's lobby and every resident has a Services desk card that lists the class's methods with their parameters, read from the class definition. The lobby lists the static methods, and a resident lists its own, such as StopService on a Win32_Service resident.
The desk starts locked, so CimCity is read-only. To call a method:
- Select Unlock for this session, and then select Yes in the CimCity dialog that asks. While it's unlocked, the interior shows Services desk unlocked. Closing the app locks it again; it's never saved.
- Select the method, for example
StopServiceon theSpoolerresident. The card shows its parameters and the same call in PowerShell (Invoke-CimMethod). Fill in any parameters you want to send, and then select Call StopService. The card says "Waiting for your answer in CimCity…". - Check the CimCity dialog. It names the namespace, class, method, the resident's keys and each parameter, and shows the same call in PowerShell. Select Yes to call it, or No (the default) to leave it. It asks every time, and only this dialog can say yes: the page can't.
The result, ReturnValue and any out parameters, the error, or "Not called" after a No, shows on the desk card. To make CimCity read-only again, select Lock.
- Only String, integer, and Boolean parameters can be sent. A parameter of another type, such as a date or an object, is left out.
- A resident is named by its key properties, never by a query, so a resident with a key that isn't text, a number, or a date can't be called.
- Every call is logged as one line in
%LOCALAPPDATA%\CimCity\invoke.log: the time, namespace, class, method, the resident's keys, the parameters, and the result or error. A parameter whose name looks like a password or credential is logged as(hidden). - Classes on the skip list, such as
Win32_Product, aren't called.
Configuration Manager actions
In Configuration Manager, the Services desk calls only three kinds of actions; every other ConfigMgr method is listed without Call. Like any call, each is asked again in CimCity's own dialog, which names its target; select Yes there to call it:
- Refresh a collection's membership. Open a collection in the
SMS_Collectionbuilding, selectRequestRefresh, and then select Call RequestRefresh. To refresh its subcollections too, setincludesubcollectionstotrue. - Send a client notification to a device. Open a device in the
SMS_R_Systembuilding, choose the type on its Services desk card, and then select Send a client notification. The types: machine policy retrieval, user policy retrieval, discovery data collection, software inventory, or hardware inventory. It goes to that device only (through All Systems,SMS00001); the result is theOperationID, which you can follow in the console under Monitoring > Client Operations. - Ask the local client. In the
root\ccm\ClientSDKtown, open theCCM_ClientUtilitiesbuilding's lobby, selectDetermineIfRebootPending(reads whether a restart is pending) orGetMachinePolicy, and then select Call (asks the client to retrieve machine policy now).RestartComputerisn't offered.
Live mode limits
- Paging stops at 5000 residents. A class on the skip list, such as
SMS_StatusMessage, is never read. - You can follow an ID only into a class that has no subclasses, and only when the ID is text or a whole number. An ID owned by a blueprint, such as
ResourceID, is looked up in the buildings built from it when there are 12 or fewer. - Locked-down machines can't run the exporter: Constrained Language Mode makes it exit with a message, and an
AllSignedexecution policy set by Group Policy blocks it. The desktop app doesn't run a script, so it isn't affected.
Import format
An export is one JSON file in the cimcity/1 format. Live mode and the desktop app return the same shapes.
{
"format": "cimcity/1",
"machine": "MYPC",
"os": "Microsoft Windows 11 Pro",
"exportedAt": "2026-11-09T10:00:00.0000000+00:00",
"namespaces": [
{ "name": "root\\cimv2", "classes": [ ... ] }
],
"perf": { ... }
}
Class keys
Each class uses short keys to keep the file small:
n: the class name.s: the superclass name, or empty for none.a:trueif the class is abstract.as:trueif it's an association class.p: the properties, as{ "n": name, "t": CIM type, "k": is key, "r": reference class }.rappears only on references.m: the method names.c: the instance count, or-1when it's unknown because the class was skipped, refused, or timed out.cx:trueif the count stopped at-CountCap.i: sample instances, as objects that map property names to values. Embedded objects are left out, lists are joined with commas, and long strings are cut at 200 characters.
Performance snapshot
perf is the Traffic snapshot, keyed by class name. Configuration Manager entries are keyed <namespace>|<class>. Each entry is { "metric": label, "load": 0-100, "top": [{ "name", "value" }] }. Windows exports cover Win32_Processor, Win32_Process, Win32_LogicalDisk, Win32_NetworkAdapter, and Win32_PhysicalMemory.
The importer is forgiving. A file still loads if it has a single value where a list is expected, a byte-order mark, or a missing field. It refuses a file over 80 MB, a file with more than 500 namespaces, and a file whose format isn't cimcity/1, and it says why.
PowerShell equivalents
Every view in the city has a Copy button with the matching PowerShell. These are the patterns.
Get a class's lineage
Directions follow these steps:
$c = Get-CimClass -Namespace root/cimv2 -ClassName Win32_LogicalDisk
while ($c) { $c.CimClassName; $c = $c.CimSuperClass }
List a class's instances
This is the same as knocking on every door in a building:
Get-CimInstance -Namespace root/cimv2 -ClassName Win32_Process
Follow an association
This is the same as riding a subway line:
Get-CimInstance -Namespace root/cimv2 -ClassName Win32_DiskDrive |
Select-Object -First 1 |
Get-CimAssociatedInstance -Association Win32_DiskDriveToDiskPartition
Follow an ID in Configuration Manager
This is the same as driving a highway:
$from = Get-CimInstance -Namespace root/SMS/site_PS1 -ClassName SMS_ApplicationAssignment | Select-Object -First 1
Get-CimInstance -Namespace root/SMS/site_PS1 -ClassName SMS_Collection -Filter "CollectionID='$($from.TargetCollectionID)'"
Read a link class in Configuration Manager
This is the same as riding a train:
Get-CimInstance -Namespace root/SMS/site_PS1 -ClassName SMS_FullCollectionMembership |
Select-Object -First 5 CollectionID, ResourceID
Troubleshooting
- "Access denied", or a building with an unknown count: that provider needs an administrator. Open PowerShell with Run as administrator, and run the script again. In the desktop app, run it as administrator.
- "Skipping namespace", or a missing namespace: not every machine has every namespace. The
root\ccmnamespaces exist only on Configuration Manager clients (and policy needs an administrator), androot\dcim\sysmanonly with Dell's provider. To choose your own list, use-Namespace. - Slow providers and timeouts: raise
-TimeoutSec, for example to-TimeoutSec 15. - Large Configuration Manager sites: counts stop at
-CountCap(default5000), and the exporter saves only-MaxInstancesresidents per class. For the smallest file, use-NoInstances. - The script doesn't run: use the
-ExecutionPolicy Bypasscommand shown earlier. Constrained Language Mode and anAllSignedpolicy set by Group Policy block the exporter, so export from another computer where scripts can run.
Still stuck? Send an email to hello@cimcity.app. Don't attach an export.