We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, if the application is retired, then the script sets to active to deal with it, it doesn't retire it at the end.
The text was updated successfully, but these errors were encountered:
this appears to work instead - remove the commented lines and replace with the "suspend-..." line
if (!$RetiringApp.IsExpired) { Suspend-CMApplication -Name "Retired-$app" # $appWMI = gwmi -Namespace Root\SMS\Site_$(Get-PSDrive -PSProvider CMSite) -class SMS_ApplicationLatest -Filter "LocalizedDisplayName = 'Retired-$app'" # $appWMI.SetIsExpired($true) # | Out-Null Update-Log "Set status to Retired.`n" } else { Update-Log "Status was already set to Retired.`n" }
Sorry, something went wrong.
No branches or pull requests
Hi, if the application is retired, then the script sets to active to deal with it, it doesn't retire it at the end.
The text was updated successfully, but these errors were encountered: