What is the PowerShell command you run to find the enumID for an extended property?
Best Answers
-
Simon_Zeinhofer Customer Ninja IT Monkey ✭✭✭✭
$SMDefaultComputer = 'YOURSCSMSERVER' $enumId = (Get-scemenumeration -Name 'NameOfYourEnumeration').id
1 -
Simon_Zeinhofer Customer Ninja IT Monkey ✭✭✭✭
Ah sry, got a typo here 🙈 It's
get-scsmenumeration
instead of
get-scemenumeration
of course 😁
0
Answers
I am getting this error when I run the command in PowerShell.
Get-scemenumeration : The term 'Get-scemenumeration' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:2 char:12
+ $enumId = (Get-scemenumeration -Name 'Expedited').id
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-scemenumeration:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Ah sry, got a typo here 🙈 It's
instead of
of course 😁
I didn't get any errors, but the command did not display the enum value.
Close. You're looking for DisplayName.
What is the internal name of the enumeration? Is expedited the parent value or a child of another enumeration?
Also you have to type $emumId inside the shell, else it won't show it.
It is working now. Thanks for your help.
Very glad to hear this