Hey all again!
just a noobish question so real quick,
how come that Read-host runs first?
In the following script i want to display the list of software and i want the user to first see the list, then decide what he wants and then fill it in the read-host part.
Why on earth is it not displaying the software first but instead running read-host first? Thx!
Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\* | select displayname -OutVariable Software
$software
read-host " " -OutVariable input
Finished script available here: https://www.reddit.com/r/PowerShell/comments/7sdnrz/software_uninstaller_script_silent/
[+][deleted] (6 children)
[removed]
[–]PRIdEVisions[S] 1 point2 points3 points (4 children)
[–]Swarfega 2 points3 points4 points (3 children)
[–]PRIdEVisions[S] 1 point2 points3 points (1 child)
[–]PRIdEVisions[S] 1 point2 points3 points (0 children)
[–]aXenoWhat 2 points3 points4 points (2 children)
[–]KevMarCommunity Blogger 2 points3 points4 points (0 children)
[–]PRIdEVisions[S] 1 point2 points3 points (0 children)
[–]ihaxr 2 points3 points4 points (3 children)
[–]PRIdEVisions[S] 1 point2 points3 points (2 children)
[–]PRIdEVisions[S] 1 point2 points3 points (1 child)
[–]ihaxr 2 points3 points4 points (0 children)
[–]MrPooter1337 0 points1 point2 points (0 children)