I have tried multiple switches, options, etc...
What I need to do it just delete a "S:\Scanner" (on %hostname%)
with a logon script
---------------
Then I have a GPO set to Create a S:\%DFS_Share%
----------------
So I can not just have the log on batch file delete just S: and then my GPO maps S. They will fight with each other, and no S will be born.
-----------------
I have tried the Create and Delete in the GPO mapped drive templates and the Delete does not seem to work. So just Create works for me.
----------------
I have used the net use help to try and figure out the syntax. The only one that remotely works.
Net Use /d \\%Hostname%\%Sharename%
Then it kicks back with The device is being accessed by an active process.
I do not have any open files, etc..
-------------------
This point I am thinking 1 batch file is easier.
How do I:
Take S:\Scanner %On HostName% (Physical Box that we need to decommison)
Remap S:\Scanner %DFS_Share%
No point in having a physical box host file and DFS, mass confusion.....