Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 5 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
We need to get desktop shortcuts on remote systems. The code below works for the Public desktop but not for the users desktop. But if I run this in PowerShell ISE then it works for both. What did I do wrong?
Hi, you wrote:
Did you forget to assign a computer name to "$computer"? Yes it does have a value. This is part of a PowerShell Studio form.
Did you forget to use "expression evaluator" on the control property? - Yes I don't see it. what is the expression evaluator?
It is formally referred to as the "subexpression operator".
https://ss64.com/ps/syntax-operators.html
It allow an expression to be forcibly evaluated in an expandable string. Look at my original code to see where I used it.
"dot" referenced object properties do not expand in a string. They must be forced to evaluate using the subexpression operator.
This topic is 5 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.