PowerShell Show-Command 图形化的方式展示cmdlet的所有参数#yyds干货盘点#

网友投稿 866 2022-09-17

PowerShell Show-Command 图形化的方式展示cmdlet的所有参数#yyds干货盘点#

PowerShell Show-Command 图形化的方式展示cmdlet的所有参数#yyds干货盘点#

环境配置说明

Windows 21H1 PSVersion 5.1.19041.1320

示例

使用Show-Command,唤出参数窗口

PS C:\Users\admin> Show-Command Set-Acl

有三个可选的表单,分别对应Set-Acl的三个参数集。

使用get-help了解参数信息

PS C:\Users\admin> get-help Set-Acl 名称 Set-Acl 摘要 Changes the security descriptor of a specified item, such as a file or a registry key. 语法 Set-Acl [-Path] [-AclObject] [[-CentralAccessPolicy] ] [-ClearCentralAccessPolicy] [-Exclude ] [-Filter ] [-Include ] [-Passthru] [-UseTransaction] [-Confirm] [-WhatIf] [] Set-Acl [-AclObject] [[-CentralAccessPolicy] ] [-ClearCentralAccessPolicy] [-Exclude ] [-Filter ] [-Include ] -LiteralPath [-Passthru] [-UseTransaction] [-Confirm] [-WhatIf] [] Set-Acl [-InputObject] [-AclObject] [-Exclude ] [-Filter ] [-Include ] [-Passthru] [-UseTransaction] [-Confirm] [-WhatIf] []

基于对话框中填写的内容,自动生成指令

PS C:\Users\admin> Set-Acl -AclObject 1 -Path 2 -Passthru Set-Acl : AclObject 所在位置 行:1 字符: 1 + Set-Acl -AclObject 1 -Path 2 -Passthru + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (1:Int32) [Set-Acl],ArgumentException + FullyQualifiedErrorId : SetAcl_AclObject,Microsoft.PowerShell.Commands.SetAclCommand

学习资料

PowerShell 版本 + 工具 PowerShell/PowerShell 51CTO社区

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:PowerShell Set-Location 切换当前所在的文件夹#yyds干货盘点#
下一篇:Python GUI篇——关不掉的小窗口(python是什么意思)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~