Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Custom Install Command - SQLSYSADMINACCOUNTS

Author  Topic 

pow1983
Starting Member

3 Posts

Posted - 2010-11-04 : 18:39:16
Hi All,

I am creating a custom install command, using the following page as a guide:
http://msdn.microsoft.com/en-us/library/ms144259.aspx

Im stuck with one parameter /SQLSYSADMINACCOUNTS
The syntax is /SQLSYSADMINACCOUNTS="<DomainName\UserName>" however, im in a situation where the machine name will not be the same but the username will be.
Is there a way I can install for example using some kind of environment variable e.g. <.\Username> or <%COMPUTERNAME%\Username>

Many Thanks

---
Rich

pow1983
Starting Member

3 Posts

Posted - 2010-11-09 : 10:39:46
Just so everyone else knows <.\Username> works perfectly.

---
Rich
Go to Top of Page
   

- Advertisement -