Mis-spelling in Powershell
This was spectacularly incompetent even by my high standards of incompetence.
PS SQLSERVER:\> get-wmiobject -class win32_operatingsystem -computer rdm016 | select __Server, ServicePackMajorVerstionAnd got:
__SERVER ServicePackMajorVerstion -------- ------------------------ RDM016I thought that no service packs had been applied. This, as more attentive readers will have spotted, was no the case. The null under ServicePackMajorVerstion is because you don't spell 'version' with a 't'. Two learnings from this:
- one should test one's code
- if you put something invalid in a 'select' list in Powershell it won't necessarily error

RSS