No doubt you already use PowerShell for a wide range of tasks and consequently are already familiar working with PowerShell objects? This post explains how to turn the contents of a file into a PowerShell object. You can then use this object for whatever you need. Say you have a file in C:\data\ with the content: hostname=file-server-1 os=Windows 2012R2 location=Digbeth city=Birmingham installed=01-06-2015 active=yes Now you create a PowerShell function that will take the above content…
Leave a CommentAutomating VMware & Public Cloud