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/