Skip to content

Commit f01b04f

Browse files
author
Thomas Pollinger
committed
Update for 0.2.9
1 parent 1dee206 commit f01b04f

7 files changed

Lines changed: 11 additions & 11 deletions

Helper/Build-ManifestFile.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $ExportGuid = ("382987ca-c990-4633-a398-07a50089a2f9");
2121
$ExportDescription = ("PowerShell Module Wrapper for OpenText Web Site Management and Delivery Server (RedDot CMS & CPS).");
2222
$ExportAuthor = ("Thomas Pollinger");
2323
$ExportCompanyName = ("OpenText Web Solutions Usergroup e.V. (OWUG)");
24-
$ExportVersion = ("0.2.8");
24+
$ExportVersion = ("0.2.9");
2525
$ExportPowerShellVersion = ("4.0");
2626
$ExportCompatiblePSEditions = ("Desktop");
2727
$ExportRootModule = (".\SmartConsole.psm1");

Scripts/Maintenance/Get-AllContentClassesWithoutInstances.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ foreach ($ContentClassFolder in $AllProjectContentClassFolders) {
2929
ContentClass = $ContentClass.name;
3030
ContentClassInstances = -1;
3131
}
32-
$Instances = (Find-MSContentClassInstances -ContentClassGUID ($ContentClass.guid)).SelectNodes("IODATA/PAGES/PAGE");
32+
$Instances = (Find-MSContentClassInstances -ContentClassGUID ($ContentClass.guid) -PageSize (1000) -MaxHits (1000)).SelectNodes("IODATA/PAGES/PAGE");
3333
Write-Progress -Activity ("Working... checking content class folder: {0} ({1})." -f $ContentClassFolder.name, $AllContentClassesOfFolder.Count) -Status ("Please wait - check for instances at content class: {0}." -f $ContentClass.name);
34-
if ($Instances.Count -le 3) {
34+
if ($Instances.Count -gt 750) {
3535
$ResultObject.ContentClassInstances = $Instances.Count;
3636
$AmountContentClassWithoutInstances += $ResultObject;
3737
}
3838
}
3939
}
4040

41-
$AmountContentClassWithoutInstances | Format-Table; # Optional - Output to console
42-
#$AmountContentClassWithoutInstances | Out-File -FilePath ("C:\Temp\Result-AmountContentClassWithoutInstances-{0}.txt" -f $WSMProjectGUID) -Encoding ("utf8") -Force; # Optional - Output to file
41+
#$AmountContentClassWithoutInstances | Format-Table; # Optional - Output to console
42+
$AmountContentClassWithoutInstances | Out-File -FilePath ("C:\Temp\Result-AmountContentClassWithoutInstances-{0}.txt" -f $WSMProjectGUID) -Encoding ("utf8") -Force; # Optional - Output to file
4343

4444
#Show-MSSession; # Optional
4545
Exit-MSSession -UseDefaults ($true);

Scripts/Maintenance/Get-AllContentClassesWithoutProjectVariantAssignment.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ foreach ($ContentClassFolder in $AllProjectContentClassFolders) {
3131
ContentClass = $ContentClass.name;
3232
MissingProjectVariant = @();
3333
}
34-
Write-Progress -Activity ("Working... checking content class folder: {0} ({1})." -f $ContentClassFolder.name,$AllContentClassesOfFolder.Count) -Status ("Please wait - check for missing project variants at content class: {0}." -f $ContentClass.name);
34+
Write-Progress -Activity ("Working... checking content class folder: {0} ({1})." -f $ContentClassFolder.name, $AllContentClassesOfFolder.Count) -Status ("Please wait - check for missing project variants at content class: {0}." -f $ContentClass.name);
3535
$Results = ("");
3636
$ContentClassProjectVariants = (Get-MSContentClassProjectVariants -ContentClassGUID ($ContentClass.guid)).SelectNodes("IODATA/TEMPLATE/TEMPLATEVARIANTS/TEMPLATEVARIANT");
3737
if ($ContentClassProjectVariants -ne $null) {

Scripts/Maintenance/Get-AllProjectPublicationPackagesWithoutReferences.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ foreach ($PublicationPackage in $AllProjectPublicatioNPackages) {
4444

4545
Write-Progress -Activity ("Finished...") -PercentComplete ($ValuePercentComplete) -CurrentOperation ("{0}% complete" -f [math]::Round($ValuePercentComplete)) -Status ("Please wait - Sending output to console.");
4646

47-
$PublicationPackagesNoReference; # Optional - Output to console
48-
#$PublicationPackagesNoReference | Out-File -FilePath ("C:\Temp\Result-PublicationPackagesNoReference-{0}.txt" -f $WSMProjectGUID) -Encoding ("utf8") -Force; # Optional - Output to file
47+
#$PublicationPackagesNoReference; # Optional - Output to console
48+
$PublicationPackagesNoReference | Out-File -FilePath ("C:\Temp\Result-PublicationPackagesNoReference-{0}.txt" -f $WSMProjectGUID) -Encoding ("utf8") -Force; # Optional - Output to file
4949

5050
#Show-MSSession; # Optional
5151
Exit-MSSession -UseDefaults ($true);

Scripts/Maintenance/Start-RemoveUnlinkedPagesFromProject.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ while ($UnlinkedPages.Count -gt 0) {
5656

5757
Write-Progress -Activity ("Finished...") -PercentComplete ($ValuePercentComplete) -CurrentOperation ("{0}% complete" -f [math]::Round($ValuePercentComplete)) -Status ("Please wait - Sending output to console.");
5858

59-
$RemovedUnlinkedPages | Select-Object -Property ("guid", "id", "headline", "status", "flags") | Format-Table; # Optional
59+
#$RemovedUnlinkedPages | Select-Object -Property ("guid", "id", "headline", "status", "flags") | Format-Table; # Optional
6060
#$RemovedUnlinkedPages | Select-Object -Property ("guid", "id", "headline", "status", "flags") | Format-Table | Out-File -FilePath ("C:\Temp\Result-RemovedUnlinkedPages-{0}.txt" -f $WSMProjectGUID) -Encoding ("utf8") -Force; # Optional - Output to file
6161

6262
#Show-MSSession; # Optional

Scripts/Users/Get-AllUsersOfProject.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
Set-MSConfigDebugMode -Value ($false); # $true oder $false
44

5-
$WSMProjectGUID = ("072d6659-a806-425b-aca8-d29f37fd6e7d"); # Vodafone Internet
5+
#$WSMProjectGUID = ("072d6659-a806-425b-aca8-d29f37fd6e7d"); # Vodafone Internet
66
#$WSMProjectGUID = ("8c681c01-ece4-4fc8-b1fb-45c4a7760501"); # Vodafone Intranet
7-
#$WSMProjectGUID = ("8A300F4B74AA4D4CB5C54C2165FC56D1"); # Shared Components - Simplicity
7+
$WSMProjectGUID = ("8A300F4B74AA4D4CB5C54C2165FC56D1"); # Shared Components - Simplicity
88
#$WSMProjectGUID = ("6A89CD93325D42FD81A42FA836547016"); # vodafone Internet - Fachhandel Online
99

1010
Register-MSSession -UseDefaults ($true);

SmartConsole.psd1

96 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)