Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Set-SqlStartupParameters.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ function Set-SQLStartupParameters{
#Loop through and change instances
foreach($i in $Instance){
#Parse host and instance names
$HostName = ($i.Split('\'))[0]
if (($i.Split('\').count) -gt 1)
{
$HostName = ($i.Split('\'))[0]
}
else
{
$HostName = $i
}
$InstanceName = ($i.Split('\'))[1]

#Get service account names, set service account for change
Expand Down