Skip to content
Permalink
Browse files

Update Get-DbaRegServer.ps1

  • Loading branch information...
jaredfaulkner committed Jul 11, 2019
1 parent c446006 commit b6fbc07ea077de57b9c19bc657b86c9b770c63f7
Showing with 2 additions and 2 deletions.
  1. +2 −2 functions/Get-DbaRegServer.ps1
@@ -115,7 +115,7 @@ function Get-DbaRegServer {
}
process {
if (-not $PSBoundParameters.SqlInstance -and -not ($IsLinux -or $IsMacOs)) {
$null = Get-ChildItem -Recurse "$home\AppData\Roaming\Microsoft\*sql*" -Filter RegSrvr.xml | Sort-Object LastWriteTime -Descending | Select-Object -First 1
$null = Get-ChildItem -Recurse "$env:APPDATA\Microsoft\*sql*" -Filter RegSrvr.xml | Sort-Object LastWriteTime -Descending | Select-Object -First 1
}

$servers = @()
@@ -290,4 +290,4 @@ function Get-DbaRegServer {
Select-DefaultView -InputObject $self -Property $defaults
}
}
}
}

0 comments on commit b6fbc07

Please sign in to comment.
You can’t perform that action at this time.