I have a PowerShell script that disconnects an existing network drive (server ( \\Server1) (S:)) and then creates a new drive, using the disconnected drive designation with a new path (server (\\Server2) (S:)). The script works fine and swaps the drives as expected but when you open Windows Explorer the drive label still shows the old path (\\Server1\) even though when you open the drive it correctly accesses the data from (\\Server2). Is their some method of script that would fix this?
↧