完整word版Helpdesk桌面运维自动化配置工具.docx

上传人:b****6 文档编号:7440239 上传时间:2023-01-24 格式:DOCX 页数:52 大小:44.15KB
下载 相关 举报
完整word版Helpdesk桌面运维自动化配置工具.docx_第1页
第1页 / 共52页
完整word版Helpdesk桌面运维自动化配置工具.docx_第2页
第2页 / 共52页
完整word版Helpdesk桌面运维自动化配置工具.docx_第3页
第3页 / 共52页
完整word版Helpdesk桌面运维自动化配置工具.docx_第4页
第4页 / 共52页
完整word版Helpdesk桌面运维自动化配置工具.docx_第5页
第5页 / 共52页
点击查看更多>>
下载资源
资源描述

完整word版Helpdesk桌面运维自动化配置工具.docx

《完整word版Helpdesk桌面运维自动化配置工具.docx》由会员分享,可在线阅读,更多相关《完整word版Helpdesk桌面运维自动化配置工具.docx(52页珍藏版)》请在冰豆网上搜索。

完整word版Helpdesk桌面运维自动化配置工具.docx

完整word版Helpdesk桌面运维自动化配置工具

Helpdesk_Automatic_configuration_Tool

软件界面如下图:

以下至文档末尾是全部代码:

#cs---—-—-—-—-—-------———--—---—————----———-————---—---———-—---————-——--——---—-

AutoItVersion:

3.3。

14。

2

Author:

MiguelLouis

ScriptFunction:

Helpdesk_Automatic_configuration_Tool

关于Helpdesk_Automatic_configuration_Tool

Helpdesk_Automatic_configuration_Tool是一款Helpdesk桌面运维自动化配置的工具,由类BASIC语言的AutoItv3脚本编写,用于简化Helpdesk大量繁复的操作,通过GUI交互,实现以下功能,大幅解放Helpdesk桌面工程师的时间和精力,用于更高的技术学习和提升。

1.自动设置系统选项

2.客户端自动加域

3.自动安装软件

4.自动重启电脑并登录域账户

5.自动配置桌面环境

6.自动配置outlook及skype等

配置说明:

以下代码位于134~144行,user-defined部分请根据实际需求和场景自定义

Global$rootUserName=”administrator”;本地管理员administrator

Global$rootPassword="user—defined";本地管理员密码

Global$createUserName=”admin";创建本地用户名

Global$createUserPassword=”user—defined”;设置本地用户名密码

Global$domainName=”user—defined”;AD域名,

Global$itUserName=”user-defined";IT管理员域账户

Global$itPassword="user-defined”;IT管理员域账户密码

Global$fileSrvPath=”user—defined”;安装文件所在的共享目录地址

Global$userName;用户域账号

Global$userPassword;用户域账户密码

Global$hostName;用户计算机名

使用说明:

1。

该自动化运维工具适用于MicrosoftWindows7、Windows8、Windows10系统,结合企业级系统部署平台MDT使用更优

2.配置选项用于根据不同部门员工的桌面使用需求自动进行系统设置、安装软件等初始化操作,需在administraor账户下运行

3.用户选项用于根据不用部门员工的桌面使用需求自动进行桌面环境配置,outlook、skype等办公软件登录设置,需在用于账户下运行

4。

自动重启系统+登录账户通过授予用户本地管理员权限并修改注册表实现,在系统重启自动登录用户账户后,需运行取消自动登录和取消管理员权限来重置注册表并从administrators组移出用户账户

5。

可根据各自公司内部的实际桌面运维需求,修改该脚本代码,从而添加、修改或删除自动化功能模块

6。

所需安装的软件和工具下载放置于$fileSrvPath下,并根据存放路径和软件名称修改对应模块的代码

#ce——-————--—---—-———-——-——-———----—-————-—-———-——-——-----—--—--—-——-———--—-—-—

