I am trying to use PowerShell with SharePoint. I would like my PowerShell scripts to load my SharePoint farm configuration from files, rather than hard-coded the configuration in the scripts or the same parameters pass each time.
This is the information I need to store.
WebFrontEnds: Web1, Web2, Web3
CentralAdmin: Central1
Index: Web1
ContentWebApps: http://user1, http://user2
Can PowerShell easily load this data from CSV, XML or other formats?
source
share