Global DFS share mounting ?

is there a way to mount a set of DFS shares on Lion if bound to Active Directory, so if user_A or user_B can login and both would get the same pre-defined mapped drives.
I know ADmitMac has ADmitMac Brower that you can define things like this (part of the package).  I am trying to see if there is a native way to do this with Lion without a third party application to drive it.
Let me lay some history:
I already know you can do an apple script  calling the mouse save the script as an APP then place it into Login Items under the user's account.  This works fine but if you have a large user base it tends to be tedicious.
i don't want to do a launchd but would if it was the olnly way possible to accomplish this. 
I've tried:  mkdir .... /folder_name_to_mount_on_desktop_DFS_share_name
                  mount_smbfs //network_info_to_DFS_share/DFS_share_name
save the script  to /Library/Scripts, change ower to ROOT (sudo chown root ... and sudo chmod 700)
binded the script to loginhook (sudo defaults write com.apple.loginwindow LoginHook /path/to/the/script/script_name.sh
the above is not the correct syntax i was just giving a high level overview of what i've tried. If i open terminal and do the mkdir / mount_smbfs works ok but nothing goes for someone logging in and have it call up the script and mount the proper drivers.  i do see the folder on the desktop just seems to never make it past the attach the network settings to the folder.
syntax I am using is:  mount_smbfs //user@server_path/data/DFS_Share_name /User/Logged_in_user_name/Desktop/DFS_Share_Name (folder name matches the DFS share name)
So the script looks like this
mkdir /Users/$USER/Desktop/DFS_Share1
mount_smbfs //$[email protected]/data/DFS_Share1  /Users/$USER/Desktop/DFS_Share1
any ideas or direction would be great.

Hi,
Please refer to the thread below:
DFS share for software distribution SCCM
https://social.technet.microsoft.com/Forums/en-US/23b67594-f936-48ae-8ceb-d80ca47cc0d1/dfs-share-for-software-distribution-sccm?forum=configmanagerosd
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place.

Similar Messages

  • Check for mounted DFS share with exists in apple script

    OS: OSX Mountain lion.
    Can any one advise how to detect if a DFS share is mounted or not?
    I have been using the following code:
    set volumeLabel to "R$"
    tell application "Finder"
      exists disk volumeLabel
    end tell
    Which works fine with a normal SMB shares or attached hard drives but I cant get it to work with a DFS Share, it always returns false (see attached screen shot.
    Also tried:
    if volumeLabel is in (do shell script "/bin/ls Volumes") then
              return true
    else
              return false
    end if
    Which didnt work with a DFS Share aswell.
    Any help appreciated.
    Cheers,
    Richard

    Hi,
    Since you're checking to see if a value exists in the Desktop key, you can do something along these lines:
    If (Get-ItemProperty -Path 'HKCU:\Control Panel\Desktop' -Name SCRNSAVE.EXE -ErrorAction SilentlyContinue) {
    Write-Output 'Value exists'
    } Else {
    Write-Output 'Value DOES NOT exist'
    EDIT: Sam, what version of PowerShell are you running? Your code doesn't seem to work for me on v4:
    PS C:\> Push-Location
    Set-Location "HKCU:\Control Panel"
    $Result = Test-Path -Path ".\desktop\SCRNSAVE.EXE"
    Pop-Location
    $Result
    False
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Lion 10.7.2 DFS share access issue

    hi
    i have a macbook air running 10.7.2 and we have a DFS file server running windows 2008 r2
    our name space is domain based and i can access the file server using \\domain.com\uk\data and \\domain\uk\home\xxx (where xxx is the username)
    the first is the shared data drive and the 2nd is the users home drive
    all works beautifully when i am connected via the ethernet. as soon as i move onto the internal wifi (sits on the same network as the ethernet lan and has full access to all network resource, our windows 7 laptops can access all shares just fine) i can all of a sudden no longer access the DFS share \\accel.com\uk\data
    it either says it cannot find it or a username and password box comes up (i am using centrify to leverage our AD user accounts on our mac's) when i enter my username and password it does not accept it. I have the same issue when i am outside of the office and vpn's in.
    this evening i discovered that i have no problems accessing our DFS share if i enter \\domain.com\uk and i am presented with the folder UK on my dekstop and when i click on it i can see the DATA and HOME drive subfolder
    when i now go to the finder and click on connect to server SMB://domain.com/uk/home/xxx it connects fine
    so it seems that the /uk/ bit of the DFS path is confusing the mac client when not connected via the ethernet lan cable.
    i have tried to mount via the cli but it comes up with no route to host and the console log displays something similar
    at least i have a work around now but does anyone know if this is an issue with my name space setup or whether this is a bug (i presume bug as windows 7 clients have no issue with this namespace but i am not taking anything for granted :-) )
    thank you
    ps i found this post but it is slightly different to the issue i am having https://discussions.apple.com/message/16187498#16187498

    The issue has previously hit Apple TV owners. I think people came to the conclusion that it was a HDMI handshake problem. Basically the process where the device and TV greet each other, make up some rules about communicationg and what their secret key is and so on.
    I haven't tried this yet, but my local service center says that basically I can do one of two things:
    - Downgrade to 10.7 and then download the 10.7.1 update from Apples website. To do this without having a Mac OS X Lion disc, you can hold down CMD + R when the computer boots to be able to access the recovery partition on newer Macs that come without the OS disc.
    or..
    - Put something in between the computer and TV. For example, if you're using an amplifier as a part of your home theather set up, this will probably work. The service guy said he has his Mini connected to the amplifier, which in turn is connected to speakers and a projector. The inverted colors still appear, but only once per night (i.e. after the first problem is reset by resetting the link then it's fine).
    For now, I'll do my little dance of changing the source on the TV from HDMI 1 to HDMI 2 and then back again to reset the link... But, I'll probably try downgrading in a few days.

  • Error message when mapping to a network drive of a DFS share on Windows 7

    Hi,
    We are getting the following error when mapping to a network drive of a DFS share on Windows 7:
    “The mapped network drive could not be created because the following error has occurred:
    A specified logon session does not exist. It may already have been terminated."
    In our case, the user logs on his workstation using his regular domain account, then maps to the network DFS share using the service account of an application.
    There is a fix from Microsoft (MS KB968264). But this fix requires disabling the "Network access: Do not allow storage of credentials or .NET Passports for network authentication” property. This is against the Microsoft own best practices (Network access:
    “Do not allow storage of passwords and credentials for network authentication” should be set to
    ENABLED), and is NOT acceptable for us for obvious security reasons.
    Question: Does anyone know an alternative fix to this issue that does not introduce security risks?
    Thank you in advance!
    Mdjona

    Again I have tried this, but in my program if I try to save to the a drive when no disk is inserted, the JOptionPane i want to display is not coming up.
    the system prints out
    java.io.FileNotFoundException: A:\image.jpg <The device is not ready>
    If that makes any sense to you

  • User Passwords Rejected on AFP share mounts?

    User Passwords Rejected on AFP share mounts?
    (OK, my last post got buried, and perhaps too long), try again. Very brief
    Issue:
    After so many days, a User's AFP share password is rejected? What gives.
    If you reset it, several days later, same thing, rejected.
    Is Netinfo Database corrupted, what can / should be done?
    - Stand Alone server (with AFP and FTP services running, all other services off, not running.
    Summary Info for user having issue:
    Location: 192.168.0.50/NetInfo/DefualtLocalNode
    Home: No Home Directory
    Primary Group: Users (20)
    Password: Shadow Password
    I have deleted that troublesome user name and created a new name (for that user), just in case, in the re-creation of the same user name (after deletion) some corruption gets inherited.
    thanks,
    macguitarman
    Power Mac G5 Dual 2.0   Mac OS X (10.4.7)  

    Using Tiger Server, I have found that enabling ACLs, or Access Control Lists on the volume, and then specifying users and/or groups into the specific ACLs for the share point has been very helpful. Also note that 10.4.10 server seems to work better than 10.4.11, so if you haven't upgraded, don't go beyond 10.4.10. .11 seems to have some permissions issues and other problems.
    I assume you are connecting to the server via AFS (i.e. Go > Connect to Server > ip address) and not SMB? SMB sometimes is more problematic about ownership. But either way, Mac or PC clients, it seems ACLs are the way to go.
    Crazy as it seems, on my server, even if the owner is, say, admin, and the group with r/w permissions is, say, Prepress, it helps to specifically add the Prepress group to the ACL for that share. Then be sure to propagate the permissions down (unless you don't want to, for some reason). To do this, click the little gear icon and propagate all the permissions -- owner, group, acl, etc. down. This will take a bit of time depending on how much stuff you have. I also find that a server reboot can be helpful.
    [[ All this said, 10.5.1 seems to do some crazy things, and I hope 10.5.2 addresses them. I have one machine (not user ID) that always creates a folder on a share with no permissions for anyone. Only from that Mac; the same login on another works just fine. Go figure]]

  • Cannot access local DFS shares while VPN is active

    Hi
    We use Windows Server 2008 Standard as a domain controller. It also hosts DFS. Although the namespaces are hosted on the server, the data is stored on a Windows 2008 Storage Server. We do not use DFS replication.
    I have several DFS shares mapped on my Windows 7 client, which has just replaced my XP client, and can access them without any problems.
    However, as soon as I connect to a remote network (located on a different domain - it has nothing to do with our network at all), I am unable to access our DFS shares. If I try to access a DFS share an error message pops up stating:
    Location is not available
    Logon failure: unknown user name or bad password.
    The first time I connected the VPN a network dialog popped up asking what type of network it was and I chose Work. After connecting via the VPN I use remote desktop to carry out daily maintenance on a server on the remote network.
    Other local resources are available. I can ping machines via IP, name and FQDN. I can access the same DFS shares using UNC paths. So, although I receive the error message described above when accessing AD-name.local-backslash-share-name1 I have no trouble
    accessing server-name-backslash-share-name1
    As soon as I close the VPN connection normal functionality is restored and I can again access the DFS shares without any problems.
    Can someone help me fix this, please? When this was setup on my XP machine I never experienced this problem.
    Also, is there a way of typing LAN addresses without the forum software converting them to a customised hyperlink? Thanks!

    Thank you, fupin
    Sabrina's suggestion to edit the pbk file worked. I changed the setting from 1 to 0 and connected to the remote network via the VPN and am still able to access the local DFS shares.
    As per the OPs comments, the username and password I am using for the remote network are both different from the credentials I am using on the local network.
    ... take the steps in the KB 822707 to resolve it:
    1). Locate the .pbk file that contains the entry that you dial. To do so, click Start, click Search, type *.pbk in the All or part of the file name box, and then
    click Search.
    2). Open the file in Notepad.
    3). Locate the following entry: UseRasCredentials=1
    4). Modify the entry to the following: UseRasCredentials=0
    5). On the File menu, click Save, and the click Exit.
    Cheers!

  • Very slow responce when working with Office file on DFS-Share

    Very slow responce when working with Office file on DFS-Share
    We have implemented the following configuration
    Domain level Windows 2000. Two member servers with Windows Server 2008 R2, sharing the same DFS namespace with, at the moment, one folder target called Home.
    Users complaining that the access to different MS Office files is very slow. Even creating a new MS Word document using right click context menu takes up to 4 minutes to open. Saving, for example, one singe Excel sheet takes also few minutes.
    Tested with both, MS Office 2007 and MS Office 2010. Makes no difference. When using Office 2010 you can see the message like contacting:
    \\DomainName\Root\Home\UserName. Other files like TXT, JPG or PDF are not affected.
     What makes the thing really weird is the fact, that the behavior described above can absolutely change after client machine being rebooted, suddenly everything becomes very fast and this condition can revert back again just after the next
    reboot.
    Considerations until now:
    1. This has nothing to do with the file size. Even tiny files are affected.
    2. AD Sites are configured correctly and the client workstations see themselves in the correct sites.
    3. This is not an Office issue. If I map my folder target not as DFS, but directly as shared network drive
    \\ServerName\Root\Home\UserName , everything functions as expected
    What makes me suspicious: when using f.e. TCPView to monitor connections, I can see, that each time I make any operation on an office file, there will be a connection established to one of the domain controllers, sometimes to remote ones,
    located in other countries. But on the other side, even if the connection is established to the nearest DC, operations are still very very slow!
    Just forget to say. All clients are Windows 7
    Thanks to all who respond.

    Dear all,
    sorry for the delayed reply. The problem has been solved now and since September 19<sup>th</sup>. everything is functioning as expected.
    What was done:
    Deleted replication targets excepting the initial ones
    Carefully recreated folder targets
    Deleted and recreated  replication groups
    Disabled SNP features on both namespace servers
    Created EnableTCPA registry entry
    Checked that the following Updates are installed
    http://support.microsoft.com/kb/2688074
    http://support.microsoft.com/kb/2647452
    Concering Office File validation KB2553065 - This Update was already declined on our WSUS server
    Kind Regards
    Eduard

  • SL server share mounting not working for 10.7.4 Mac Mini

    I'm running about seven Macs on a network with a 10.6.8 Mac Mini server.
    The older Macs (PPCs and 10.4.11) mount the share immediately.
    Newer Macs recently have had a problem.
    My 10.6.8 MBP can mount the share, from a dock icon, but it can take minutes.
    Another Mac Mini (10.7.4) now refuses to mount the share manually. It can't make contact with the server share. I've tried via Ethernet and WiFi. It just hangs with Connect to Server.
    And yet, it has no problem with the iCal server running on the server.
    Another older MB and 10.6.8, mounts the share immediately.
    Has anyone had newer hardware with 10.7.4 develop server connection problems?

    Hi iToaster,
    These were all good tips, and I tried or investigated them.
    As it turns out, I noticed my SL Mac server needed a Java and securtiy update.
    After installing, mount time on my Lion and SL client Macs was near normal, not minutes. (Again, my older Macs had mounted the server share quickly and normally, when the newer ones did not.)
    My suspicion is that a modern OS sensed that the Java and security updates were not in place and took extra time to check the share mount in some manner.
    Thank you for your time, experitse and ideas, iToaster!

  • Cant access a DFS share from a Windows 7 computer

    I am having DFS share access issues with a Windows 7 workstation.
    My setup is I have 6 windows 7 stations accessing this DFS Share.
    All computers have the same Administrator password and another User/Password
    All but 1 are working as they should.
    The DFS share is running under Server 2008 R2 and contains files from this and another server.
    From the workstation, I can see the server under Network.
    I can open it and see the individually shared volumes and I have full read/write permissions.
    I can see the DFS share and I can map it.
    If I try to open the shared volumes within the DFS file I get a message saying I dont have permission.
    Interestingly, when I look at the properties of the DFS share form the workstation, I dont see a DFS tab.
    If I do this from a workstation is is able to connect fully to the share, I see a DFS tab in the properties.
    I tried to include everything,
    Thanks in advance

    Hi,
    Please try hotfix in the following KB,and check the result.
    You cannot access a DFS share through a mapped network drive on a computer that is running Windows 7 or Windows Server 2008 R2
    http://support.microsoft.com/kb/983620/en-us
    Some steps for troubleshooting DFS you can try
    http://technet.microsoft.com/en-us/library/cc962144.aspx
    How to troubleshoot Distributed File System Namespace access failures in Windows
    http://support.microsoft.com/kb/975440/en-us
    use command dfsutil /pktinfo to test the access to the DFS root and connectivity to the root shares
    http://blogs.technet.com/b/askds/archive/2009/06/04/the-case-of-the-random-dfs-access-denial.aspx
    Regarding to the missing dfs tab, there's a policy, locate to User Configuration\Administrative Templates\Windows Components\Windows Explorer\remove dfs tab, then users can not view or change the properties of the dfs shares
    Yolanda Zhu
    TechNet Community Support

  • 'Print on both sides of paper' in Adobe Reader 10.1.2 + DFS shares....

    Hello
    After the latest update a new print dialog is available which includes the option to 'Print on both sides of the paper'. Our printer (available via a print server in a Windows domain environment), is capable of printing duplexed copies of documents but is configured to default to not use duplex. When the option to do this from the Adobe Reader print dialog is selected the printer driver overides it and the document is printed normally (not duplexed).
    Is there a way to hide this option? We often need to print duplexed copies of documents but usually set it in the print driver when it is needed. Because the option is being overidden it has the potential to create an enormous amount of wasted paper and toner and will increase our printing costs.
    Also, when V10 was released, trying to open pdf's located in DFS share paths caused the program to hang. The solution was to disable protected mode. I tried enabling protected mode after this update (and previous updates), and restarted the application but instead of hanging, Adobe Reader now displays a message box stating:
    There was an error opening this document. Insufficient system resources exist to complete the requested service.
    If I disable protected mode and restart Adobe Reader the document can be opened.
    Any help appreciated.
    Thanks!

    Hi, Shatik
    Thanks for replying.
    The DFS shares are mapped as a network drive. This is done just once using a batch file that uses the persistent switch. No roaming profiles, no username\application data path.
    Since posting this I can now access PDF's, but many of our staff are now unable to scroll through an entire pdf without Adobe Reader hanging. Again, removing the checkmark in the protected mode option allows full scrolling of a pdf.
    Disabling/enabling antivirus real-time scanning makes no difference.

  • You cannot access a DFS share through a mapped network

    Im running a W2K8 R2 terminal server that acesses a DFS share on a W2K3 Standard server. All of a sudden when users log in the share is disconected. I cannot use the
    \\example.com\dfs\share to connect but, I can use the IP address
    \\1.1.1.1\share to connect. I have tried to install KB983620 and KB2194664 but when I click on the .msu it says the update is not applicable to your computer. I've aslo changed the Network Provider Order in the registry
    to start with RDPNP and LanmanWorkstation.
    Any ideas would be appreciated.

    Have you tried the command: dfsutil /pktflush (suggested in KB983620)?
    Please mark as answer or vote
    as helpful when it applies. Thanks!

  • How to monitor DFS shares disk usage/free space?

    How to monitor DFS shares disk usage/free space?
    Using Netapp filer shares to which DFS points. Looking for powershell script to send report.

    Hi,
    How about using Disk Quota function in FSRM (File Server Resource Manager)?
    Please see:
    Quota Management
    http://technet.microsoft.com/en-us/library/cc755917(v=ws.10).aspx
    In your case you can setup a soft quota with a specific size so that when it runs out of space you set, you will get an email or warning according to your setup. 
    If you have any feedback on our support, please send to [email protected]

  • Connection to windows DFS Shares

    Can OS X 10.6 connect to a DFSR share and access files on a windows 2008 R2 server?
    I see people using DAVE and ExtemeZ-IP for DFS but i also see people are able to connect with 10.6. Also if a user can't access the namespace dfs share, but could access the server dfs share directly that might be ok.
    I figured you server guys would know more than the workstation forum browsers.
    My goal is to have a physical win2k8r2 server in 2 office locations connected via VPN and be able to have users in both locations connect to a single share that is always in sync. DFSR seems to be the only good solution for this, but all the client machines are Mac's and we also have an Xserve in 1 location and an new mac mini as a OD replica in the other location.

    g3sys,
    How many Macs are you talking about? You are most likely going to need to buy a solution one way or the other, but the number of Macs that you need to support may be the determining factor.
    Group Logic's ExtremeZ-IP server pricing is based on the number of Macs you are going to have connecting, and the DFS serving capability is an additional fee (based on Group Logic's pricing page).
    Thursby's DAVE is a per-client cost, but includes DFS support built-in.
    I usually recommend DAVE to my clients, since you don't have to change the Windows server, and DFS is built in, so it can be more cost effective. Group Logic may be better for hundreds or thousands of Macs, but I don't know what their pricing is in those cases.
    Just my $.02

  • Can't connect to DFS shares from machines not part of the domain

    I'm not sure if this is by design, but we can't connect to DFS shares from machines that are not joined to the domain.  We can't even map a drive using credentials of a domain account.
    Is that how DFS is supposed to work? 

    Hi RJO22,
    I did some research on this topic, and got a conclusion:
    Clients that belong to a workgroup can only access the DFS namespace if the name resolution mechanism that is in place can locally resolve the domain name
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/c3214a4c-8088-446c-ba4d-643d5baf87cc/how-to-access-dfs-namespace-from-a-standalone-windows-2003-server
    Regards,
    Alex Zhao
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • DFS share refresh slow

    Hi,
    we got an issue with our DFS.
    Our scenario: we got an AD Forest with 2 child domains and 2 DFS server serving our 2 locations. 
    Some days ago some users on the first site concerned about they won't able to seeing new files created by their colleagues into their DFS share. Today that issue is also on the second site: we're able to seeing new or modified files only after 5-15 minutes. 
    What could be causing that issue? 
    Thanks
    Max

    Hi Max,
    Before going further, we can check the health of our DFS namespace.
    Regarding how to troubleshoot DFS problems, the following articles can be referred to for more information.
    Five ways to check your DFS-Namespaces (DFS-N) configuration with the DFSDIAG.EXE tool
    http://blogs.technet.com/b/josebda/archive/2009/07/15/five-ways-to-check-your-dfs-namespaces-dfs
    Troubleshooting DFS Problems
    http://technet.microsoft.com/en-us/library/cc962144.aspx
    Best regards,
    Frank Shen

