walmart new computer setup

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了walmart new computer setup相关的知识,希望对你有一定的参考价值。

@echo off

rem -------------------------------------------------------------------------

rem Need Admin Access first Admin Group:Global Procurement-Computer Services

rem -------------------------------------------------------------------------

if exist "C:\temp\SHClinetInstall\InstallApplication.vbs" (goto here) else (goto miss)

:here

echo -------------------

echo Start Script......

echo -------------------

echo Script Start at %DATE% %time% >> C:\temp\SHClinetInstall.log

rem -------------------------------------------------------------------------

rem Description

rem -------------------------------------------------------------------------

rem Script will finish computer installing automatically afterward

rem Script Used for walmart China SH Sourcing Office

rem -------------------------------------------------------------------------

rem Change log

rem -------------------------------------------------------------------------

rem 2016-11-8 Eric Fu Initialize Script for Walmart SH Computer Clinets

rem 2016-11-14 Eric Fu Enable Romte assistance for Walmart SH Computers

rem -------------------------------------------------------------------------

rem Variable declaration

rem -------------------------------------------------------------------------

set DC=S09060NTS011CN

set TZ="China Standard Time"

rem -------------------------------------------------------------------------

rem Optimize Clinet DC Location

rem -------------------------------------------------------------------------

for /f %%i in (‘hostname‘) do set hostname=%%i

nltest /Server:%hostname% /SC_RESET:WMSC\%DC% >> C:\temp\SHClinetInstall.log

rem -------------------------------------------------------------------------

rem Change TimeZone to UTC+08:00

rem -------------------------------------------------------------------------

TZUTIL /s %TZ%

if %ERRORLEVEL% EQU 0 (echo TimeZone Was Changed Successfully at %DATE% %time% >> C:\temp\SHClinetInstall.log) else ( echo Set TimeZone Error at %DATE% %time% >> C:\temp\SHClinetInstall.log)

rem -------------------------------------------------------------------------

rem User Login Script

rem -------------------------------------------------------------------------

echo f | xcopy "C:\temp\SHClinetInstall\wmSheildVSTOedit.vbs" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\wmSheildVSTOedit.vbs" /Y >> C:\temp\SHClinetInstall.log

rem -------------------------------------------------------------------------

rem Start Application Installing

rem -------------------------------------------------------------------------

for /f "delims=" %%a in (‘cscript -nologo C:\temp\SHClinetInstall\InstallApplication.vbs‘) do set str=%%a

echo Machine is %str%  >> C:\temp\SHClinetInstall.log

echo Machine is %str%

if %str% EQU laptop (goto laptopinstall) else (if %str% EQU desktop (goto desktopinstall) else (goto end))

:miss

echo -------------------

echo Copy service failed

echo Pls Restart Script

echo -------------------

echo Copying Failed at %DATE% %time% >> C:\temp\SHClinetInstall.log

pause

goto end

:laptopinstall

echo start laptop installing >> C:\temp\SHClinetInstall.log

echo Start Laptop Installing...

xcopy "C:\temp\SHClinetInstall\Package\gpic.lnk" "C:\Users\Public\Desktop" /y /q

echo Copy File gpic.lnk at %DATE% %time% >> C:\temp\SHClinetInstall.log

xcopy "C:\temp\SHClinetInstall\Package\Retail Link.url" "C:\Users\Public\Desktop" /y /q

echo Copy File Retail Link.url at %DATE% %time% >> C:\temp\SHClinetInstall.log

xcopy "C:\temp\SHClinetInstall\Package\rlink.ico" "C:\windows" /y /q

echo Copy File rlink.ico at %DATE% %time% >> C:\temp\SHClinetInstall.log

xcopy "C:\temp\SHClinetInstall\Package\GS ISD Portal.url" "C:\Users\Public\Desktop" /y /q

echo Copy File GS ISD Portal.url at %DATE% %time% >> C:\temp\SHClinetInstall.log

xcopy "C:\temp\SHClinetInstall\Package\One_Team.ico" "C:\windows" /y /q

