exam questions

Exam 70-742 All Questions

View all questions & answers for the 70-742 exam

Exam 70-742 topic 1 question 73 discussion

Actual exam question from Microsoft's 70-742
Question #: 73
Topic #: 1
[All 70-742 Questions]

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
Your network contains an Active Directory domain named contoso.com. You have an organizational unit (OU) named LondonUsers that contains 10,000 users.
You need to modify the Office attribute of all the users in the LondonUsers OU.
Solution: You create an LDIF file. You run ldifde.exe and specify the `"i and `"f parameters.
Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
References:
https://webactivedirectory.com/2011/07/18/simple-powershell-script-to-bulk-update-or-modify-active-directory-user-attributes/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
kostask
4 years, 3 months ago
I think the question is tricky. If we want to be exact then -i and -f are not enough. We need to use also -d to export only londonusers OU on the LDF file. In that concept the answer is B. NO
upvoted 1 times
kostask
4 years, 3 months ago
On second thought. There is no need to filter with -d. You can just export whole domain and edit the attribute only on the specific dn: CN=Londonusers etc... so in that case the answer is A.YES
upvoted 1 times
...
...
Tenshi
4 years, 5 months ago
As provided links clearly state ldifde.exe can modify (with a lot of effort). I still bet on B.NO, because the Q states that you "create" the LIDIF file and then import, not to export / modify / import.
upvoted 1 times
...
Mountie
4 years, 5 months ago
Answer is Yes. To modify a 10000 user attribute, you simply use Excel to modify the csv file. Maybe a couple "Find and Replace" command will help to modify the file, then run Ldifde with the modified csv.
upvoted 1 times
...
EnioBaptista
4 years, 6 months ago
B is ok
upvoted 1 times
hodg
4 years, 4 months ago
Please explain/justify comments.
upvoted 3 times
...
...
alexnt
4 years, 6 months ago
I searched for modifying the attributes of an OU and the answers point only to the Get-ADUser -SearchBase command. No one suggests the LDIFDE solution... https://community.spiceworks.com/topic/694667-active-directory-users-attributes-modification-by-powershell https://community.spiceworks.com/topic/1981810-change-address-in-ad-powershell-command https://community.spiceworks.com/topic/2207665-powershell-script-to-bulk-edit-office-attribute On the other hand I have also checked the links provided that point out LDIFDE gets the job done, and so I can't understand why others say answer is No. Maybe both are correct, I don't know.
upvoted 1 times
...
RucasII
4 years, 6 months ago
I think is Yes https://www.itprotoday.com/active-directory/jsi-tip-3310-how-can-i-modify-active-directory-schema-batch
upvoted 1 times
...
Kamikazekiller
4 years, 9 months ago
Answer is: A-YES
upvoted 3 times
Kamikazekiller
4 years, 9 months ago
Sorry, I recheck again, the correct answer is B-NO
upvoted 3 times
Aimismyname
4 years, 6 months ago
Tell us why instead of just shouting it into the air
upvoted 12 times
...
...
...
Timock
4 years, 10 months ago
The solution states that you need to modify the office attribute for 10,000 users in the LondonUsers OU. CSVDE is used to import/export objects. LDIFDE can make changes to existing objects. These are existing objects so the answer is wrong. Answer should be A (True)
upvoted 3 times
...
lbs
4 years, 10 months ago
Compared to the answer in Q246: Get-ADUser, Set-ADUser: The LDIFDE solution is off the mark. Answer is correct, No
upvoted 2 times
...
Gomer
4 years, 10 months ago
This works for one user using LDIF. You'd have to do more logic to change all user accounts in OU, so I don't know if this changes the answer from B to A. I'm betting that A is correct though: notepad.exe -> dn: cn=User1,ou=LondonUsers,dc=MCSA2016,dc=local changetype: modify replace: physicalDeliveryOfficeName physicalDeliveryOfficeName: London - -> save text to: c:\modify.ldf # Update office attribute (only for User1) ldifde -i -f c:\modify.ldf # Export all user attributes (modifiable with ldifde command) ldifde -d "cn=User1,ou=LondonUsers,dc=mcsa2016,dc=local" -r "(objectClass=user)" -f c:\test.ldf
upvoted 3 times
VeiN
4 years, 7 months ago
I`ve done the something similar using this: https://www.computerperformance.co.uk/logon/ldife-modify/ Generally its possible to create a file with every user. I suppose this was the way to do in the past. For me its A YES
upvoted 2 times
VeiN
4 years, 7 months ago
Here`s great article https://adamtheautomator.com/csvde-ldifde/
upvoted 2 times
...
...
...
khalid86
4 years, 11 months ago
Answer is A. https://serverfault.com/questions/115239/difference-between-ldifde-exe-and-csvde-exe https://adamtheautomator.com/csvde-ldifde/#updating-an-attribute
upvoted 2 times
...
daluadanilo
5 years ago
the answer is "yes" for LDIFDE for modify users the answer is "no" for CSVDE for modify users
upvoted 3 times
...
manjonei
5 years, 2 months ago
You need to modify not to import or export. So, the answer is correct. View this link https://adamtheautomator.com/csvde-ldifde/#modifying-active-directory-objects section "Modifying Active Directory Objects" second paragraph.
upvoted 1 times
rohw
4 years, 11 months ago
The answer is A. When you create the import file to use with the ldifde command, use a changeType value to define the type of changes that the import file will contain.
upvoted 1 times
...
...
ITGEEK
5 years, 2 months ago
I think A is correct, follow the link for the explanation https://adamtheautomator.com/csvde-ldifde/#updating-an-attribute
upvoted 4 times
...
Ozguraydin
5 years, 3 months ago
ldifde don't need for AD LDS. My opinion is the answer is YES. After the user files prepare, you can create the users with command that ldifde –i -f newusers.ldf
upvoted 2 times
Ozguraydin
5 years, 3 months ago
You can change any attributes of the users, also.
upvoted 1 times
...
...
panda
5 years, 5 months ago
And I think the given reference isn’t be related to LDIFDE.
upvoted 2 times
...
panda
5 years, 5 months ago
I made mistake. The purpose of this solution is to import the manually created LDIFDE data without exporting some source data. However correct answer is still B. Because to use LDIFDE.exe AD LDS should be installed.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago