Workaround: ‘sqlps’ and "Test-Path" PowerShell cmdlet on a UNC path

Related Forum thread: Related Connect feedback: Issue:When Test-Path cmdlet is run in SQL Powershell from the context of SQL Powershell provider path, Test-Path returns False. We see the same behavior with Registry Window Powershell provider as well Workaround:Specify literal path while using Test-Path cmdletExample:test-path -literalpath “FileSystem::\\machine\uncpath” References: