Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remote data gathering
#1
I posted before that I was having some issues with remote use of this tool but I can't find that post. I have since figured it out so I thought I would post my findings here to help anyone else. This worked for me in a peer to peer setting and a variation works fine in a domain setting.

I was having an issue getting SIW to work properly for me under PSExec. My work around involes creating a simple batch file and using PSEXEC to call the batch file.

First open notepad and enter this:
\\server\siw\SIW.exe /s:1073741824 /h:0 /n:0 /silent /log:csv=\\server\siw\Licenses-%ComputerName%.csv

Save as SIW.bat Of course you will need to have shared the SIW dir with proper priviledges.

Next run this command from your server
Psexec \\client PC -u client pc\user -p password -d -f -e -c \\Server\siw\SIW.bat

This will run the batch file on the client pc and place the output in a cvs fiel with the name Licenses-computer name
(example Licenses-shop-pc.cvs)

This file will be stored on your server for easy management.

This can alos be used as a logon script to gather data. In the example above I am only collecting License data. You can easily adjust it to fit your own requirements.

In a Domain environment things are a little different. PSexec worlked fine in the domain except that passwords are passed in clear text so I would not advise using that. A login script would do the job and should require no username or passwsord across the wire.

I found the SIW top be a great program for collecting this type of data and I tip my hat to the author. Nice Job.

I hope this helps thise looking to use this remotely. This worked for me and you may need to tweak it to work in your setup.
Reply
#2
I am not having much success with this.

my bat file works fine when ran locally... when I do Psexec \\client PC -u client pc\user -p password -d -f -e -c \\Server\siw\SIW.bat

it doesn't seem to work. If I use the computer name of the computer I am on...it does work...just doesn't work for remote PC's... any suggestions?
Reply
#3
(09-24-2015, 01:07 PM)jasonms2002 Wrote: I am not having much success with this.

my bat file works fine when ran locally... when I do Psexec \\client PC -u client pc\user -p password -d -f -e -c \\Server\siw\SIW.bat

it doesn't seem to work.  If I use the computer name of the computer I am on...it does work...just doesn't work for remote PC's... any suggestions?

psexec is a Sysinternals (now Microsoft) product. Please check https://technet.microsoft.com/en-us/sysi...97553.aspx
Reply




Users browsing this thread: 1 Guest(s)