Remove-PSDrive -Name Z

Check if the network folder requires a different username and password than your Windows account.