The below PowerShell ISHRemote script will create a publication with the desired GUID. The Folder ID, the Logical ID (the desired GUID for the pub), and the Output Format needs to be modified (if there is not already an output for “PDF (A4 Manual)”).Once the publication is created, the existing maps, topics, etc. can be added to reproduce the full publication that was deleted.
$webServiceURL = https://<TD URL>/<WEB SERVICE>
$mycreds = Get-Credential -Message "Enter credentials for a Tridion Docs administrator."
$ishSession = New-IshSession -WsBaseUrl $webServiceURL -psCred $mycreds
$metaDataCreate = Set-IshMetadataField -IshSession $ishSession -Name 'FISHREQUIREDRESOLUTIONS' -Level 'version' -Value 'Low' |
Set-IshMetadataField -IshSession $ishSession -Name 'FISHPUBSOURCELANGUAGES' -Level 'version' -Value 'en' |
Set-IshMetadataField -IshSession $ishSession -Name 'FTITLE' -Level 'logical' -Value 'Test Creating new PUB'
Add-IshPublicationOutput -IshSession $ishSession `
-FolderId "12827" `
-LogicalId "C241D4C6-56C9-4033-AAA6-EA1AAB020290" `
-Version "1" `
-OutputFormat "PDF (A4 Manual)" `
-LanguageCombination "en" `
-Metadata $metaDataCreate