In another vid we saw that PowerShell variables could not be retyped except explicitly (e.g. [int]$var = 5) but here you just set $var = 5 which turned it from a string to an int. Confused.
Garry S If you have an array of 5 items and you want to specifically access one of those objects. As an example, suppose you had an array of 5 names, lets say users. And you realize that user 3's name is spelled wrong. You can access that specific item using $arr[2] to change the contents.
4 ปีที่แล้ว
backticks are disgusting and outdated. Everybody who use this shit is crazy
Great video, and excellent delivery of the subject matter! Thanks for this and all other videos that I am now going to start watching!
In another vid we saw that PowerShell variables could not be retyped except explicitly (e.g. [int]$var = 5) but here you just set $var = 5 which turned it from a string to an int. Confused.
Hi
I just want to know why Powershell script takes more time to return values when i try to get win32_product?
What would ever be the point in wanting to call $arr[0] or $arr[1], [2], [3], and so forth....
Garry S If you have an array of 5 items and you want to specifically access one of those objects. As an example, suppose you had an array of 5 names, lets say users. And you realize that user 3's name is spelled wrong. You can access that specific item using $arr[2] to change the contents.
backticks are disgusting and outdated. Everybody who use this shit is crazy