I use the powershell sqlps module to get some data from my local database. My code is something like this
PS C:\> Import-Module sqlps -DisableNameChecking PS SQLSERVER:\> cd "SQL\myMachineName\..."
It works correctly, but sometimes I need to connect to a remote server running the SQL server, so I use Enter-PSSession . Is this correct or can I somehow display this server in the local directory SQLSERVER:\SQL ?
source share