If the principle of universal simple and bezymennoye tool
C:\Windows\System32\runas.exe /profile /user:imacomp\imagse /savecred "PoA"
paramsfile [Parameters File] [Delimiters] [Quote Character] [NirCmd Command]
This powerfull command allows you to execute NirCmd Command multiple times by loading one or more parameters from a text file. The text file can be comma-delimited, tab-delimited, semicolon-delimited, or delimited by any char that you specify in [Delimiters] parameter.
Here's an example... Let's say that you have the following text file, containing user names and passwords, delimited by comma:
The following NirCmd commands sequence will create 4 users with the specified user-names and passwords (by using 'net user' command provided by Windows 2000/XP operating system)
nircmd.exe paramsfile "c:\temp\users.txt" "," "" execmd net user ~$fparam.1$ ~$fparam.2$ /add
The ~$fparam.The$ 1 specifies the first entry in each line is the user name. The ~$fparam.2$ specifies the second entry in each line is the password.
paramsfile "c:\temp\folders.txt" "" "" execmd md ~$fparam.1$
paramsfile "c:\temp\shortcuts.txt" "," "~q" shortcut ~$fparam.1$ "~$folder.desktop$" ~$fparam.2$
Find more questions by tags Windows