The below script was set to check for a specific file mapping that was disconnecting. If detected it will then remap the drive.
Simply change the s part in s:null to your drive letter and then add in the Email and mapping details which are highlighted in caps with the hyphen (eg EMAIL-HERE)
if exist s:nul if exist map.lock del map.lock & goto END
if exist map.lock goto END
if exist s:nul goto END
print "drive not mapped"
blat -to "EMAIL-HERE" -server SMTP-HERE -f SERVER-HERE@root.com -subject "Mapping Failed" -body "drive Mapping Failed/disconnected"
echo & map.lock
net use s: \\DNS-ADDRESS-HERE\FOLDER-HERE
To create a USB Boot loader for Windows Server 2012, get the below tools.
1) ISO Recorder
2) Windows USB/DVD Tool
Then simply create an ISO from your CD Media and once the ISO is created, use the Windows USB/DVD tool to point to the ISO and your USB drive.
To fix the error when using VMWare standalone converter “unable to create a vss snapshot of the source volume”. You may have conflicting drive managment software.
To Confirm what you have run the below command.
vssadmin list providers
If there are 2 and you just need the Microsoft one, simply uninstall the other drive managment software.
You may also need to remove the key for the software if its not done from the install from the below location.
Remove the key that you dont need in the providers folder.
To check the processes running on a filer mount that you need to unmount.
Run the below
fuser -m /mount