Initial version

Bugs may exist.

WARNING: rsync executed with —delete option can be dangerous!! (need
better validation of params before making that call)
Also needed is a way to check return code/result of the rsync call
Slight cleanup

Added check for empty params before rsync
Add LabStartup 2014-10-30c

first commit of new LabStartup.ps1
Formatting Cleanup and minor tweaks
version 3.1

Added corrections and updates from work on SDC-1405: check for FreeNAS
up by URL, $maxMinutesBeforeFail is a number, read desktopinfo.ini for
SKU, Write-Progress switches on READY to show date + time, starting VMs
looks at PowerState as a string (good for SRM)
version 3.2

Altered enum mapping for statusTable, added basic validation of SKU and
year from desktopInfo, switch for 2008 vs. 2012 and Firefox lock file
deletion
version 3.3

unified ManageWinService and ManageLinuxService functions
version 3.3.1

fixed OS type detection to work on 2008, abend if unable to read Lab
SKU from the desktopinfo.ini
version 3.3.2

Correct typos
version 3.3.3

Moved Invoke-Plink and Write-Progress to be able to support FAIL during
parsing of DesktopInfo.ini
updated Firefox Lock removal code

Removed check for OS and just remove ‘parent.lock’ from all profiles
found. Integrated Bill’s code to look for profiles in userProfilePath
Looping logic cleanup

Reworked loop logic to use Do/Until rather than resetting $result and
running While. Cleaned up comments and documentation. Rearranged
variables and rewrote to handle multiple vCenter servers. Extracted
plink.exe path to $plinkPath variable
fixing $result undefined bug

BUGFIX: defined $result @ beginning
ENHANCEMENT: handle text after SKU in desktopinfo.ini
ENHANCEMENT: handle multiple vcenter servers
Expanded multi-vCenter support

rearranged comment-based documentation to conform to Powershell
standards, added vCenter tag for each vVM to be started and write error
to log if vVM cannot be found