in reply to Hardware/Software Inventory

Hi, I was just wondering how you can make this target a machine on a network. I have tried changing the '.' in line 9 to the computer name of a machine on my network and it doesnt seem to work.
Is this suppose to work for computers on a network or just locally? Or is the permissions on the target pc preventing access?
If it is the permissions, is it possible and how could I modify this script to allow for username & password to be entered?

Many thanks, Jace