查看当前 PowerShell 会话中 Get-DAPolicyChange 的语法。
Get-Command Get-DAPolicyChange -Syntax获取相关项目或数据。官方英文概述:Gets a list of IP addresses that need to be added and deleted to an IPsec rule based on the differences detected between the IP addresses for the existing rule and the IP addresses derived from the input parameters, and creates a Windows PowerShell® script (.ps1) that updates the IPsec rule in the appropriate policy stores.
Get-Command Get-DAPolicyChange -Syntax此命令会显示当前已安装模块提供的参数集;Windows PowerShell 5.1 与 PowerShell 7 可能不同,请同时对照链接的 Microsoft 文档。
查看当前 PowerShell 会话中 Get-DAPolicyChange 的语法。
Get-Command Get-DAPolicyChange -Syntax查看当前已安装模块提供的参数集和完整帮助。
Get-Help Get-DAPolicyChange -Full显示已安装帮助文件中的示例。
Get-Help Get-DAPolicyChange -Examples| 参数 / 子句 | 说明 |
|---|---|
-Verbose | 向详细信息流输出更多诊断信息。 |
-Debug | 向调试信息流输出消息。 |
-ErrorAction <action> | 控制如何处理非终止错误。 |
-ErrorVariable <name> | 将错误记录保存到变量。 |
-WarningAction <action> | 控制如何处理警告。 |
-WarningVariable <name> | 将警告消息保存到变量。 |
-InformationAction <action> | 控制如何处理信息消息。 |
-InformationVariable <name> | 将信息消息保存到变量。 |
-OutVariable <name> | 将输出保存到变量,同时继续传递。 |
-OutBuffer <count> | 设置向下游命令传递前收集的对象数量。 |
-PipelineVariable <name> | 处理管道时将当前对象保存到变量。 |
-ProgressAction <action> | 在支持此参数的版本中控制进度信息。 |
-WhatIf / -Confirm | 仅支持 ShouldProcess 的命令提供的风险控制参数。 |
执行前请核对命令和目标路径。修改文件、服务、账户、磁盘、权限或数据库的操作可能难以撤销;建议先在安全环境测试并保留备份。