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
Explanation:
References:
https://docs.microsoft.com/en-us/powershell/module/microsoft.windows.servermanager.migration/installwindowsfeature?view=win10-ps https://docs.microsoft.com/en-us/powershell/module/dfsn/grant-dfsnaccess?view=win10-ps
I think this question misses one line with the actual requirement or question in it.
Two cmdlets are asked and three are marked as an answer. (?)
A and C seem to make the most sense to me.
New-DfsnFolderTarget: adds a target to a DFS namespace folder.
Grant-DfsnAccess: grants permissions to users and groups to access a DFS namespace folder.
Folder1 needs to be added to the DFS namespace and permissions need to be set. This makes the most sense.
0
3
B sure, and i think that A too
1
1
First E then A or D. I hope that on the exam they combined A and D as they do almost the same thing. Why B?
0
2
Correct answer: A & C
A first: https://docs.microsoft.com/en-us/powershell/module/dfsn/new-dfsnfoldertarget?view=win10-ps
C second: https://docs.microsoft.com/en-us/powershell/module/dfsn/grant-dfsnaccess?view=win10-ps
DFS does not need to be installed on Server1 (FileShare) as it is not required for the folder to be accessed by DFS or is already part of the DFS servers (not specified).
5
3
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)
21
5
I totally agree!
0
0
I totally agree
1
0
I totally agree with you.
1
0
Chris is right
New-DfsnFolderTarget -Path “\\Contoso\AccountingResources\LegacySoftware” -TargetPath “\\Contoso-FS\Software” -ReferralPriorityClass GlobalLow –>https://docs.microsoft.com/en-us/powershell/module/dfsn/new-dfsnfoldertarget?view=win10-ps
Grant-DfsnAccess -Path “\\Contoso-FS\Software” -AccountName “TSQA\PattiFuller” –> https://docs.microsoft.com/en-us/powershell/module/dfsn/grant-dfsnaccess?view=win10-ps
New-SmbShare is for normal SMB shares not DFS.–>https://docs.microsoft.com/en-us/powershell/module/smbshare/new-smbshare?view=win10-ps
1
7
I totally agree.
0
0
A + E
E – Share the folder
A – Create as a target for DFS
4
1
Can you provide Documentation on backing up your answers please?
0
0
The question seems incomplete as well.
1
0
The New-DfsnFolderTarget cmdlet adds a target to a Distributed File System (DFS) namespace folder.
Specify the DFS namespace folder and the folder target.
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.
1. New-SmbShare for Folder1 on Server1
A folder target is the UNC path of a shared folder or another namespace that is associated with a folder in a namespace
2. Priorita 1 – create dfs folder and mapping to Folder1 on Server1
New-DfsnFolder
but question is confusing.
nothing about create mapping folder in DFS) namespace named \\\\contoso.com\\namespace1. New-DfsnFolder
or folder in DFS namespace named \\\\contoso.com\\namespace1
created. New-DfsnFolderTarget
what for my answer D and E
3
2
correction
E A
1
2
Chris and HK are right and the links they provide show this. Why are people wanting to add a new SMB share for DFS? This doesn’t make sense. Create the DFS folder target. Grant the required access.
A & C
2
3
Guys I think most of you have missed some key points with this question.
1 – The domain contains a file server named Server1 that runs Windows Server 2016.
It does not say this is the server has the DFS management tools on it that also include the powershell module, therefore ALL DFS commands will not work
“new-dfsnfolder : The term ‘new-dfsnfolder’ is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.”
2 – You create a folder named Folder1 on Server1.
It does not say the folder is shared, just created therefore at this point it is just a folder nothing else
So we have a Server that doesnt have DFS tools on it nor any shares.
So to make create a DFS Share we will need to
1 – Share the Folder
E. New-SmbShare
2 – Install the tools so we can create a DFS Folder to share them on
B. Install-WindowsFeature
3 – Create a Namespace Folder
D. New-DfsnFolder
4 – Then you need to add a folder target to this Folder
A. New-DfsnFolderTarget
So I would say the first two steps are E and B
0
0
Update I got tricked too and missed one key step.
1 – Install the tools so we can create a DFS Folder to share them on
B. Install-WindowsFeature
2 – Gain control of the possibly “orphaned” namespace
C – Grant-DFSNAccess
3 – Share the Folder
E. New-SmbShare
4 – Create a Namespace Folder
D. New-DfsnFolder
5 – Then you need to add a folder target to this Folder
A. New-DfsnFolderTarget
Therefore it would be B and C
0
0
Last edit sorry
I revert to my original as I had to test the Grant-DFSNAccess and it only works on namespace folders not the namespace itself
so FINAL E and B
1
1
This is really simple and can be done in a LAB in less than 5 minutes.
You will then see that in order to create a folder target you first need to share the specific folder. Permissions don’t matter in this case, they will be inherited from the local file system.
New-SMBShare -Path C:\folder1 -Name folder1
Add-DfsnFolderTarget -Path \\contoso.com\\namespace1\folder1 -TargetPath \\server1\folder1
0
0
Last command should be New-DfsnFolderTarget, sorry for the typo.
New-SMBShare would obviously need to be ran on Server1
0
0