dbatools icon indicating copy to clipboard operation
dbatools copied to clipboard

Local <> Local Server

Open wsmelton opened this issue 10 years ago • 4 comments

The local <> local server check has bad logic. Expects to always migrate remotely.

wsmelton avatar Sep 16 '16 03:09 wsmelton

Can anyone point to the script / line where this is happening? I'm using the following code to validate if ($env:computername -eq $sourcenetbios) and it has been working just fine.

ClaudioESSilva avatar Sep 16 '16 10:09 ClaudioESSilva

@ClaudioESSilva I think this is a general comment on the module, not anything specific. A list of cmdlets where this applies would be useful though. If you find or know of any, perhaps just add them to this issue?

Original Trello thingy: https://trello.com/c/BtxSo9qk

dansqldba avatar Sep 16 '16 10:09 dansqldba

The use of $env:COMPUTERNAME appears on the following modules:

  • SharedFunctions.ps1 -> Invoke-ManagedComputerCommand -> Test-SqlConnection
  • Move-SqlDatabaseFile.ps1
  • Reset-SqlAdmin.ps1

PS: Search done on development branch

ClaudioESSilva avatar Sep 16 '16 11:09 ClaudioESSilva

Closing as not relevant anymore.

wsmelton avatar Mar 05 '17 07:03 wsmelton