Hello All,
This is my first post here, so please forgive me if I am out of place.
The script I am working on is intended for use at first boot. The script asks the user if he/she would like to join a particular domain, offering yes/no buttons. If the user presses yes, the script should then join the workstation to the specified domain using the specified username and password. All is well until line 20. The script host returns the following error:
Line: 20
Char: 2
Error: 0x80041024
Code: 80041024
Sourcenull)
Now, I have changed the strDomain, strUser, and strPassword strings to the correct values in my production script, so I am confident that is not the problem.
My research leads me to believe that error 0x80041024 is equal to WBEM_E_PROVIDER_NOT_CAPABLE. This is the error returned when the workstation is currently NOT joined to a domain. if the computer IS JOINED to a domain, the script returns the following error at the same line: 0x80041002 which MSDN shows to be WBEM_E_NOT_FOUND
To make this more confusing, the script only fails on windows xp. On a windows 7 machine the script seems to work correctly (i've only tried it on a machine that is already joined and it correctly returns status 2691.).
This information is from:
Any help to resolve this issue would be greatly appreciated. Thank you in advance.
This is my first post here, so please forgive me if I am out of place.
The script I am working on is intended for use at first boot. The script asks the user if he/she would like to join a particular domain, offering yes/no buttons. If the user presses yes, the script should then join the workstation to the specified domain using the specified username and password. All is well until line 20. The script host returns the following error:
Line: 20
Char: 2
Error: 0x80041024
Code: 80041024
Sourcenull)
Now, I have changed the strDomain, strUser, and strPassword strings to the correct values in my production script, so I am confident that is not the problem.
My research leads me to believe that error 0x80041024 is equal to WBEM_E_PROVIDER_NOT_CAPABLE. This is the error returned when the workstation is currently NOT joined to a domain. if the computer IS JOINED to a domain, the script returns the following error at the same line: 0x80041002 which MSDN shows to be WBEM_E_NOT_FOUND
To make this more confusing, the script only fails on windows xp. On a windows 7 machine the script seems to work correctly (i've only tried it on a machine that is already joined and it correctly returns status 2691.).
This information is from:
Any help to resolve this issue would be greatly appreciated. Thank you in advance.