windows 2008 r2 x64离线升级PowerShell3.0及打开WinRM模块

  

windows 2008 r2 x64,离线升级PowerShell3.0及打开WinRM模块

蝙蝠脚本

echo    set  apath=% ~ dp0   ::,如果运行提示找不到文件apath 写完整路径   echo “install  net4.0”   % apath % \ dotNetFx45_Full_x86_x64.exe /quiet /norestart   start /w  pkgmgr /单位:PowerShell   echo  y | powershell  set-executionpolicy  remotesigned   echo “PowerShell  3.0”   % apath % \ Windows6.1-KB2506143-x64.msu , -ArgumentList /quiet    REG  add “微软HKEY_LOCAL_MACHINE \ SOFTWARE \ \ Windows \ CurrentVersion \”,,/v “ansible”,/t  REG_SZ /d  " \ " % apath % Powerl.bat \ ",/f   echo  PowerShell  % apath % \ ConfigureRemotingForAnsible.ps1> % apath % Powerl.bat   echo  REG  DELETE “微软HKEY_LOCAL_MACHINE \ SOFTWARE \ \ Windows \ CurrentVersion \”,/v “ansible”,/f 在祝辞% apath % Powerl.bat    暂停

离线升级包下载地址:

链接:http://pan.baidu.com/s/1dE2h9aL密码:jd7j


windows 2008 r2 x64离线升级PowerShell3.0及打开WinRM模块