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 check if windows server 2003 is 64 bit then run the below.
If you are looking for some free disk space on Windows 8.
Check the size of your windows.edb file.
If its too large you might need to rebuild the index, instructions detailed below.
If you receive the below error when running an init.d script or another script.
sudo unable to execute etc init d no such file or directory
Check that your file does not have any ^m windows characters as this might be the case.
To enable Remote Desktop for Windows Server 2012, open cmd prompt and run the below.
Then once the GUI appears, simply enable remote desktop.
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.