Get a Header in an Array

Today I’ve been asked, how I can get a “header” for an array. So you can access the  contents via a property like $Obj.AccountName.

image => image

The idea was given by

Import-Csv -Header

I found some solutions to this.

Explicit with a class

### Explicit with a class
class User
User ([String[]]$Username)
           $this.Accountname = $Username
@('myUser','Your') | % {[User]::new($_)}

Implicit with select (somewhat shorter)

@('myUser','Your') | select @{l='Accountname';e={$_}}

Implicit with PSCustomObject

@('myUser','Your') |  %[PSCustomObject]@{ Accountname = $_ }} 


What are the results? Are the results equal?

The result always look like this:


In each case we get an object array (Object[]). But there are different objects in it. With the class version there are self defined “User” Objects in the array. In the two other cases we get an unspecific PSCustomObject.


Experts Live Café Austria/Linz Review

Our event is over and it was great! An exciting Experts Live Café in Linz with nearly 20 participants, including 6 MVPs.

This time we had a Docker session with Michael Pambalk-Rieger’s on our agenda. He added some new parts to his session on the Experts Live Conference. And he had so much to tell, that he run out of time.

Next, Roman Stadlmair explained service maps to us and gave us a few practical examples.

Helmut Otto rounded off our program with Azure IoT today – he showed us Azure IoT and gave us some anecdotes.

Afterwards, we were able to enjoy the catering of Secureguard with a cosy networking.

We are already looking forward to our next events.


Experts Live Café Austria/Linz Review

On October 5th we had our Experts Live Café in Linz/Leonding at Cubido.

Good atmosphere and technically experienced participants brought us an exciting evening with 3 interesting lectures and many, many discussions.

This time the main topic was “Security”. Christian Olescher started with “Is PowerShell dangerous?” – a lecture dedicated to security under the current PowerShell version 5.1. Some content was based on the blog post by David des Neves – PowerShell Security at Enterprise Customers.

Next, Karl Lehner gave us an impressive presentation on “Bitlocker” – not only technology, but also hints on how to organize the Bitlocker in companies.

In the third lecture, Stefan Denninger dealt with governance in Azure – also very considerably, what possibilities there are and what should be planned when using it.

All in all, we had a really exciting evening on the topic of “Security”.

Here are some photos.


PowerShell 10 Year

PowerShell got 10 years and our usergroup made an contribution to the 10 years anniversary. We had a lots of fun and we finnaly made a really nice video for the Channel 9 stream.

I want to thank all for making the video possible. Thanks to Daniel, who cut the statement video. He also made some Mountain videos – mainly from Upper Austria. These are really nice – so have a look at them.

What will you see in our contribution? Our usergroup members made some statements how PowerShell changed their lives and Roman & friends did an IoT video of his garden sprinklers – with some real nice action in it. Now have a look at the videos on Channel9:

Austrian contribution – Dwarfs and Moods and member statements

10 Year anniversary of PowerShell

Review of our Usergroup Meeting in Linz / Austria

We had our Linzer spring System Center and Powershell Usergroup on 28th of April. We managed to get three top speakers for the event. Our next Usergroup event will be at Microsoft Vienna on 30th of June. Register now!

So when you get interested in the user group, the information we share – find us on Xing or follow us on twitter for the newest information. (@scug_at).

As always we have had a nice location. The photos are this time from Stefan Koell.

Session 1: The role of IT operation in times of SaaS and PaaS

Rainer presented us in a really great and enthusiastic way how they see operations in their company timecockpit. He mentioned that they need very little ops and they need ops to know the service level agreements in the cloud.

He also teased, that Powershell is not necessary anymore, because in a SaaS world it should be only necessary to use the Service.

More about his thoughts is here in the Interview and he also recorded the session.

Session 2: SCOOSP – System Center Orchestrator Service Portal

In the second session Michael Seidl (aka Techguy) presented us SCOOSP – an easy to manage Portal for the System Center Orchestrator. With this portal you can do lots of things with less technical effort than using the System Center Service Manager and its portal. So when you are interested – have a look at it.

Session 3: Attack & Defend mit Powershell

In our last session Alexander Graf from Antares showed us their intrusion detection solution. They assumed an usb stick with maleware on it, which communicates with a command server. So their solution found the suspicious behavior.

So we have had three interesting Sessions from interesting speakers with some networking at the end with a really tasty “Mostviertler Bauernjause” including fantastic juices. Thank you Antares!

Service Manger #LyncUp April

This month the recording was available very soon, so I could have a look at it.

This time there were three main points

  1. Service Manager 2016 TP5
    Harsh says, there is a lot of good Feedback from early adopters of Service Manager 2016 TP5. The main focus has been on performance improvements, so for example Incident creation time increased by 4 times. There are more numbers on the slides provided. It seems that the upcoming console will be considerable faster.
  2. Service Manager Portal Update 3
    With the Service Manager Portal Update 3 there are some bug fixes and additional Features. The best updates mentioned in the lyncup were

    1. Attachements are now listed in My Requests and can also be downloaded
    2. Better review for reviewers
  3. Azure Automation vs SMA voting
    Finally there was the discussion about a new connector. Azure Automation vs SMA connector vs fine with Orchestrator. SMA was the winner (23 votes), Azure Automation (19 votes) and Orchestrator (20 votes) where a little behind.

The Service Manager 2016 TP5 and the Service Manager Portal Update 3 will be available on 27th April.

A date for the availability of Service Manager 2016 is not available.

Collection of fixes from the new SCSM Portal with Hotfix 2

Microsoft is busy in helping with the new SCSM HTML5 Portal on TechNet. I hope, that this quick and dirty fixes find their way into the product, but till then, I’ll collect them here.

Issues with workaround

  • Adding user comment when incident is not Active (Link)
  • HTML5 SSP U2 after update don’t show no one service offering (Link)
  • Query Results only load on hitting refresh (Link) – workaround is not really satisfying with dependent queries
  • Self Service Portal Description break (Link)
  • Use of share in service requests somtimes produces an error (Link)
  • Activities do not show up because of ‘ in Activity Title (Link)
  • Service Request: No input into a non required integer field results in an error (Link)

Issues without Workaround

  • Enter submits Request / Incident (Link)

How to customize the portal

  • Larger description text box (Link)
  • Using portal for approvers and information (Link)
  • Basic UI Customization in new Self Service Portal (HTML5) (Link)
  • Customization from Buchatech (Link)

You miss something? Tell me!