PendingReboot icon indicating copy to clipboard operation
PendingReboot copied to clipboard

`PendingComputerRenameDomainJoin` always `$true`

Open aetonsi opened this issue 1 year ago • 3 comments

hi, i'd like to report a small bug i have. PendingComputerRenameDomainJoin is always $true for my notebook, for some reason unknown to me. nothing is pending in reality. here's some info:

 > get-module PendingReboot

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     0.9.0.6               PendingReboot                       Test-PendingReboot
 > $PSVersionTable
Name                           Value
----                           -----
PSVersion                      7.3.6
PSEdition                      Core
GitCommitId                    7.3.6
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0


aetonsi avatar Sep 17 '23 18:09 aetonsi

You should use this module using Windows PowerShell 5.1, not PowerShell 7.x because a lot of the commands within the module are using WMI cmdlets, not the newer CIM cmdlets. The older WMI cmdlets don't work in PS7.

alayac avatar Sep 18 '23 13:09 alayac

hi, i can confirm the bug only appears in pwsh and not powershell. could you add an error message for when the function is run within pwsh? thanks

aetonsi avatar Sep 24 '23 17:09 aetonsi