Jump to content


anyweb

Migrate to the cloud - Part 1. Setup

Recommended Posts

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

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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? :) 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...