Which two cmdlets should you use?

Your network contains an Active directory forest named contoso.com. The forest has a Distributed File System (DFS) namespace named
\contoso.com
namespace1.
The domain contains a file server named Server1 that runs Windows Server 2016.
You create a folder named Folder1 on Server1.
Which two cmdlets should you use? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. New-DfsnFolderTarget
B. Install-WindowsFeature
C. Grant-DfsnAccess
D. New-DfsnFolder
E. New-SmbShare

microsoft-exams

20 thoughts on “Which two cmdlets should you use?

  1. Ok, somebody above said you are reading too much into this. I tend to believe that. There is no mention of Folder1 having been shared yet which is required to be added to DFSN Folder as DFSN Folder Target when going through the GUI. Only shared folders appear in the dialog box. However, by using powershell cmdlets you technically only need to use a single command, that being New-DfsnFolder. Within that cmdlet you can also specify the DFSN folder target which has been created (Folder1). It would look like this PS C:\> New-DfsnFolder -Path “\\contoso.com\dfsnfolder” -TargetPath “\\Server1\Folder1” With that said and the emphasis being on Distributed File System for the 741 test, I would believe that the two cmdlets required here are New-DfsnFolder and New-DfsnFolderTarget. Of course creating the new SMB share and granting DFSN access are required but I think that is not what is being looked for in this particular question. Thoughts?
    https://shabaztech.com/installing-and-configuring-dfs-n-on-windows-server-2016/
    https://docs.microsoft.com/en-us/powershell/module/dfsn/new-dfsnfolder?view=win10-ps

  2. A and E. I tried in my lab and if you want to add folder target, the folder must be shared first.

  3. Your network contains an Active directory forest named contoso.com.
    The forest has a Distributed File System (DFS) namespace named \\contoso.com\namespace1
    The domain contains a file server named Server1 that runs Windows Server 2016.
    You create a folder named Folder1 on Server1.
    You need to use Folder1 as a target for Namespace1.
    Which two cmdlets should you use? Each correct answer presents part of the solution.

    A. New-DfsnFolderTarget
    B. Install-WindowsFeature
    C. Grant-DfsnAccess
    D. New-DfsnFolder
    E. New-SmbShare

    Correct Answer: AE

    Explanation/Reference:
    This question asks you how to produce a DFS Root folder target for “namespace1” on Server1.
    The forest has an existing DFS Root “namespace1” hosted on other servers, to add Server1 as a folder target,
    First, create a shared folder on Server1 (\\Server1\Folder1) by using New-SmbShare cmdlet (Answer A).
    Then use the “New-DfsnFolderTarget” to add Folder1 as an additional target path of “namespace1”.
    New-DfsnFolderTarget -Path “\\contoso.com\namespace1” -TargetPath “\\Server1\Folder1”
    https://technet.microsoft.com/en-us/itpro/powershell/windows/dfsn/new-dfsnfoldertarget
    The New-DfsnFolderTarget cmdlet adds a target to a Distributed File System (DFS) namespace folder.
    As the “namespace1” DFS Root folder was created, answer C is incorrect.

  4. I think it’s correct. B and C.

    It does not say the server has the DFS management tools on it that also include the powershell module, therefore all DFS commands will not work. So first, we need to install it —-> B. Install-WindowsFeature

    It does not say the folder Folder1 is shared, just created so at this point it is just a folder nothing else.

    Grant-DfsnAccess cmdlet grants permissions to users and groups for a Distributed File System (DFS) namespace folder. So we need to do —-> C. Grant-DfsnAccess

  5. I think a lot of you are reading too much into the question. The answers are A and C. Here’s why:

    “You create a folder named Folder1 on Server1”. From that alone, the admin just created a folder named folder1, and now it needs to be shared on the enterprise whenever a user logs in.

    C – Grant-DfsnAccess

    This will actually allow the user to see the dfs folder in the directory whenever they login. Keep in mind, in the workplace where i’m at, the DCs have the DFS role, so the namespace is replicated between all of the DCs. It may be entirely different where you’re at.

    A – New-DfsnFolderTarget

    Now you actually have to make that folder part of dfs. So if the forest is contoso.com, and it carries the dfs role, then it would be \\Contoso\Namespace1\Folder1

    If this is not correct, please let me know!

  6. E,A.
    First, we have to recognize that the Folder1 on Server1 is NOT shared at all. Because of that, to make it usable for DFS it should be shared some way. There is a way:
    E. New-SmbShare
    Second, I assume that the folder should be added to DFS namespace as a target but NOT replication member. If yes, then:
    – no need to install DFS feature as no need to participate in replication,
    – A. New-DfsnFolderTarget as new share should be added to target list with DEFAULT permissions (no need to mess with permissions)

  7. Not 741 exam but rather it is a 740
    And the answer is
    B. Install-WindowsFeature
    D. New-DfsnFolder
    You need to install the feature on your file server and create a DFS folder your your name space
    PS, the questions seems to super generic not sure if you see this kind of questions on the exam

  8. The Correct answer is C-D
    Grant-DfsnAccess
    The Grant-DfsnAccess cmdlet grants permissions to users and groups for a Distributed File System (DFS) namespace folder. This cmdlet grants permissions to access a folder and to enumerate its contents. You can use the Get-DfsnAccess cmdlet to see the current permissions, and you can use the Revoke-DfsnAccess cmdlet to revoke permissions.

    New-DfsnFolder
    The New-DfsnFolder cmdlet creates a folder in a Distributed File System (DFS) namespace. Specify the path and a path for a folder target for the new folder.

    A DFS namespace folder has one or more folder targets that are shared folders on computers. When a client attempts to connect to a folder, the DFS namespace server provides a list of folder targets, called referrals. The server determines the order for referrals and clients attempt to connect to a folder target in the order that the server provides.

  9. I think the answer B is wrong. The correct answer should be C – D.

    Explanation/Reference:

    h**ps://docs.microsoft.com/en-us/windows-server/storage/dfs-namespaces/create-a-folder-in-a-dfs-namespace

    The New-DfsnFolder cmdlet creates a folder in a Distributed File System (DFS) namespace. Specify the path and a path for a folder target for the new folder.

    A DFS namespace folder has one or more folder targets that are shared folders on computers. When a client attempts to connect to a folder, the DFS namespace server provides a list of folder targets, called referrals. The server determines the order for referrals and clients attempt to connect to a folder target in the order that the server provides.

    You can specify settings for the new folder. You can use this cmdlet to enable or disable the following settings:

    In-site referrals.
    Target failback.

    You can also add a descriptive comment, select the state of the folder and folder target, and set the Time to Live (TTL) interval for referrals.

    Finally, you can specify the priority class and priority rank for referrals.
    The Grant-DfsnAccess cmdlet grants permissions to users and groups for a Distributed File System (DFS) namespace folder. This cmdlet grants permissions to access a folder and to enumerate its contents. You can use the Get-DfsnAccess cmdlet to see the current permissions, and you can use the Revoke-DfsnAccess cmdlet to revoke permissions.​

    h**ps://docs.microsoft.com/en-us/powershell/module/dfsn/New-DfsnFolder?view=win10-ps

    h**ps://docs.microsoft.com/en-us/powershell/module/dfsn/grant-dfsnaccess?view=win10-ps

  10. I think the answer B is wrong. The correct answer should be CD.

    Explanation/Reference:

    h**ps://docs.microsoft.com/en-us/windows-server/storage/dfs-namespaces/create-a-folder-in-a-dfs-namespace

    The New-DfsnFolder cmdlet creates a folder in a Distributed File System (DFS) namespace. Specify the path and a path for a folder target for the new folder.

    A DFS namespace folder has one or more folder targets that are shared folders on computers. When a client attempts to connect to a folder, the DFS namespace server provides a list of folder targets, called referrals. The server determines the order for referrals and clients attempt to connect to a folder target in the order that the server provides.

    You can specify settings for the new folder. You can use this cmdlet to enable or disable the following settings:

    In-site referrals.
    Target failback.

    You can also add a descriptive comment, select the state of the folder and folder target, and set the Time to Live (TTL) interval for referrals.

    Finally, you can specify the priority class and priority rank for referrals.
    The Grant-DfsnAccess cmdlet grants permissions to users and groups for a Distributed File System (DFS) namespace folder. This cmdlet grants permissions to access a folder and to enumerate its contents. You can use the Get-DfsnAccess cmdlet to see the current permissions, and you can use the Revoke-DfsnAccess cmdlet to revoke permissions.​

    h**ps://docs.microsoft.com/en-us/powershell/module/dfsn/New-DfsnFolder?view=win10-ps

    h**ps://docs.microsoft.com/en-us/powershell/module/dfsn/grant-dfsnaccess?view=win10-ps

  11. E has nothing to do with DFS

    You will need to install the service first so B is correct and it is mandatory

    D is to create a folder in DFSN and A is to link that folder to the server folder
    I believe D and A should be run at the same time

    Maybe by granting the DFSN access to ta folder it will be automatically mapped and available to selected user right away?

  12. I think, E D.
    You make a folder but you not share folder, E.
    After this you create a new dfs folder, D.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.