You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command in question is the one defined in whkd:
$wshell = New-Object -ComObject wscript.shell
Here's the kicker, this is only happens when I call whkd from PowerShell.
If I manually execute the command $wshell = New-Object -ComObject wscript.shell in PowerShell, that works fine.
So I think the issue is that it is trying to execute the string "$wshell = New-Object -ComObject wscript.shell" as a command, rather than as a PowerShell script object?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The command in question is the one defined in
whkd
:Here's the kicker, this is only happens when I call
whkd
from PowerShell.If I manually execute the command
$wshell = New-Object -ComObject wscript.shell
in PowerShell, that works fine.So I think the issue is that it is trying to execute the string
"$wshell = New-Object -ComObject wscript.shell"
as a command, rather than as a PowerShell script object?Anyone else run into similar issues?
Beta Was this translation helpful? Give feedback.
All reactions