When trying to run get-smproperty using Powershell 3, One will receive an error similar to the following:
```
add-member : Cannot add a member with the name "Class" because a member with that name already
exists. If you want to overwrite the member anyway, use the Force parameter to overwrite it.
At line:2 char:35
+ $class.GetProperties("recursive")|add-member -pass NoteProperty Class $class |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (SRText1:PSObject) [Add-Member], InvalidOperation
Exception
+ FullyQualifiedErrorId : MemberAlreadyExists,Microsoft.PowerShell.Commands.AddMemberCommand
```
Repro steps:
1. Open Powershell V3
2. Import SMlets module
3. Run : get-smproperty -classname [classname guid from XML or SCSMAuthoring Tool]
Workaround:
1. Open powershell v2 (start > run > powershell -v 2)
2. Run commands as normal.
Comments: ** Comment from web user: radtravis **
```
add-member : Cannot add a member with the name "Class" because a member with that name already
exists. If you want to overwrite the member anyway, use the Force parameter to overwrite it.
At line:2 char:35
+ $class.GetProperties("recursive")|add-member -pass NoteProperty Class $class |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (SRText1:PSObject) [Add-Member], InvalidOperation
Exception
+ FullyQualifiedErrorId : MemberAlreadyExists,Microsoft.PowerShell.Commands.AddMemberCommand
```
Repro steps:
1. Open Powershell V3
2. Import SMlets module
3. Run : get-smproperty -classname [classname guid from XML or SCSMAuthoring Tool]
Workaround:
1. Open powershell v2 (start > run > powershell -v 2)
2. Run commands as normal.
Comments: ** Comment from web user: radtravis **
Interesting. Works the first time. Fails subsequent times.