我需要有关脚本的帮助,该脚本将提取登录 Windows 计算机的用户的主机名或用户名,并将其与主机名或用户名表进行比较并添加正确的变量。前任。
computer1=Phone1
computer2=phone2
computer3=phone3
using this table i have to change a variable
msiexec /i programtoinstall /qb FREEFORMDEVICENAME="using the host name or username get the right variable"
所以..如果主机名是computer1,那么最终的安装字符串应该是:
msiexec /i programtoinstall /qb FREEFORMDEVICENAME="phone1"
谢谢!