You have an app named TaskManagerApp that is published at http://sharepoint.contoso.com/apps.
You need to remove the app and ensure that users will no longer be able to use the app.
Which Windows PowerShell cmdlets should you run?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
Explanation:
* Get-SPAppInstance
Use the Get-AppInstance cmdlet to get a collection of app instances that are installed on an SPWeb object.
*Uninstall-SPAppInstance
Use the Uninstall-SPAppInstance cmdlet to uninstall an instance of an app. This cmdlet is required to be run
before a migration process.
————-EXAMPLE————–
$instance = Get-SPAppInstance -AppInstanceId $instance.Id
Uninstall-SPAppInstance -Identity $spapp
This example uninstalls an instance of an app.
Incorrect:
Not B, not D: get-SPWebApplication
The Get-SPWebApplication cmdlet returns all Web applications that match the scope given by the Identity
parameter. The Identity can be the name of the name, URL, or GUID of the Web application. If no Identity is
specified, all Web applications are returned.
EXAMPLE 1———————-
$w = Get-SPWebApplication http://sitename
This example gets the Web application for http://sitename and stores it in a variable.
Not C: Disable-SPFeature
The Disable-SPFeature cmdlet disables a SharePoint Feature at the given scope.
Uninstall-SPAppInstance