前往小程序,Get更优阅读体验!
立即前往
发布
社区首页 >专栏 >腾讯云使用powershell自动安装配置windows cloudbase-init 1.1.6做自定义镜像

腾讯云使用powershell自动安装配置windows cloudbase-init 1.1.6做自定义镜像

原创
作者头像
Windows技术交流
修改2024-12-16 14:12:58
修改2024-12-16 14:12:58
1060
举报
文章被收录于专栏:Windows技术交流

需要能访问能访问公网,因为脚本会通过公网下载安装文件

代码语言:txt
复制
Set-executionpolicy -ExecutionPolicy Unrestricted -Scope CurrentUser -Force;

(New-Object System.Net.WebClient).DownloadFile("http://windows-1251783334.cos.ap-shanghai.myqcloud.com/cloudbase-init1.1.6.ps1",  (Get-Location).Path+"/cloudbase-init1.1.6.ps1");

./cloudbase-init1.1.6.ps1

安装TAT

代码语言:txt
复制
Set-executionpolicy -ExecutionPolicy Unrestricted -Scope CurrentUser -Force;

(New-Object System.Net.WebClient).DownloadFile("http://tat-1258344699.cos-internal.accelerate.tencentcos.cn/tat_agent/tat_agent_installer.exe",  (Get-Location).Path+"/tat_agent_installer.exe");

& .\tat_agent_installer.exe

安装云监控组件

代码语言:txt
复制
Set-executionpolicy -ExecutionPolicy Unrestricted -Scope CurrentUser -Force;

(New-Object System.Net.WebClient).DownloadFile("http://update2.agent.tencentyun.com/update/windows-stargate-installer.exe",  (Get-Location).Path+"/windows-stargate-installer.exe");
& .\windows-stargate-installer.exe

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档