Posted on 05-17-2017 10:05 AM
Hello! I have been using a script that I place in my users dock to map network drives in one click for many years. With the latest Apple security update 10.12.5, it broke. I think it may have something to do with having to accept the pop up about connecting to the network drive.
I also get the error: An error of type -2248 has occurred.
Can anyone advise on how to fix this. Here is one of my scripts:
set my_netbios_servername to "mapdrive:location"
set my_url to "smb://" & my_netbios_servername & ":139/Users/" & (system attribute "USER" as string)
set my_path to "/Volumes/" & (system attribute "USER" as string)
try open location my_url
on error
display dialog "Your computer could not mount the network drive, please restart your computer and check your network settings. If you need assistance, please contact the HELP DESK at EXT 2027."
error number -323 - 2027
end try
Posted on 05-17-2017 12:33 PM
if your SMB server is running on a Window box, it seems the patches for WannaCry are now blocking port 139. Try changing your port to 445 and see if that works for you. I had to do this for AutoPkgr since my primary DP is running WIndows.
Posted on 05-18-2017 01:53 PM
We have been having problems mounting all shares since the 10.12.5 upgrade. Are you able to mount them manually?