This_guy Posted August 26, 2022 Report post Posted August 26, 2022 On 8/22/2022 at 2:37 AM, anyweb said: yours is bombing out very early, in the prerequisites check, you can try remming out the call to 'fixing odbf' function, it's at line 587, it's not needed (for my work environment only) # fix odbf computer name before continuing LogWrite "Fixing ODBF" FixODBF fix it like so (place # in front of those 2 lines) # fix odbf computer name before continuing #LogWrite "Fixing ODBF" #FixODBF once done, save the changes and test again please We get further, but I am realizing that my hope of using your script(s) without SCCM installed probably just won't work. I now get: 08/26/2022 05:53:44 uninstalling ConfigMgr agent... 08/26/2022 05:53:44 Starting RemoveSCCMClient function 08/26/2022 05:53:44 An error occurred when trying to email the logs, here is the error: This command cannot be run due to the error: The system cannot find the file specified. 08/26/2022 05:53:44 Something failed, aborting Migrate process 08/26/2022 05:53:44 setting HKLM:\HKEY_LOCAL_MACHINE\SOFTWARE\My Company atStep 10 String 08/26/2022 05:53:44 registry value set successfully Quote Share this post Link to post Share on other sites More sharing options...
anyweb Posted August 26, 2022 Report post Posted August 26, 2022 if you are not using SCCM, then you need to rem out the RemoveSCCMClient call, I think it's in the takeaction function, just place a # in front of it and that'll help, otherwise it will fail, start with that, then try again Quote Share this post Link to post Share on other sites More sharing options...
This_guy Posted August 26, 2022 Report post Posted August 26, 2022 1 hour ago, anyweb said: if you are not using SCCM, then you need to rem out the RemoveSCCMClient call, I think it's in the takeaction function, just place a # in front of it and that'll help, otherwise it will fail, start with that, then try again Zipping it all up...to create the following ZIP file: 'C:\MigrateLogs.zip' 08/26/2022 07:15:53 An error occurred when trying to email the logs, here is the error: The remote server returned an error: (401) Unauthorized. 08/26/2022 07:15:53 Something failed, aborting Migrate process I didn't set up the mail function - is that what would be causing the script to fail here now? Quote Share this post Link to post Share on other sites More sharing options...
anyweb Posted August 26, 2022 Report post Posted August 26, 2022 the mail function is used when a failure occurs to send logs to a shared email inbox, you can search the script and rem it out however you will need it sooner or later, that's why it's there i think it's in the somethingfailed function (not looking at the scripts right now) Quote Share this post Link to post Share on other sites More sharing options...
dipalma Posted January 18 Report post Posted January 18 Hey Niall! Very good guide. 🙂 After the first reboot(running VM in Hyper-V) I got the following loop. If force a reboot its continue and it finish. But for the user its not that good. Quote Share this post Link to post Share on other sites More sharing options...
anyweb Posted January 18 Report post Posted January 18 hi @dipalma thank you for trying out my solution, this code is 'as is' and it's up to you to make it work in your environment, you can rem out all the scrolling by editing the associated log file, but what you really should have seen is the full screen status screen and not the powershell logging what that means is something probably failed which is why you are seeing the powershell cmd instead of the status screen, feel free to post your logs here and i can take a look. that said, i'm still working on it and will hopefully have a newer version of it to release in the coming month or two with a LOT of bug fixes and improvements cheers niall Quote Share this post Link to post Share on other sites More sharing options...
Wizu Posted February 21 Report post Posted February 21 On 1/18/2023 at 9:27 PM, anyweb said: that said, i'm still working on it and will hopefully have a newer version of it to release in the coming month or two with a LOT of bug fixes and improvements cheers niall Hi, any news on this one? Quote Share this post Link to post Share on other sites More sharing options...
anyweb Posted February 21 Report post Posted February 21 hi @Wizu I plan on releasing an update in the coming week or so, please be patient, in the meantime i'd suggest you start with what is currently available as that will help you to understand the overal solution Quote Share this post Link to post Share on other sites More sharing options...