我正在尝试验证一个PowerShell脚本路径参数。我想检查它是否存在,它是否是一个文件夹。下面是我的参数设置/验证脚本: [Parameter(Mandatory=$true)] if( -Not ($_ | Test-PathPath parameter must be a folder.\script.ps1 -Path "C:\Test <
我正在尝试将存在于一台PC上的zip文件解压到另一台具有共享文件夹的PC。我正在运行这个:但是得到这个错误,你有什么想法吗New-Item : The path is not of a legal form.At C:\windows\system32\windowspowershell\v1.0\Modul