Tag: PowerShell

PowerShell – Multidimensional arrays in PowerShell

You may have some arrays like this:

Then you may want to combine them together:

But unfortunately it’s not simple like this… You will get:

Suppose to be 2, right? Why it’s 6… Let’s identify…

But what I want it to be is $School contains $year1 and $year2, and $year1 contains…

PowerShell – Working behind a Proxy with Authentication

Sometimes you will need to work in a company that has a Proxy Server configured for security reason… I know it’s bit annoying. Especially when I’m trying to connect my Azure Account:

Then I got:

Proxy Authentication… ah… By checking the winHTTP settings:

All we need to do is: Tell PowerShell using…