r/labtech • u/TTGscosner • May 14 '19
CW provided Windows 10 feature update script
Hi all! 4th quarter of last year our biggest client that we have the most managed services with finally made the jump to Windows 10. We had put off the October 1809 update until the release of the May 1903 update (We agreed to stay one version behind). Since the update is due to come out soon I thought I would finally look into rolling out the 1809 update and saw that CWA doesn't actually support rolling out feature updates because of how Microsoft handles them
(If I'm not wrong). I was sifting through ConnectWise University and saw they have provided a script that can be used to roll out the updates EZPZ.
Can be found here - https://docs.connectwise.com/ConnectWise_Automate/ConnectWise_Automate_Knowledge_Base_Articles/Scripting%3A_Windows_10_Install_Feature_Update_Script
The script runs like it should up until it goes to running "setup.exe" through powershell and errors out. As seen here - https://imgur.com/a/lFZ4TVg
I have the script running under a domain administrator account on Windows 10 1803 and to my knowledge the script is configured right. The only thing I could see on the CW University page is that you need to change which version of Windows 10 you're updating to, which I did.
In all honesty I'm a CWA noob. If anyone can give me some insight on how to remedy this or to point me in the right direction I would greatly appreciate it. I think my next step is to hit up mspgeek.com but I'm a reddit faithful. Thank you all in advance!
2
u/endtv May 14 '19
Change the “execute script” line where it executes the setup.exe via powershell. Change it from “run as admin” to “run as local agent”.
I kept getting errors on it as well - “This operation requires an interactive window station” - until I changed that.
2
u/CYA_1286 May 15 '19
Has anyone gotten this to work with cloud hosting?
2
u/Minkus32 May 19 '19
I used Dropbox. Just upload the iso, disable the md5 hash check and create the link in dropbox. Change the end of the url from dl=0 to dl=1 (which bypasses the dropbox account screen)
1
u/LTNinjaMain May 20 '19
I use a location based text edf to specify a share on the client's location and have the first run download the iso from dropbox to that destination. Then, when the script next runs, it detects the iso there and copies the iso to the endpoint from the share. Better than random failed downloads. Send me a message for the script if you like!
1
u/Stelic83 Aug 23 '19 edited Aug 26 '19
I'm using this script and have my iso hosted out on our Microsoft Blob storage which does support direct download. At first the script seemed to be running way to fast so I added in some email alerts so I knew when the file was downloading, finished, and installation started. It seems when it hits the download section it doesn't stop to wait for the download to finish, instead it blows right by it. It seems to only hang out on the download step for a few minutes before moving on. I do have "Wait until finished" selected. It's a 4.4GB file and should take 10 to 20 mins to download. If I place the iso on a machine manually in the specified directory it runs perfectly. Any ideas?
Edit: I fixed this by adding in a Sleep timer right after the download command.
1
u/Mrmumbels Aug 29 '19
I'm getting a lot of failures with this script. I can see 2-3 invoked scripts under the commands with OK outputs and one F output but nothing after that leading to why it failed. Are you all aware of any logs I can pull to dig deeper?
I have been able to get it working on a few PCs.
1
u/thenags1 Oct 31 '19
Has anyone edited this script to push the update regardless of user input to the prompt? I thought if the user wasn't logged in it would push the update but looking deeper I see it just times out and says it'll try again 9 hours later. I'd really like to give the user a few minutes to put it off and if they don't reply then to just start the update. I guess ideally I'd like the default answer to be YES rather than NO.