Search code examples
windowsbatch-fileclearcase

How to change clearcase_albd account domain name and password using batch script?


We are in the ClearCase windows domain migration phase. Now we migrated the domain but how to change clearcase_albd account domain name and password using batch script in user machine. I'm very new to batch scripting.

Old Domain Name: Old_Domain
New Domain Name: New_Domain

Old Account: dragon
New Account: dragon_fire

Solution

  • Unless the users have admin access to the machines, a user executed batch file likely won't work.

    You may have better luck using the SC command to do it remotely. You'll also need to change the ClearCase admin group name.

    If you're going to directly access each of the user systems, you can create a .reg file to reset the group name stored in HKLM\Software\Wow6432Node\Atria\ClearCase\currentversion\ClearCaseGroupName.

    The service name and password changes are simple:

    SC config albd obj= (new domain)\(new account) 
    SC config albd password= (new password)
    

    You will also need to remove all the locally hosted views if the old owning accounts will no longer be in use.
    If you haven't gotten to that part of the migration yet, you can use the -replace_server_process_group option in cleartool fix_prot to change that.
    If you use fix_prot -root to change view storage permissions, you may render the view unable to access some elements.