0 votes

Hello,

I have a simple custom command that need to update the ProfilePath of Remote Desktop Services only if the current Profilepath starts with a specific value.

I use the If <Property> condition and TerminalServicesProfilesPath contains = \servername\path" but the result is never true so the value is not updated.

Thanks in advance.

Ten

ago by (5.2k points)

1 Answer

0 votes
ago by (162k points)

Hello,

Unfortunately, it is not possible to use the If <property><relation><value> condition to check the value of TerminalServicesProfilePath as it is a flag of the Remote Desktop Services Settings property, not a separate property. You need to use the If PowerShell script returns true condition and the below script. In the script, the $valueToCheck variable specifies the value from which the TerminalServicesProfilePath should start for the condition to be met.

$valueToCheck = "\\server*" # TODO: modify me

$Context.ConditionIsMet = $Context.TargetObject.TerminalServicesProfilePath -like $valueToCheck
0

Thank you!

Related questions

0 votes
1 answer

How do change the display name of a custom attribute in version 2017.2? All the information I am finding contains links that bring me to 2018 version

asked Nov 1, 2018 by hgletifer (4.6k points)
0 votes
1 answer

Dear Is it possible to change the values of a custom attribute (adm-CustomAttributeTextMultiValue4) when selecting a value from another custom attribute (adm-CustomAttributeText1). For ... , 2Latijn, 3Latijn, etc... Is this possible? Sincerly Hilmi Emre Bayat

asked Aug 26 by hilmiemrebayat (510 points)
0 votes
1 answer

We are trying to get a scheduled task to run every Friday night at 10:00pm to pull the users needed to be fully deprovisioned by the custom command we have created.

asked Dec 2, 2016 by willy-wally (14.5k points)
0 votes
1 answer

As the title says, Im looking to add a Custom Command to the Action pane that I plan to allow users to trigger a script to run. However when in the Web Config for ... as has the permissions to make changes to the Web Inferface. Am I missing something? Thanks

asked Jul 16 by Helios5287 (510 points)
0 votes
1 answer

Hello - I'm working on my companies off boarding process and need to run a Custom Command that turns off access to different systems and resources at the ... -9612-c7c982baa49f}" $user.ExecuteCustomCommand($commandID) # Save the Scheduled Task $task.SetInfo()

asked Jul 16, 2015 by jakesomething (1.1k points)
2,031 questions
1,806 answers
5,156 comments
1,018 users