Asked 4 years, 6 months ago. Active 4 years, 6 months ago. Viewed 1k times. Improve this question. Ansgar Wiechers k 23 23 gold badges silver badges bronze badges. Eddy Eddy 1 2 2 bronze badges. The code you have connects to the given computer and obtains the serial number from there. Since you cannot connect to a serial number you'd need a database mapping serial numbers to computer names for that kind of lookup to work.
With powershell, it may be possible MithileshIndurkar Yes, of course you can always take the trivial approach of connecting to every single computer and checking its serial number.
That will work in VBScript as well, but depending on the size of the network and the online status of the computers it will take a very long time.
And you need to have a list of all computers to begin with. AnsgarWiechers If you're going to brute force it, why bother with a list? Just attempt to connect to every IP in network. Note: this is NOT recommended! Tim, Ansgar didn't suggest that. Show 2 more comments. Active Oldest Votes. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Active 6 years, 11 months ago. Viewed 2k times.
ReadLine queryResults. StdOut objExec. Improve this question. Add a comment. Active Oldest Votes. ReadAll queryResults. Improve this answer. Hackoo Hackoo SkipLine this was the only thing that I needed to add to get the results I wanted. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.
Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Related 0.
0コメント