IsWindowsAccount property
Gets a value indicating whether the account is a Windows domain account.
Syntax
bool IsWindowsAccount {get;}
Return value
Returns true
if the account is a Windows domain account; false
if the account is an SQL Server login account.
Discussion
Example
The following code sample illustrates using this property as an input parameter to the AddAuditServerAccount
method:
... 'Add management database accounts for those management databases running in ' system account; e.g. NT Authority/Network Service ' DIM strAuditServerAccount DIM isAuditServerWindowsAccount isAuditServerWindowsAccount = true strAuditServerAccount = "DOMAIN\MACHINE$" objAuditStoreDatabase.AddAuditServerAccount strAuditServerAccount, & _ isAuditServerWindowsAccount wscript.echo "Added management database account '" & strAuditServerAccount & "'."