Dongbo Wang

Results 460 comments of Dongbo Wang

> Is there an alternative approach you can think of that would work for this? Is there a module that could be loaded at runtime that might enable this? No...

`Get-Credential` command was changed in PowerShell Core to not use the pop-up windows, but instead provides the console experience: ![image](https://user-images.githubusercontent.com/127450/165983681-fb6e375f-68ab-4556-b376-3ec535127cf4.png) In .NET Interactive Jupyter Notebook, it works as the follows:...

@pr1malc0de Can you follow the instruction in the error message and see what you get when running `Import-Module RemoteDesktop`?

@pr1malc0de Which `RemoteDesktop` module were you using? [The one on PowerShell gallery](https://www.powershellgallery.com/packages/RemoteDesktop/0.0.0.2) is broken and it doesn't look like what you were using.

@pr1malc0de @Szeraax Thank you both for the clarification! It turns out `import-Module RemoteDesktop -UseWindowsPowerShell` just silently failed because PowerShell remoting depends on `BinaryFormatter` even though it's obsolete, and due to...

I know that, but `BinaryFormatter` is used in PowerShell remoting and for back compatibility reason (remoting to Windows PowerShell 5.1), we had to keep it and [suppress the warning](https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteSessionCapability.cs#L110-L112) in...

Here is the response from our remoting/security SME: > Yes, we are aware of the issues using BinaryFormatter, and determined that there is no security hole since we control the...

The exception indicates that the `cancellationtoken` passed to `PSConsoleReadLine.ReadLine` was disposed prematurely somehow.

It's not a supported scenario. `PSConsoleReadLine.ReadLine` is a static method, but the operations are all around a singleton of `PSConsoleReadLine`. Reentry of the PSReadLine means corrupting the text buffer of...

+1 to @sebastienros' comment. > Afaik there is no benefit of strong naming .NET Core assemblies since the signature isn't validated or used for assembly binding @patriksvensson The `Spectre.Console` package...