powershell - 替换某些内容的 PowerShell commandlet 的正确名称是什么

标签 powershell

Replace-Something 名称的唯一问题是:

WARNING: The names of some imported commands from the module 'Xxxx' include
 unapproved verbs that might make them less discoverable. To find the commands
with unapproved verbs, run the Import-Module command again with the Verbose
parameter. For a list of approved verbs, type Get-Verb.

将替换某些内容的命令行开关的正确名称是什么?

Get-Verb 好像没有什么合适的

最佳答案

“设置”怎么样。就像在 Set-Content 中一样,这意味着替换任何已经存在的内容。

Update(数据)或 Out -Force(数据),如果您正在写入文件。

关于powershell - 替换某些内容的 PowerShell commandlet 的正确名称是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9136749/

相关文章:

powershell - 通过 PowerShell 以提升的权限调用批处理文件并检索退出代码

powershell - 在 Azure datalake 中附加 csv 文件

用于 logrotate 日志的 Powershell 脚本

azure - 如何以编程方式将数据写入Azure Blob存储?

powershell - 使用Powershell或批处理调用Graph API

windows - 从命令行界面获取系统信息

powershell - 如何将哈希表传递给 PowerShell 中的函数?

powershell - 使用 PowerShell 从 FTP 下载最新文件

powershell - vagrant powershell 翻译缺失 : en. vagrant_winrm.errors.winrm_not_ready

PowerShell ForEach - 正在使用的并行文件