Skip to content

Commit 546af7f

Browse files
add z drive installation instructions
1 parent 0075e05 commit 546af7f

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Xdrive Script (1).txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Please copy the entire script below and paste into PowerShell.
2+
Do not run Powershell as Administrator.
3+
The Zdrive should persist with restarts of the computer.
4+
5+
6+
$connectTestResult = Test-NetConnection -ComputerName mtcproject.file.core.windows.net -Port 445
7+
if ($connectTestResult.TcpTestSucceeded) {
8+
# Save the password so the drive will persist on reboot
9+
cmd.exe /C "cmdkey /add:`"mtcproject.file.core.windows.net`" /user:`"localhost\mtcproject`" /pass:`"uaBceR+X4ssB5Uu3z25AzKCWvIWBn69JZ92OjMm7MWSVc2hG0MaXkKhYO0kdApUuxz/BBPcxNWR3+AStaJEEGg==`""
10+
# Mount the drive
11+
New-PSDrive -Name X -PSProvider FileSystem -Root "\\mtcproject.file.core.windows.net\zdrive" -Persist
12+
} else {
13+
Write-Error -Message "Unable to reach the Azure storage account via port 445. Check to make sure your organization or ISP is not blocking port 445, or use Azure P2S VPN, Azure S2S VPN, or Express Route to tunnel SMB traffic over a different port."
14+
}

0 commit comments

Comments
 (0)