exam questions

Exam 70-488 All Questions

View all questions & answers for the 70-488 exam

Exam 70-488 topic 1 question 46 discussion

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

DRAG DROP -
Contoso. Ltd. uses SharePoint for document sharing, task management, and workflows. Contoso, Ltd has a SharePoint portal with a URL of intranet.contoso.com.
The portal has 5,000 subsites. It is used by 50,000 users.
You develop a custom web level feature that allows users to see their tasks from every website on the portal.
You need to use a Windows PowerShell script to enable the web level feature in the subsites without adversely impacting the performance of the server.
You have the following script:

Which values should you include in Target 1, Target 2, Target 3 and Target 4 to complete the script? (To answer, drag the appropriate values to the correct targets in the answer area. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
* Example:

Advanced Assignment -
Objects are assigned to named stores for disposal. You can dispose of objects by using the -Identity parameter with the Stop-SPAssignment command.
$siteScope = Start-SPAssignment
foreach($site in ($siteScope | Get-SPSite "http://server/*"))
{
$webScope = Start-SPAssignment
$web = $webScope | Get-SPWeb $site.RootWeb.Url
$web.Title = "Greetings from PowerShell"
$web.Update()

Stop-SPAssignment $webScope -
}

Stop-SPAssignment $siteScope -
Regardless of the level used, all objects are disposed of when the PowerShell runspace is closed.

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
Currently there are no comments in this discussion, be the first to comment!
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 ...