|
Thanks again, here is the entire script.. it is called by another script that defines the logfile.
; Script # 8 (Shared Resources per machine) ? "Running Script #8 - Shares.kix" ;############################################################################################### ; TAKING INVENTORY OF Shared Resources ; ; 2004/05/14 -Written to display the systems shared resources - TSG Payne ; ;############################################################################################### ? "Shared resources for - @wksta" $INDEX = 0 :SWLOOP $shareskey = ENUMVALUE("HKey_Local_Machine\System\CurrentControlSet\Services\lanmanserver\shares", $INDEX) ? $shareskey If @Error = 0 $INDEX = $INDEX + 1 GOTO SWLOOP
Here's the output to the text file.
Running Script #8 - Shares.kix Shared resources for - 2252K80040031WB print$ MusicServer$ HPDJ845 NetAcademy$
|