I want to install the SCCM agent on a list of computers listed in the text file c:\temp\list.txt from my computer using the command below.
PSEXEC @”:C\temp\list.txt” –d –h –s –c “C:\temp\sccmclient.bat”
The sccmclient.bat should do the following
Run this command
The ccmsetup.exe is in a shared folder on \\fileserver1\share1\ccmsetup.exe
I want to run this command with elevated privileges so want to include username and password in the above PSEXEC command.
I tried it with quotes, without quotes but looks simple but this thing does not work.
Appreciate some help