I'm still hammering this out, but it works as-is:
@echo off rem Simple script to map a drive using the new IP provided. echo Enter final octet: set /p OCTET= net use z: \\10.0.100.%OCTET%\c$ /user:inside\<username> <password>
I'd like the octet entry and the echo to be on the same line, but aside from that, working as advertised.
authenticationbatbatchdosdriveechomountnetremset
If an NFS mount is frozen because the endpoint is unavailable, you can try a "lazy umount" on the mount to let the kernel take care of cleaning it up, rather than letting user-space processes wait on it:
# umount -l /path/to/mount
Additionally, you can use the NFS "soft" option when mounting the share to prevent hard locking of this kind; see nfs(5). Thanks to Kevin Turner for this tip.
brokenconfigurationfilesystemfrozengotchalazymountnfssoft