当前位置:网站首页>PowerShell automated reinstallation of cloudbase init to version 1.1.2

PowerShell automated reinstallation of cloudbase init to version 1.1.2

2022-06-23 02:51:00 shawyang

Except Blackstone , Blackstone windows Don't move easily cloudbase-init

Take a look at this document , Beyond Blackstone Windows CVM There is a problem resetting the password , Basically, it can be solved through this document , The underlying commands are broken too badly , It is recommended to back up the data and reinstall the system , There's no need to be in cloudbase-init Upper tangle

If you want to reload cloudbase-init, hold http://windows-1251783334.cos.ap-shanghai.myqcloud.com/CLOUDBASE-INIT_INSTALL.PS1 Download to desktop ,

Open as administrator powershell Command line , perform

Set-ExecutionPolicy Unrestricted -force

then , Drag the desktop script to the command line and press enter , Then wait 10 About minutes , It will update automatically cloudbase-init To the latest stable version 1.1.2

The above processes can also be fully automated

utilize powershell Script automated reload cloudbase-init( The premise of this scheme is that the server can access the Internet

【2008R2-2012R2 Universal 】

If defender Such security software does not intercept , Can be determined 2008R2、2012R2 The system firewall does not intercept by default , Use this 3 You can automatically reload cloudbase-init

Set-ExecutionPolicy Unrestricted -force

certutil -urlcache -split -f http://windows-1251783334.cos.ap-shanghai.myqcloud.com/CLOUDBASE-INIT_INSTALL.PS1 c:\cloudbase-init_install.ps1

powershell -file c:\cloudbase-init_install.ps1

【2012R2-2022 Universal 】

If defender And other security software , Can be determined 2012R2 The above system firewalls will intercept by default , Use this 3 You can automatically reload cloudbase-init

Set-ExecutionPolicy Unrestricted -force

Invoke-WebRequest -uri http://windows-1251783334.cos.ap-shanghai.myqcloud.com/CLOUDBASE-INIT_INSTALL.PS1 -OutFile c:\cloudbase-init_install.ps1

powershell -file c:\cloudbase-init_install.ps1

原网站

版权声明
本文为[shawyang]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/01/202201271940313311.html