fishman
fishman

Reputation: 15

What does Cs (as in ComputerInfo.CsName) mean when you run Get-ComputerInfo in powershell?

I've been digging through documentation and haven't been able to find where it mentions what it is actually short for. I assume it means Computer System but that's just a guess on my part. If anyone knows I would love to learn. It's nothing super important, just a nagging question I can't find a sure answer to.

Upvotes: 1

Views: 937

Answers (1)

vonPryz
vonPryz

Reputation: 24071

Only the developers can tell, but I'll hazard a guess. The reason is to differentiate operating system from computer system. Take a look at cmdlet's source code for further details.

The cmdlet gets its data from CMI class CIM_OperatingSystem. Since it also has Cs prefix for certain members, it is likely the cmdlet developer has used the same name to avoid confusion.

Upvotes: 2

Related Questions