Maybe you are looking for

  • Chart & Graph Tools in jdeveloper 11

    Dear all i am trying to find chart & Graph Tools in jdeveloper 11 but i cant find them ? is there any configuration needed to be able to work with it ? Many Thanks.

  • Installing flash player on Mac (OSX)10.5.8  Safari 5.0.6

    Can someone please walk me through downloading flash player on this machine? yes it's an older model but it is all I have at the moment.. I understand that adobe & apple no longer support anything below mac 10.6 but is there a way I can locate and in

  • Acrobat X & Outlook: Create PDF's that show time SENT

    Hi I am creating PDF's from emails in Outlook using Acrobat X. When I create PDFs the PDFs show the time the email was received. I need the PDFs to show the time the email was sent (i.e. the same way it is displayed in Outlook). How do I do this? Can

  • Soap gel in iPhone 4 charging port

    Soap gel entered in the charging port of my iPhone 4 . I tried drying it with tissue . Kept in rice for 10 hrs . Sound is gone . I cannot make  the volume buttons make any change on the ringer icon !! No music can be heard . Phone seems to work like

  • Moving an image inside  a shape

    OS X Yosemite, Pages 5.5.1. I am trying to move an image I opened as a filling for a shape. I how can I move the image inside the shape without moving the actual shape?