Hi all unfortunatly i have deleted site collections in sharepoint 2010 . I am able to restored it using powerscript.
if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null)
{
Add-PSSnapin "Microsoft.SharePoint.PowerShell"
}
foreach($m in Get-SPDeletedSite)
{
Restore-SPDeletedSite -Identity $m
}
if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null)
{
Add-PSSnapin "Microsoft.SharePoint.PowerShell"
}
foreach($m in Get-SPDeletedSite)
{
Restore-SPDeletedSite -Identity $m
}
No comments:
Post a Comment