Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Hardware/Software Inventory

by Anonymous Monk
on Feb 14, 2005 at 15:55 UTC ( [id://430827]=note: print w/replies, xml ) Need Help??

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

Replies are listed 'Best First'.
Re^2: Hardware/Software Inventory
by shonorio (Hermit) on Oct 05, 2005 at 16:45 UTC

    To access remote computer just change the '.' in line 9 to computer name without slashs ('\'), like my $Machine = "wks", I've test with success on my enviroment. But remeber that WMI must be installed on remote machine. WMI is installed by default just for Win2K or later.

    Solli Moreira Honorio
    Sao Paulo - Brazil
      Hm this doesn't work for me, am I doing something wrong? I thought it would be great as one of my co-workers needs to inventory software company wide for license compliance I am getting a syntax error in line 48 near sub GetHardwareInfo" followed by a cannot use global @_ in "my" at c:\perl\bin\ line 49 near =@" sytax error at c:\perl\bin\ line 109 near } execution of c:\perl\bin\ aborted due to compiliation errors.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://430827]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2024-06-14 15:34 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.