我正在尝试在许多计算机上将扩展名swf设置为Internet Explorer。当我运行这个脚本时,它说.swf = InternetExplorer,但它永远不会改变gui,它不起作用。为什么这不会失败,我怎样才能让它发挥作用?我也在一个域名上我不知道为什么需要启用PSRemoting使其工作?
Enable-PSRemoting -Force
$comps="it-tech";
Invoke-Command -ComputerName $comps { cmd /c assoc .swf=InternetExplorer.Application }
它返回完成...但实际上并没有改变任何东西......