01/17
20:04
日记

Integrity Client静默安装

用户手册需要登录下载,摘抄一些备忘。

1. Configuring the Integrity Client Properties File

  1. Copy %serverinstalldir%/config/install/mksclient.properties from the Integrity server to the client installation target workstation
  2. Edit the workstation copy of the mksclient.properties file

2.Running the Silent Install

Install the Integrity client by doing one of the following:

  • on Windows:
mksclient -f mksclient.properties
  • on Unix variants:
./mksclient -f path/mksclient.properties

Where

  • -l locale specifies the locale, where locale: ja for Japanese, or en for English
  • -f path/mksclient.properties specifies the directory containing the mksclient.properties file, where path is the directory path to that file’s location
    If the mksclient.properties is in the same directoru as the mksclient.exe, the -f flag and arguments may be omitted

附件

Configuring the Integrity Client Properties File

Integrity Client静默安装

11/8
19:49
日记

Kisters_3DViewStation 静默安装

Kisters_3DViewStation是一款优秀的3d图纸查看软件。

Kisters_3DViewStation是用inno setup打包的,支持/silent、/verysilent等参数。测试发现,通过在安装包后添加/silent参数,可以完成安装,且不报错,但是第一次打开会提示没有许可。这时只要把许可证文件放到C:\Users\Public\Documents\Kisters\目录下即可。

mkdir C:\Users\Public\Documents\Kisters\
copy /V /Y \\shcm01\SCCM_Software\Kisters_3DViewStation\3DVS.lic C:\Users\Public\Documents\Kisters\
\\shcm01\SCCM_Software\Kisters_3DViewStation\Setup_3DViewStation_2017.0.102.20831.exe /silent /norestart /nocancel /log=\\shfs\Public_Folder\IT\Tool\Logs\Kisters\3dview-%computername%.log

更新
发现安装包code部分有这一句[2670] ASSIGN Base[5], ['{param:LicensePath}'],只需添加/LicensePath这个参数即可。

Setup_3DViewStation_2017.0.102.20831.exe /silent /norestart /nocancel /log=\\shfs\Public_Folder\IT\Tool\Logs\Kisters\3dview-%computername%.log /LicensePath="\\shcm01\SCCM_Software\Kisters_3DViewStation\3DVS.lic"

Kisters_3DViewStation 静默安装

09/6
21:52
日记

批量设置HP BIOS选项

公司的电脑由于安全原因,需要锁定BIOS的一些设置。但是如果每台电脑都输入N遍密码,重启N多遍的话,不仅浪费时间,还很容易出现问题。公司的电脑绝大部分是HP品牌,而HP公司很贴心的提供了一个命令行工具,可以在操作系统中更改BIOS设置,大赞。下面,我来分享一下我在安装系统过程中自动完成BIOS配置的操作过程。

机器:HP Z840 工作站 BIOS版本 02.34
操作系统:Windows 10
工具:HP BIOS Configuration Utility (BCU)

  1. 在一台电脑上完成所有BIOS选项的设置,然后登陆操作系统
  2. 在下载的工具的文件夹打开命令提示符,输入BIOSConfigUtility64 /get:settings.txt这样当前的机器的BIOS选项就导出到当前目录下的settings文件中。
  3. 第一行和最后一行不要动,删除无需更改的选项。
    注意,Product Name, System ID, Universal Unique Identifier, System Configuration ID, Processor Type, SKU Number, Warranty Start Date, Processor Speed, Memory Size, ROM Date, ROM BIOS Version, Serial Number, Video BIOS Revision等每个主机都不一样的选项请删除。
  4. 双击HPQPswd64.exe,输入密码,保存为pw.bin
    hppswk
    5.将BIOSConfigUtility64 /set:settings.txt /nspwdfile:pw.bin保存到HPM60BoisSettings.cmd文件中。
    6.在MDT中,新建一个application,把BIOSConfigUtility64,settings.txt ,HPM60BoisSettings.cmd,pw.bin放进去,comandline为 cmd /c HPM60BoisSettings.cmd
    mdtconfig
    然后任务序列新添一项install application,选中这个新建的application。

参考文档

BIOS_Configuration_Utility_User_Guide.pdf

批量设置HP BIOS选项

08/23
18:21
日记

Catia 部署脚本

分享一个Catia的部署脚本

@echo off&setlocal enabledelayedexpansion
:: Get Administrator Rights
set "_FilePath=%~f0"
fltmc >nul 2>&1 || (
    echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\GetAdmin.vbs"
    echo UAC.ShellExecute "!_FilePath!", "", "", "runas", 1 >> "%temp%\GetAdmin.vbs"
    "%temp%\GetAdmin.vbs"
    del /f /q "%temp%\GetAdmin.vbs" >nul 2>&1
    exit
)
::当前登录用户的Profile文件夹位置,如果没人登录,配置文件放到default用户下
set logonuser0=Default
for /f "skip=1 tokens=1" %%i in ('quser') do set logonuser0=%%i
set logonUserAppData=C:\Users\%logonuser0:>=%\AppData\Roaming\DassaultSystemes
::安装Catia
"\\SHFS\Public_Folder\IT\Software\Catia\CATIA_P3_V5R21_Win64\WIN64\StartB.exe" -u C:\CatiaV5\R21 -ident R21 -newdir -D C:\CATEnv -addUserPrivilegesForOrbix -v -all -noreboot
msiexec /q /i %fileserver%Software\Catia\CATIA_P3_V5R21_Win64\VBA\vba6.msi
::配置CATReferenceSettingPath和CATUserSettingPath两个环境变量
xcopy \\shfs\Public_Folder\IT\Software\Catia\ReferenceSettings C:\ProgramData\DassaultSystemes\ReferenceSettings /I /S /C /Y
"C:\CatiaV5\R21\win_b64\code\bin\chcatenv.exe" -e CATIA_P3.V5R21.B21 -a global -var CATReferenceSettingPath=C:\ProgramData\DassaultSystemes\ReferenceSettings
"C:\CatiaV5\R21\win_b64\code\bin\chcatenv.exe" -e CATIA_P3.V5R21.B21 -a global -var DSY_DISABLE_WININET=TRUE -new
xcopy \\shfs\Public_Folder\IT\Software\Catia\CATSettings %logonUserAppData%\CATSettings /I /S /C /Y
"C:\CatiaV5\R21\win_b64\code\bin\chcatenv.exe" -e CATIA_P3.V5R21.B21 -a global -var CATUserSettingPath=CSIDL_APPDATA\DassaultSystemes\CATSettings
::写入许可证服务器信息
if not exist "C:\ProgramData\DassaultSystemes\Licenses\DSLicSrv.txt" mkdir "C:\ProgramData\DassaultSystemes\Licenses\"
echo lic.hida.in:4085 >"C:\ProgramData\DassaultSystemes\Licenses\DSLicSrv.txt"

Catia 部署脚本