Jump to content



Photo

Domain PC Info


  • Please log in to reply
14 replies to this topic

#1 archrival

archrival

    Prodigy

  • Active Members
  • PipPipPip
  • 176 posts

Posted 20 December 2004 - 05:43 PM

I finished the first draft of my Domain PC Info program. Unfortunately it uses way too much vbscript. But at the moment, AutoIt doesn't do what I need. I'm not doubting it will in the future though! Ok. Here's what this is. It will display all the machine names in your domain in a listbox, you can click on the machine name and it will tell you the OS, Service Pack, IP address, installation date and the currently logged on user. That's mostly retrieved via VB Script. After displaying that information, it presents you with a list of all of the services on that remote machine. From there you can get the current status of the service, start and stop them. I have plans for more in the future, but this is what I've done in my free time over the last week here at work. I'm also embarassed by my code, but it works and that was my goal for now. It performs very few checks and I'm sure it doesn't work too well on a 95/98/Me machine or on a machine not on a domain, it will eventually.

Edit:
Here's an extracted version from the compiled version I had lying around, it contains all of the includes, but at least it's a start. My current version is all mangled up right now, I'm rewriting all of the vb script, removing temp file output, improving existing functions. Don't have much time to work on it though. I've now posted enough that you should be able to get this working.

Attached File  domainview1.au3   36.84K   1726 downloads

Attached File  subnet.au3   3.77K   1158 downloads
Attached File  services_net.au3   18.22K   1106 downloads
Attached File  AU3XtraTest.dll   5.5K   902 downloads

Edited by archrival, 17 October 2005 - 03:09 PM.








#2 archrival

archrival

    Prodigy

  • Active Members
  • PipPipPip
  • 176 posts

Posted 21 December 2004 - 09:45 PM

Updated Services Interface, looks a little prettier. Is there any interest in something like this? I have plans to add retrieval of much more windows and hardware information and the ability to disable a service, search for what machines a user is logged on to, remove hardware from Device Manager, etc. I know there are other tools out there that do this, but I didn't write them and I'm doing this for me at first and if anyone else is interested or has feature requests I will add them. I haven't implemented any sanity checks yet, I've had reports of it going full screen without the possibility of being resized and the progress bar doesn't always fill 100%, I added it for the odd case that you have 4000 machines in your domain and the list takes a little while to finish, you'll at least have some sort of a clue as to how much longer you have to wait for the list to finish.

#3 Tom

Tom

    Seeker

  • New Members
  • 10 posts

Posted 22 December 2004 - 04:33 PM

Very well done. Seems to work nice & fast. The only nit I have seen so far is the progress bar not completing. Thanks for sharing your code.

Edited by Tom, 22 December 2004 - 04:33 PM.


#4 BasicOs

BasicOs

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 458 posts

Posted 23 December 2004 - 06:58 PM

Very well done. Seems to work nice & fast. The only nit I have seen so far is the progress bar not completing. Thanks for sharing your code.

<{POST_SNAPBACK}>

the progress bar is not a problem, more, it could be nice to order by active and inactive services, and have or hidden microsoft or not microsoft services in the list.
Thanks
Autoit.es - Foro Autoit en EspaƱol Word visitors Image Clustrmap image: Posted Image- Football Spanish team - Spanish team: Casillas, Iniesta, Villa, Xavi, Puyol, Campdevilla, etc..Programando en Autoit+Html - Coding Autoit-Html - Arranca programas desde Internet - Preprocesador de Autoit a http

#5 afsar

afsar

    Seeker

  • Active Members
  • 27 posts

Posted 26 August 2005 - 11:05 AM

I finished the first draft of my Domain PC Info program. Unfortunately it uses way too much vbscript. But at the moment, AutoIt doesn't do what I need. I'm not doubting it will in the future though! Ok. Here's what this is. It will display all the machine names in your domain in a listbox, you can click on the machine name and it will tell you the OS, Service Pack, IP address, installation date and the currently logged on user. That's mostly retrieved via VB Script. After displaying that information, it presents you with a list of all of the services on that remote machine. From there you can get the current status of the service, start and stop them. I have plans for more in the future, but this is what I've done in my free time over the last week here at work. I'm also embarassed by my code, but it works and that was my goal for now. It performs very few checks and I'm sure it doesn't work too well on a 95/98/Me machine or on a machine not on a domain, it will eventually.

Here's a sample of the new output, it's a little more refined:


Edit:
Changed to links to AutoIt Source

Compiled exe:
http://www.autoitscript.com/fileman/users/public/archrival/domainview.exe

AutoIt Source
http://www.autoitscript.com/fileman/users/public/archrival/domainview.au3

Remote Services UDF by pacman
http://www.autoitscript.com/fileman/users/public/archrival/services-net.au3

My sloppily thrown together but functional vb scripts.
http://www.autoitscript.com/fileman/users/public/archrival/vbscript.au3

hi,

can u post again the domainview.au3 file again..

when i try to view it is not opening..

thanx
bye
Afsar

#6 MSLx Fanboy

MSLx Fanboy

    Local $Clue = 0

  • Active Members
  • PipPipPipPipPipPip
  • 1,046 posts

