Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.74 KB

Restore-AzureADMSDeletedDirectoryObject.md

File metadata and controls

64 lines (45 loc) · 1.74 KB
external help file Module Name ms.custom ms.reviewer online version schema
Microsoft.Open.MS.GraphBeta.PowerShell.dll-Help.xml
AzureADPreview
iamfeature=PowerShell
rodejo
2.0.0

Restore-AzureADMSDeletedDirectoryObject

SYNOPSIS

This cmdlet is used to restore a previously deleted object.

SYNTAX

Restore-AzureADMSDeletedDirectoryObject -Id <String> [<CommonParameters>]

DESCRIPTION

This cmdlet is used to restore a previously deleted object. Currently, only restoring Group and Application objects is supported. When a group or an application is deleted it is initially soft deleted and can be recovered during the first 30 days after deletion. After 30 days the deleted object is permanently deleted and can no longer be recovered. Note that only Unified Groups (a.k.a. Office 365 Groups) can be restored. Security groups cannot be restored.

EXAMPLES

Example 1

Restore-AzureADMSDeletedDirectoryObject -Id aa644285-eb75-4389-885e-7233f096984c

This example shows how to restore a deleted object with Id aa644285-eb75-4389-885e-7233f096984c

PARAMETERS

-Id

The Id of the directory object to restore

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String

OUTPUTS

System.Object

NOTES

RELATED LINKS