千家信息网

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

发表于:2024-10-25 作者:千家信息网编辑
千家信息网最后更新 2024年10月25日,windows 2008 r2 x64 离线升级PowerShell3.0 及打开WinRM模块bat脚本echo offset apath=%~dp0:: 如果运行提示找不到文件apath 写完整路
千家信息网最后更新 2024年10月25日windows 2008 r2 x64 离线升级PowerShell3.0 及打开WinRM模块

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

bat脚本

echo offset apath=%~dp0:: 如果运行提示找不到文件apath 写完整路径echo "install net4.0"%apath%\dotNetFx45_Full_x86_x64.exe  /quiet /norestartstart /w pkgmgr /iu:PowerShellecho y|powershell set-executionpolicy remotesignedecho "PowerShell 3.0"%apath%\Windows6.1-KB2506143-x64.msu  -ArgumentList /quiet REG add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"  /v "ansible" /t REG_SZ /d "\"%apath%Powerl.bat\"" /fecho PowerShell %apath%\ConfigureRemotingForAnsible.ps1>%apath%Powerl.batecho REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "ansible" /f >>%apath%Powerl.bat pause

离线升级包下载地址:

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


0