Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Change with powershell 3

$
0
0

In v2 I have a profile script that sets aliases and starts programs after asking:

$app = Read-Host -prompt "Would you like to start daily use apps? [Anything but no starts apps]"

if($app -eq "no")
{
    Write-Host "Good Morning"
        
}
else
{
<Code to start apps>

}

After upgrading to v 3 the ise and cli both seem to choke on this read-host question

Why the change?  How can I implement in v 3? 

Thank you -


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>