PendingReboot
PendingReboot copied to clipboard
`PendingComputerRenameDomainJoin` always `$true`
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
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.
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