1.Create a file, with the content.

username=WindowsUsername
password=WindowsPassword
domain=DomainNameOrWorkGroup

2. For security, assign the permission 400.

Example

mkdir /etc/wmic
vi /etc/wmic/Win20008.txt
chmod 400 /etc/wmic/Windows2008R2srv.txt
cat /etc/wmic/Windows2008R2srv.txt
username=zabbixmonitor
password=SuperPassword
domain=WORKGROUP

Usage:

wmic -A /etc/wmic/Windows2008R2srv.txt //192.168.123.58 "select * from Win32_ComputerSystem"