Posted 26 August 2005 - 01:52 PM

Yea, I'm getting 404 errors on the au3 scripts :whistle:
Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

#7 w0uter

w0uter

    resreveR nA

  • Active Members
  • PipPipPipPipPipPip
  • 2,262 posts

Posted 26 August 2005 - 11:50 PM

the old fileman got relocated during the last "attacks"
these links where made on Dec 23 2004.

(i dont know if they are still on the old file-man though)
My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

#8 Wooltown

Wooltown

    Alpha Geek

  • Active Members
  • PipPipPipPipPipPip
  • 478 posts

Posted 05 October 2005 - 10:24 AM

Archrival !

Can you submit your scripts again, it looks like the script i am looking for.


Regards
Sven

#9 archrival

archrival

    Prodigy

  • Active Members
  • PipPipPip
  • 176 posts

Posted 05 October 2005 - 03:36 PM

Archrival !

Can you submit your scripts again, it looks like the script i am looking for.
Regards
Sven


Sure, I'll remove the vbscript stuff and make sure it's up to date with the current autoit state. Give me a little time to convert it.

#10 archrival

archrival

    Prodigy

  • Active Members
  • PipPipPip
  • 176 posts

Posted 12 October 2005 - 06:40 PM

Sure, I'll remove the vbscript stuff and make sure it's up to date with the current autoit state. Give me a little time to convert it.


Posted original source in first post on this topic.

#11 ptrex

ptrex

    Universalist

  • MVPs
  • 2,399 posts

Posted 12 October 2005 - 07:25 PM

Hey Guys, this might inspire you all.

This is the Free Swiss Army knfe !!!

System Information for Windows


Btw nice job archrival

#12 tazdev

tazdev

    Wayfarer

  • Active Members
  • Pip
  • 87 posts

Posted 12 October 2005 - 07:54 PM

AutoIT will do a quick and dirty Software inventory to a TXT file:
Plain Text         
func appsinvlocal()     $y = 1     $k = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"     $pcl = StringLeft(@Computername, 2)     $d = ( @MON & "\" & @MDAY & "\" & @YEAR & " - " & @HOUR & ":" & @MIN)     $li386 = ("C:\I386")     $fn = (@TempDir & "\" & @ComputerName & "-programs.txt")     If FileExists( $fn ) then         FileDelete( $fn )     EndIf     $f = FileOpen( $fn, 1) ; Check if file opened for writing OK     If $f = -1 Then         Exit     EndIf     FileWrite($f, $d & @CRLF)     Do         $a = RegEnumKey($k, $y);gets the key         $as = Stringleft($a, 1)         $sv = RegRead($k & "\" & $a, "DisplayVersion")         $sn = RegRead($k & "\" & $a , "DisplayName")         If $as = "{" then             $y = $y + 1             $a2 = ($sn & " - " & $sv)             FileWrite($f, $y & " - App: " & $a2 & @CRLF)         Else             If $a = "" Then                 FileWrite($f, @CRLF)                 $y = $y + 1             Else                 FileWrite($f, $y & " - App: " & $a & " - " & $sv & @CRLF)                 $y = $y + 1             EndIf         EndIf     Until $a = ""     FileClose($f) EndFunc

I use this to create a text file in the I386 folder based on the PC's name. It will list all the apps that the registry has listed in it. With some tweaking you could make this work from your PC to a remote PC if you wanted but you would need to change a couple of vars.

Edited by tazdev, 12 October 2005 - 07:55 PM.


#13 Rahul Rohela

Rahul Rohela

    Adventurer

  • Active Members
  • PipPip
  • 114 posts

Posted 18 October 2005 - 01:54 AM

Its not working showing error
Line 830 (File "c:\Domain\Domainview.au3")

$netview[$i] = ($aDllRet[1] & @LF)
^Error
Error: Array variable has incorrect number of subscripts or subscript diamaension range exceeded..

Please post new files...

#14 RagnaroktA

RagnaroktA

    Prodigy

  • Active Members
  • PipPipPip
  • 198 posts

Posted 09 November 2005 - 01:51 PM

I'm showing an error while running...

Line 25 (File "C:\DevLib\Tools\DomainView\Subnet.au3"): $netmaskdec = ($netmaskarray[1] * 16777216) + ($netmaskarray[2] * 65536) + ($netmaskarray[3] * 256 + $netmaskarray[4] $netmaskdec = ($netmaskarray[1] * 16777216) + (^ERROR Error: Array variable has incorrect number of subscripts or subscript dimension range exceeded.


I havent modified any of the posted scripts... has anyone else had a problem with them?
Current Projects:Remote Administration Suite Updated! 12-20-07Remote User State Migration Tool (Plugin) Updated! 12-20-07Batch Print Wizard Updated! 12-20-07Links:AutoIt Beta | AutoIt WikiPosted Image

#15 feilong

feilong

    Seeker

  • New Members
  • 1 posts

Posted 05 May 2006 - 07:22 AM

Thinks for sharing your code Archrival. :)

I have search this sort of code since long time.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users