Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Test the Presence of a Remote Share by Using PowerShell

$
0
0

Summary: Learn how to use a Windows PowerShell cmdlet to test the presence of a remote share.

Hey, Scripting Guy! Question How can I use Windows PowerShell to test for the presence of a share on a remote server?

Hey, Scripting Guy! Answer Use the Test-Path cmdlet and supply a UNC path, as shown here.

13:55 C:\> Test-Path \\Server1\downloads

True

 


Viewing all articles
Browse latest Browse all 3333

Trending Articles