Powershell Manager
-
- Posts: 35
- Joined: Fri Feb 22, 2019 3:22 pm
- 5
Powershell Manager
I keep getting into this loop where i try to update powershell on some of my machines, I see in Powershell manager that .net4.5 is installed however it keeps looping me back to the error that .net is not installed and tries to install it but never verifies properly that it's installed and therefore we can not update powershell on any machines. I have updated to the latest version and still see this issue.
Re: Powershell Manager
Which plugin are you in? Powershell manager or Habitat? Both have this tool in it.
Can you send us some logs / screenshots of what your seeing?
Can you send us some logs / screenshots of what your seeing?
-
- Posts: 35
- Joined: Fri Feb 22, 2019 3:22 pm
- 5
Re: Powershell Manager
powershell manager.
log says
Powershell update to 4 has been stopped due to DotNet Version not at least at 4.5, Installing dot.NET 4.5 now, you will need to reboot or allow reboot and then try again to install powershell 4 after 4.5 is installed.
![Image](http://snipboard.io/PFW0KA.jpg)
this device has been rebooted as well with the same results
i am not sure but is your search not looking for .net4.8
log says
Powershell update to 4 has been stopped due to DotNet Version not at least at 4.5, Installing dot.NET 4.5 now, you will need to reboot or allow reboot and then try again to install powershell 4 after 4.5 is installed.
![Image](http://snipboard.io/PFW0KA.jpg)
this device has been rebooted as well with the same results
i am not sure but is your search not looking for .net4.8
Re: Powershell Manager
Yeap, its look no higher than 4.6 so that is an issue. here is how to fix the issue quickly.
Open script and edit the else section at line 55. Copy line 55 and save as line 56, edit line 56 to now reflect 4.8 as the value.
Open script and edit the else section at line 55. Copy line 55 and save as line 56, edit line 56 to now reflect 4.8 as the value.
-
- Posts: 35
- Joined: Fri Feb 22, 2019 3:22 pm
- 5
Re: Powershell Manager
I also added another line for .net 4.7
Thanks for pointing me in the right direction, tested it and it works now
Thanks for pointing me in the right direction, tested it and it works now
-
- Posts: 35
- Joined: Fri Feb 22, 2019 3:22 pm
- 5
Re: Powershell Manager
Ok so That worked wonderfully just have a bit of a big issue
After making the changes to the script about 50 percent of my managed servers automatically rebooted after getting this command
cmd.exe!!! /c "wusa %windir%\LTSvc\PoSh\Powershell-5.0.msu /quiet /noreboot"
Which seems really bad considering we are using the /noreboot switch.
Any idea of why that happened
After making the changes to the script about 50 percent of my managed servers automatically rebooted after getting this command
cmd.exe!!! /c "wusa %windir%\LTSvc\PoSh\Powershell-5.0.msu /quiet /noreboot"
Which seems really bad considering we are using the /noreboot switch.
Any idea of why that happened
Re: Powershell Manager
Some powershell installs will ignore the reboot switch and force a reboot anyways. That's a Microsoft thing outside the control of Automate or the plugin.
Its not that we didn'y pass the switch to the upgrade command, it choose to ignore it.
Its not that we didn'y pass the switch to the upgrade command, it choose to ignore it.
-
- Posts: 35
- Joined: Fri Feb 22, 2019 3:22 pm
- 5
Re: Powershell Manager
Fun... is there a way to schedule the p4l maintenance so it coorelates with patch windows?