;ScriptStart-Addyourcodebelowhere

;;请求管理员权限

#RequireAdmin

;#include〈ButtonConstants.au3〉

;#include

;#include〈WindowsConstants.au3〉

#include

au3>

#include〈GuiButton.au3>

;切换为OnEvent模式

Opt(”GUIOnEventMode”,1)

_main()

GUISetState()

Func_main()

Global$Checkbox[53]

Global$gui_width=490

Global$gui_height=500

Global$checkbox_left=5

Global$sysconf_top=10

Global$install_top=155

Global$user_top=375

Global$checkbox_width=150

Global$checkbox_height=20

Global$select_left=5

Global$select_top=300

Global$select_width=50

Global$select_height=30

GUICreate(”自动化配置工具V1.0—ByMiguelLouis",$gui_width,$gui_height)

GUICtrlCreateGroup(”系统设置",$checkbox_left,$sysconf_top,$gui_width-10,$gui_height/3—30)

$Checkbox[1]=GUICtrlCreateCheckbox(”修改计算机名并加域”,$checkbox_left+5,$sysconf_top+20,$checkbox_width,$checkbox_height)

$Checkbox[2]=GUICtrlCreateCheckbox("修改管理员密码",$checkbox_left+160,$sysconf_top+20,$checkbox_width,$checkbox_height)

$Checkbox[3]=GUICtrlCreateCheckbox("创建本地用户admin”,$checkbox_left+320,$sysconf_top+20,$checkbox_width,$checkbox_height)

$Checkbox[4]=GUICtrlCreateCheckbox(”添加IT管理员组”,$checkbox_left+5,$sysconf_top+50,$checkbox_width,$checkbox_height)

$Checkbox[5]=GUICtrlCreateCheckbox("开启远程桌面",$checkbox_left+160,$sysconf_top+50,$checkbox_width,$checkbox_height)

$Checkbox[6]=GUICtrlCreateCheckbox(”安装AD证书”,$checkbox_left+320,$sysconf_top+50,$checkbox_width,$checkbox_height)

$Checkbox[7]=GUICtrlCreateCheckbox(”激活Office",$checkbox_left+5,$sysconf_top+80,$checkbox_width,$checkbox_height)

$Checkbox[8]=GUICtrlCreateCheckbox(”降低UAC等级”,$checkbox_left+160,$sysconf_top+80,$checkbox_width,$checkbox_height)

GUICtrlCreateGroup(”软件安装",$checkbox_left,$install_top,$gui_width—10,$gui_height/3—30)

$Checkbox[21]=GUICtrlCreateCheckbox("AdobeFlashPlayer”,$checkbox_left+5,$install_top+20,$checkbox_width,$checkbox_height)

$Checkbox[22]=GUICtrlCreateCheckbox("GoogleChrome",$checkbox_left+160,$install_top+20,$checkbox_width,$checkbox_height)

$Checkbox[23]=GUICtrlCreateCheckbox(”LinPhoneforWindows”,$checkbox_left+320,$install_top+20,$checkbox_width,$checkbox_height)

$Checkbox[24]=GUICtrlCreateCheckbox(”CiscoVPNClient",$checkbox_left+5,$install_top+50,$checkbox_width,$checkbox_height)

$Checkbox[25]=GUICtrlCreateCheckbox("MinervaPro",$checkbox_left+160,$install_top+50,$checkbox_width,$checkbox_height)

$Checkbox[26]=GUICtrlCreateCheckbox(”Avayaone—X",$checkbox_left+320,$install_top+50,$checkbox_width,$checkbox_height)

$Checkbox[27]=GUICtrlCreateCheckbox(”Teamviewer11to10",$checkbox_left+5,$install_top+80,$checkbox_width,$checkbox_height)

$Checkbox[28]=GUICtrlCreateCheckbox(”Teamviewer10",$checkbox_left+160,$install_top+80,$checkbox_width,$checkbox_height)

GUICtrlCreateGroup(”配置选项",$select_left,$select_top,$gui_width-10,$gui_height/3—100)

Global$Radio1=GUICtrlCreateRadio("销售",$select_left+5,$select_top+20,$select_width,$select_height)

Global$Radio2=GUICtrlCreateRadio(”销售(含VPN)”,$select_left+55,$select_top+20,$select_width+40,$select_height)

Global$Radio3=GUICtrlCreateRadio(”运营",$select_left+150,$select_top+20,$select_width,$select_height)

Global$Radio4=GUICtrlCreateRadio(”售后",$select_left+200,$select_top+20,$select_width,$select_height)

GUICtrlCreateGroup("用户选项”,$select_left,$user_top,$gui_width-10,$gui_height/3—100)

$Checkbox[43]=GUICtrlCreateCheckbox(”销售”,$checkbox_left+5,$user_top+20,$checkbox_width—100,$checkbox_height+10)

$Checkbox[44]=GUICtrlCreateCheckbox(”运营",$checkbox_left+65,$user_top+20,$checkbox_width-100,$checkbox_height+10)

$Checkbox[45]=GUICtrlCreateCheckbox("售后”,$checkbox_left+135,$user_top+20,$checkbox_width—100,$checkbox_height+10)

$Checkbox[41]=GUICtrlCreateCheckbox(”取消自动登录",$checkbox_left+205,$user_top+20,$checkbox_width-50,$checkbox_height+10)

$Checkbox[42]=GUICtrlCreateCheckbox(”取消管理员权限",$checkbox_left+305,$user_top+20,$checkbox_width—50,$checkbox_height+10)

$Checkbox[51]=GUICtrlCreateCheckbox(”自动重启系统+登录账户",$select_left+90,$user_top+85,$select_width+100,$select_height)

Global$Radio11=GUICtrlCreateRadio(”全选”,$select_left+260,$user_top+85,$select_width,$select_height)

Global$Radio12=GUICtrlCreateRadio(”全不选”,$select_left+320,$user_top+85,$select_width+10,$select_height)

Global$Button1=GUICtrlCreateButton("运行(&A)",$select_left,$user_top+80,$select_width+20,$select_height)

Global$Button2=GUICtrlCreateButton(”退出(&E)",$select_left+410,$user_top+80,$select_width+20,$select_height)

GUICtrlSetOnEvent($Radio1,”_chooseStation")

GUICtrlSetOnEvent($Radio2,"_chooseStationWithVPN")

GUICtrlSetOnEvent($Radio3,”_chooseCreditAduit")

GUICtrlSetOnEvent($Radio4,"_chooseCollection")

GUICtrlSetOnEvent($Radio11,"_chooseAll")

GUICtrlSetOnEvent($Radio12,”_chooseNone")

GUICtrlSetOnEvent($Checkbox[43],”_userStation”)

GUICtrlSetOnEvent($Checkbox[44],”_userCreditAduit”)

GUICtrlSetOnEvent($Checkbox[45],"_userCollection")

GUICtrlSetOnEvent($Button1,”_action")

GUICtrlSetOnEvent($Button2,”_exit”)

GUISetOnEvent($GUI_EVENT_CLOSE,”_exit”)

Global$_run[53]

$_run[1]=_run1;修改计算机名并加域

$_run[2]=_run2;修改管理员密码

$_run[3]=_run3;创建Admin用户

$_run[4]=_run4;添加IT服务台

$_run[5]=_run5;开启远程桌面

$_run[6]=_run6;安装AD证书

$_run[7]=_run7;激活Office

$_run[8]=_run8;降低UAC等级

$_run[21]=_run21;安装AdobeFlashPlayer

$_run[22]=_run22;安装GoogleChrome

$_run[23]=_run23;安装LinPhoneforWindows

$_run[24]=_run24;安装CiscoVPNClient

$_run[25]=_run25;安装MinervaPro

$_run[26]=_run26;安装Avayaone-X

$_run[27]=_run27;卸载TeamViewer11,安装TeamViewer10

$_run[28]=_run28;安装TeamViewer10

$_run[41]=_run41;取消自动登录

$_run[42]=_run42;取消管理员权限

$_run[43]=_run43;销售用户配置

$_run[44]=_run44;运营用户配置

$_run[45]=_run45;售后用户配置

$_run[51]=_run51;自动重启系统

Global$rootUserName=”administrator”;本地管理员administrator

Global$rootPassword="user-defined”;本地管理员密码

Global$createUserName="admin”;创建本地用户名

Global$createUserPassword=”user-defined";设置本地用户名密码

Global$domainName=”user-defined";AD域名,

Global$itUserName="user—defined”;IT管理员域账户

Global$itPassword=”user-defined”;IT管理员域账户密码

Global$fileSrvPath="user-defined";安装文件所在的共享目录地址

Global$userName;用户域账号

Global$userPassword;用户域账户密码

Global$hostName;用户计算机名

EndFunc

While1

sleep(1000)

WEnd

;;关闭程序

Func_exit()

Exit

EndFunc

;;销售

Func_chooseStation()

For$i=1to52

GUICtrlSetState($Checkbox[$i],4)

Next

GUICtrlSetState($Checkbox[1],1)

GUICtrlSetState($Checkbox[2],1)

GUICtrlSetState($Checkbox[3],1)

GUICtrlSetState($Checkbox[4],1)

GUICtrlSetState($Checkbox[5],1)

GUICtrlSetState($Checkbox[6],1)

GUICtrlSetState($Checkbox[7],1)

GUICtrlSetState($Checkbox[21],1)

GUICtrlSetState($Checkbox[51],1)

GUICtrlSetState($Radio11,4)

GUICtrlSetState($Radio12,4)

EndFunc

;;销售(含VPN)

Func_chooseStationWithVPN()

For$i=1to52

GUICtrlSetState($Checkbox[$i],4)

Next

GUICtrlSetState($Checkbox[1],1)

GUICtrlSetState($Checkbox[2],1)

GUICtrlSetState($Checkbox[3],1)

GUICtrlSetState($Checkbox[4],1)

GUICtrlSetState($Checkbox[5],1)

GUICtrlSetState($Checkbox[6],1)

GUICtrlSetState($Checkbox[7],1)

GUICtrlSetState($Checkbox[21],1)

GUICtrlSetState($Checkbox[24],1)

GUICtrlSetState($Checkbox[51],1)

GUICtrlSetState($Radio11,4)

GUICtrlSetState($Radio12,4)

EndFunc

;;运营

Func_chooseCreditAduit()

For$i=1to52

GUICtrlSetState($Checkbox[$i],4)

Next

GUICtrlSetState($Checkbox[1],1)

GUICtrlSetState($Checkbox[2],1)

GUICtrlSetState($Checkbox[4],1)

GUICtrlSetState($Checkbox[5],1)

GUICtrlSetState($Checkbox[6],1)

GUICtrlSetState($Checkbox[7],1)

GUICtrlSetState($Checkbox[21],1)

GUICtrlSetState($Checkbox[23],1)

GUICtrlSetState($Checkbox[51],1)

GUICtrlSetState($Radio11,4)

GUICtrlSetState($Radio12,4)

EndFunc

;;售后

Func_chooseCollection()

For$i=1to52

GUICtrlSetState($Checkbox[$i],4)

Next

GUICtrlSetState($Checkbox[1],1)

GUICtrlSetState($Checkbox[2],1)

GUICtrlSetState($Checkbox[4],1)

GUICtrlSetState($Checkbox[5],1)

GUICtrlSetState($Checkbox[6],1)

GUICtrlSetState($Checkbox[7],1)

GUICtrlSetState($C

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高等教育 > 理学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1