Article ID: 238388 - Last Review: September 28, 2007 - Revision: 2.2 PRB: Cannot Set the Service Account Name Through ADSIThis article was previously published under Q238388 SYMPTOMS Using Microsoft Active Directory Services Interfaces (ADSI), you cannot
change the ServiceAccountName property on an IADsService object. When SetInfo is called on a Microsoft Windows 2000 client or on a Microsoft Windows NT client, although no error is reported, the changes are not made on the target server. On Microsoft Windows XP, you receive the following error when you try to set the ServiceAccountName property: Active Directory: The specified directory property is not supported STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section of this article. MORE INFORMATIONTo work around this limitation in ADSI, use Windows
Management Instrumentation (WMI) to access resources and management
information. WMI is a system component on WIndows 2000, Microsoft WIndows Server 2003 and Windows XP. To use WMI on Microsoft WIndows NT 4, install the core runtime from the following MSDN Web site: Windows Management Instumentation (WMI) CORE 1.5 (Windows NT 4.0) The following sample code uses WMI to change the service account
name: http://www.microsoft.com/downloads/details.aspx?FamilyID=c174cfb1-ef67-471d-9277-4c2b1014a31e&DisplayLang=en (http://www.microsoft.com/downloads/details.aspx?FamilyID=c174cfb1-ef67-471d-9277-4c2b1014a31e&DisplayLang=en) REFERENCES For more information about Windows Management
Instrumentation (WMI), visit the following MSDN Web site: http://msdn.microsoft.com/downloads/default.asp?URL=/code/topic.asp?URL=/MSDN-FILES/028/000/015/topic.xml
(http://msdn.microsoft.com/downloads/default.asp?URL=/code/topic.asp?URL=/MSDN-FILES/028/000/015/topic.xml)
For more information about Active Directory Services Interfaces (ADSI), visit the following Microsoft web site: http://msdn2.microsoft.com/library/aa772170.aspx
(http://msdn2.microsoft.com/library/aa772170.aspx)
| Article Translations
|

Back to the top
