-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Description
Expected Behavior
The module should be removed after uninstall.
Current Behavior
Uninstall Icinga for Windows components. Select an entry to continue:
[0] Uninstall Icinga Agent
[1] Uninstall Icinga Agent including ProgramData
[2] Uninstall Icinga for Windows Service
[3] Uninstall Icinga for Windows Service including binary
[4] Uninstall "hyperv"
[5] Uninstall all components
[6] Uninstall Icinga for Windows
[x] Exit [c] Continue [h] Help [l] Commands [m] Main [p] Previous
[Error]: You have to specify the SID of the user to set the security profile to
[Error]: Failed to remove items from path "C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-hyperv". Recurse is "True", Force is "True": "System.Management.Automation.PSInvalidOperationException: Cannot remove the item at 'C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-hyperv' because it is in use."
[Error]: Unable to uninstall Icinga for Windows component "icinga-powershell-hyperv" from "C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-hyperv"
[Notice]: Action "Uninstall all components" has been executed
Steps to Reproduce (for bugs)
icinga -Manage
****************************************************
** Icinga for Windows Management Console **
** Copyright (c) 2022 Icinga GmbH | MIT **
** User environment WIN-8BS6TKQ17KE\Administrator **
** Icinga PowerShell Framework v1.9.1 **
****************************************************
What do you want to do?
[0] Base Installation
[1] Component Manager
[2] Settings
[3] Overview
[4] Icinga Shell
[x] Exit [c] Continue [h] Help [l] Commands [m] Main
Input (Default 0 and c): 1
****************************************************
** Icinga for Windows Management Console **
** Copyright (c) 2022 Icinga GmbH | MIT **
** User environment WIN-8BS6TKQ17KE\Administrator **
** Icinga PowerShell Framework v1.9.1 **
****************************************************
Choose what you want to do with components
[0] Install
[1] Install from Snapshot
[2] Update
[3] Update from Snapshot
[4] Remove
[x] Exit [c] Continue [h] Help [l] Commands [m] Main [p] Previous
Input: 4
****************************************************
** Icinga for Windows Management Console **
** Copyright (c) 2022 Icinga GmbH | MIT **
** User environment WIN-8BS6TKQ17KE\Administrator **
** Icinga PowerShell Framework v1.9.1 **
****************************************************
Uninstall Icinga for Windows components. Select an entry to continue:
[0] Uninstall Icinga Agent
[1] Uninstall Icinga Agent including ProgramData
[2] Uninstall Icinga for Windows Service
[3] Uninstall Icinga for Windows Service including binary
[4] Uninstall "hyperv"
[5] Uninstall all components
[6] Uninstall Icinga for Windows
[x] Exit [c] Continue [h] Help [l] Commands [m] Main [p] Previous
Input: 5
****************************************************
** Icinga for Windows Management Console **
** Copyright (c) 2022 Icinga GmbH | MIT **
** User environment WIN-8BS6TKQ17KE\Administrator **
** Icinga PowerShell Framework v1.9.1 **
****************************************************
Are you sure you want to perform this action: "Uninstall all components"?
[0] No
[1] Yes
[x] Exit [c] Continue [h] Help [l] Commands [m] Main [p] Previous
Input (Default 0 and c): 1
Uninstall Icinga for Windows components. Select an entry to continue:
[0] Uninstall Icinga Agent
[1] Uninstall Icinga Agent including ProgramData
[2] Uninstall Icinga for Windows Service
[3] Uninstall Icinga for Windows Service including binary
[4] Uninstall "hyperv"
[5] Uninstall all components
[6] Uninstall Icinga for Windows
[x] Exit [c] Continue [h] Help [l] Commands [m] Main [p] Previous
[Error]: You have to specify the SID of the user to set the security profile to
[Error]: Failed to remove items from path "C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-hyperv". Recurse is "True", Force is "True": "System.Management.Automation.PSInvalidOperationException: Cannot remove the item at 'C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-hyperv' because it is in use."
[Error]: Unable to uninstall Icinga for Windows component "icinga-powershell-hyperv" from "C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-hyperv"
[Notice]: Action "Uninstall all components" has been executed
Context
I just tried to remove the module.
Your Environment
- PowerShell Version used (
$PSVersionTable.PSVersion):
| Major | Minor | Build | Revision |
|---|---|---|---|
| 5 | 1 | 17763 | 2867 |
- Operating System and version (
Get-IcingaWindowsInformation Win32_OperatingSystem | Select-Object Version, BuildNumber, Caption):
| Version | BuildNumber | Caption |
|---|---|---|
| 10.0.17763 | 17763 |
Metadata
Metadata
Assignees
Labels
No labels