Max Kozlov

Results 183 comments of Max Kozlov

you may try to use `-PathTransformation` parameter

the single command you use in your example - `Set-SCPItem` :)

@darkoperator, Due to the presence of breaking changes in v4.0 I propose to remove all the aliases to the parameters and cmdlet names that fixes typos

I plan to do this in the near future, I think it’s worth making it by default, leaving the old format only for compatibility

Is it necessary to force the host to be updated to the new format in `hosts.json` ?

@darkoperator, What do you think about whether it is necessary to update the keys to the new format? I prepared commits for PR

yes, at the moment I’m just testing first for a match with sha256, then md5. and then the result can be saved ([now commented out](https://github.com/MVKozlov/Posh-SSH/blob/a628b7ef20ac1b3be43b61a170d9e3d6e222bde3/Source/PoshSSH/PoshSSH/NewSessionBase.cs#L316)). For new hosts, a new...

Have you tested the functionality of this code? The code is written this way because `WriteVerbose()` can't be called from an event handler ``` System.Management.Automation.PSInvalidOperationException: 'The WriteObject and WriteError methods...

> By the way, how is not a Posh-SSH error? Because of https://github.com/PowerShell/PowerShell/issues/18776 :) You try to bypass the limitation in the operation of variables in powershell. This has nothing...

I looked at the `WriteVerbose()` implementation in Powershell itself, almost the same method is used there. [WriteVerbose](https://github.com/PowerShell/PowerShell/blob/9d0bac5addf3e9791331c96a3d96191b31d5c662/src/System.Management.Automation/engine/MshCommandRuntime.cs#L574) [VerbosePreference](https://github.com/PowerShell/PowerShell/blob/9d0bac5addf3e9791331c96a3d96191b31d5c662/src/System.Management.Automation/engine/MshCommandRuntime.cs#L3093) [GetEnumPreference](https://github.com/PowerShell/PowerShell/blob/9d0bac5addf3e9791331c96a3d96191b31d5c662/src/System.Management.Automation/engine/ExecutionContext.cs#L522) So if we can't solve it via `WriteVerbose()`, this option might...