# Deploy NSCLI (rax.io/nscli) to a Managed Windows machine # The Linux Subsystem for Windows needs to already be installed, and a user/password created. if ((Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux).State -ne "Enabled") { Write-Error -Message "Please install the Linux Subsystem for Windows first." -ErrorId 1 #TODO: Exit } # Stop Linux while we work on it sc stop lxssmanager $sso_user = $env:USERNAME $bash_user = $(bash -c 'whoami')