为什么我用这个命令可以成功添加IP地址
New-NetIPAddress -IPAddress 192.168.0.168 -PrefixLength 24 -InterfaceIndex 34
但是相同的命令对于持久地址失败
New-NetIPAddress -IPAddress 192.168.0.168 -PrefixLength 24 -InterfaceIndex 34 -PolicyStore PersistentStore
New-NetIPAddress : Invalid parameter PolicyStore PersistentStore
At line:1 char:1
+ New-NetIPAddress -IPAddress 192.168.0.168 -PrefixLength 24 -Interface ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (MSFT_NetIPAddress:ROOT/StandardCimv2/MSFT_NetIPAddress) [New-NetIPAddress], CimException
+ FullyQualifiedErrorId : Windows System Error 87,New-NetIPAddress
以管理员身份在 PowerShell 5.1 中运行。