Hello
I'm trying to create a new instance for SQL via Powershell and silently. I made it work with a default instance but now I want to create one with a specific name.
I thought, the only thing I have to change is the argumentlist, where I set password etc.
My point is it, to rename the default instance in the ini file, with the one I set in the PowerShell script so here's the most important line:
Start-Process -FilePath $install -ArgumentList "/q /ACTION=$actiontype /SQLSVCPASSWORD=$HiddenPW /AGTSVCPASSWORD=$HiddenPW /ISSVCPASSWORD=$HiddenPW /Configurationfile=$config /INSTANCENAME=$sqlinstancename" -Wait -Verb RunAs
It works, if I remove the /INSTANCENAME=$sqlinstancename but then I have the default. $sqlinstancename isTest123.
The errorcode is shown in the title.
The following is my signature:
Powershell Programmer & Advanced Lua Programmer
Location: Switzerland
Beside that, whenever you see a reply, you think is helpful, click "Vote As Helpful"! And whenever you see a reply being
an answer to the main question of the thread, click "
Mark As Answer" (if you opened the thread).
I published the URL's for the icons in my signature.
Please contact me, before reporting me, thank you.
[string](0..21|%{[char][int]([int]("{0:d}" -f 0x28)+('577076797174-87661607769657424-8687168065964').substring(($_*2),2))})-replace' '