echo Copy File One_Team.ico at %DATE% %time% >> C:\temp\SHClinetInstall.log

xcopy "C:\temp\SHClinetInstall\Package\CUSTOM" "c:\Program Files (x86)\Internet Explorer" /s /y /q

echo Copy File IE CUSTOM at %DATE% %time% >> C:\temp\SHClinetInstall.log

start C:\temp\SHClinetInstall\Package\MPA_Install.EXE

if errorlevel 0 (echo MPA install successfully >> C:\temp\SHClinetInstall.log) else (echo MPA install failed >> C:\temp\SHClinetInstall.log)

start c:\temp\SHClinetInstall\Package\CiscoIPCommunicatorSetup.msi /qb+! /norestart TFTP1=161.163.60.11 TFTP2=161.163.60.12

if errorlevel 0 (echo CIPC install successfully >> C:\temp\SHClinetInstall.log) else (echo CIPC install failed >> C:\temp\SHClinetInstall.log)

choice /t 15 /d y /n >nul

reg import C:\temp\SHClinetInstall\EnableRA.reg

gpupdate /force

echo -------------------

echo **Script Complete**

echo -------------------

pause

goto end

:desktopinstall

echo start desktop installing >> C:\temp\SHClinetInstall.log

echo Start Desktop Installing...

xcopy "C:\temp\SHClinetInstall\Package\gpic.lnk" "C:\Users\Public\Desktop" /y /q

echo Copy File gpic.lnk at %DATE% %time% >> C:\temp\SHClinetInstall.log

xcopy "C:\temp\SHClinetInstall\Package\Retail Link.url" "C:\Users\Public\Desktop" /y /q

echo Copy File Retail Link.url at %DATE% %time% >> C:\temp\SHClinetInstall.log

xcopy "C:\temp\SHClinetInstall\Package\rlink.ico" "C:\windows" /y /q

echo Copy File rlink.ico at %DATE% %time% >> C:\temp\SHClinetInstall.log

xcopy "C:\temp\SHClinetInstall\Package\GS ISD Portal.url" "C:\Users\Public\Desktop" /y /q

echo Copy File GS ISD Portal.url at %DATE% %time% >> C:\temp\SHClinetInstall.log

xcopy "C:\temp\SHClinetInstall\Package\One_Team.ico" "C:\windows" /y /q

echo Copy File One_Team.ico at %DATE% %time% >> C:\temp\SHClinetInstall.log

xcopy "C:\temp\SHClinetInstall\Package\CUSTOM" "c:\Program Files (x86)\Internet Explorer" /s /y /q

echo Copy File IE CUSTOM at %DATE% %time% >> C:\temp\SHClinetInstall.log

start C:\temp\SHClinetInstall\Package\MPA_Install.EXE

if errorlevel 0 (echo MPA install successfully >> C:\temp\SHClinetInstall.log) else (echo MPA install failed >> C:\temp\SHClinetInstall.log)

start c:\temp\SHClinetInstall\Package\CiscoIPCommunicatorSetup.msi /qb+! /norestart TFTP1=161.163.60.11 TFTP2=161.163.60.12

if errorlevel 0 (echo CIPC install successfully >> C:\temp\SHClinetInstall.log) else (echo CIPC install failed >> C:\temp\SHClinetInstall.log)

choice /t 15 /d y /n >nul

reg import C:\temp\SHClinetInstall\EnableRA.reg

gpupdate /force

echo -------------------

echo **Script Complete**

echo -------------------

pause

goto end

:end


本文出自 “Erick WAY” 博客,谢绝转载!

以上是关于walmart new computer setup的主要内容,如果未能解决你的问题,请参考以下文章

模拟WALMART网络架构-双栈冗余

阅读学习笔记:Walmart联合Microsoft竞购TikTok;Porsche推出新电动车型

如何在 Xcode 中将 Walmart API 与 iOS 应用程序一起使用? (快捷语言)

重新排序行值csv pandas

重新排序行值csv pandas

CodeIgniter助手函数:setu muliu value