Hi everyone,
I'm fairly new to Powershell, so forgive the ignorance.
I just saw the Pluralsight introduction course to Powershell Studio 2016, and i'm interested in downloading the trial version and testing it, but during the course, the trainer would double click a control and then start typing in code that looked like powershell, but was slightly different.
ex: a variable was created like this: $script:computername = $env:Computername
I was under the impression that we declare a powershell variable using just the $var= myvalue
So, my question is: is this a separate language being used here?
thanks!
The Language used...
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
Re: The Language used...
Scope modifier. Script scope to be exact. PowerShell language. This has nothing to do with PowerShell Studio, but of course I encourage you to get the trial anyway
I would also suggest a PowerShell book before building GUIs. It is very easy to get overwhelmed with PowerShell.
https://www.sapien.com/books_training/W ... werShell-4
I would also suggest a PowerShell book before building GUIs. It is very easy to get overwhelmed with PowerShell.
https://www.sapien.com/books_training/W ... werShell-4
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: The Language used...
Thank for the info Alexander!
I'll look into the link you suggested.
Do you know if there's a book that has working examples of form controls and powershell code to help newbies like me get a running start?
I'll look into the link you suggested.
Do you know if there's a book that has working examples of form controls and powershell code to help newbies like me get a running start?
- juneblender
- Posts: 93
- Last visit: Thu Mar 30, 2017 8:54 am
Re: The Language used...
Great question. Start with about_Scopes: https://technet.microsoft.com/en-us/lib ... 47849.aspx
That topic explains scopes and scope modifiers and includes examples that you can try.
That topic explains scopes and scope modifiers and includes examples that you can try.