Skip to content

pypsrp 库添加 WSManStackVersion #8

@mabangde

Description

@mabangde

Tabshell 利用点:在创建PowerShell Session的时候(通过New-PSSession),可以指定WSManStackVersion参数。当值小于3的时候,Commands里会添加TabExpansion函数。
在powershell 利用中可通过以下来指定:
$version = New-Object -TypeName System.Version -ArgumentList "2.0"
$mytable = $PSversionTable
$mytable["WSManStackVersion"] = $version

python pypsrp 库中没找到 WSManStackVersion 设置的地方,阅读代码也没找到修改的地方

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions