Here is the script we "run as" administrator:
net use I: \\csmwebp\e$\inetpub\cityroot 1>>c:\temp\testing\test2.txt 2>>&1
net use J: \\csmwebd\cityroot 1>>c:\temp\testing\test2.txt 2>>&1
net use J: 1>>c:\temp\testing\test2.txt 2>>&1
msdeploy.exe -verb:sync -source:dirPath=J: -dest:dirPath=I:,getCredentials=csmwebp -skip:objectName=dirPath,absolutePath=_vti_pvt -skip:objectName=dirPath,absolutePath=_vti_cnf -skip:objectName=dirPath,absolutePath=\\cityroot\\cityclerk\\council -skip:objectName=dirPath,absolutePath=-donotpublish 1>>c:\temp\testing\test2.txt 2>>&1
net use I: /delete 1>>c:\temp\testing\test2.txt 2>>&1
net use J: /delete 1>>c:\temp\testing\test2.txt 2>>&1
Here are the contents of C:\temp\testing\test2.txt (my comments in italics):
The command completed successfully. -- net use I: \\csmwebp\e$\inetpub\cityroot was successful
The command completed successfully. -- net use J: \\csmwebd\cityroot was successful
Local name J:
Remote name \\csmwebdev01\cityroot
Resource type Disk
Status OK
# Opens 0
# Connections 1
The command completed successfully.
Error: Object of type 'dirPath' and path 'J:' cannot be created. Error: File system path 'J:' is not valid. Only absolute paths are supported. Error count: 1.
I: was deleted successfully.
J: was deleted successfully.
Please advise, why is J: considered invalid?
Thank you,
Roslyn Wythe