ForensiT Homepage
Forum Home Forum Home > ForensiT Support > Domain Migration
  New Posts New Posts RSS Feed - Follow On Script not running
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Follow On Script not running

 Post Reply Post Reply
Author
Message
Anant View Drop Down
Newbie
Newbie


Joined: 01 Mar 2024
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote Anant Quote  Post ReplyReply Direct Link To This Post Topic: Follow On Script not running
    Posted: 15 Apr 2024 at 8:35pm
Hey Experts 

We are attempting to execute a PowerShell script as a follow-up step after completing the user profile migration. The PowerShell file is stored in both C:\Temp\It and a network location. Additionally, we are using domain admin credentials to carry out the user migration process. The domain admin has the necessary rights to access the network folder. However, we are encountering the following error in both scenarios:

"Running follow-on code... Fails.
The user name or password is incorrect."

we have login with another user account in system and in the config file we have mentioned the domain admin user password.

  • What could be the possible reasons for this error? 
  • What is the recommended approach for running a follow-up script, 
  • What prerequisites do we need to fulfill to ensure the successful execution of the follow-on script?
Thanks in Advance
Back to Top
Support View Drop Down
Moderator Group
Moderator Group


Joined: 09 Nov 2006
Location: United Kingdom
Status: Offline
Points: 1941
Post Options Post Options   Thanks (0) Thanks(0)   Quote Support Quote  Post ReplyReply Direct Link To This Post Posted: 16 Apr 2024 at 10:45am
Hi, 

The follow-on script runs at the end of the migration in the security context of the <LocalAdmin> account specified in your Profwiz.config file, after the machine has been removed from the old on-premises domain. This means that if the <LocalAdmin> account is from the old domain, the credentials are no longer valid.
 
To avoid this, you can tell User Profile Wizard to run the follow-on script as SYSTEM, by setting <RunAsSystem> to True in your Profwiz.config file:
 
<RunAsSystem>True</RunAsSystem>

If you continue to have a problem, please can you email support with the config file, migration log and confirmation as to how you're running the Wizard on the computer and we'll be happy to review and advise. 

Many thanks,

Support.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.

This page was generated in 0.111 seconds.