Jump to content
Sign in to follow this  
Krol

How get all sharename?

Recommended Posts

Infinitex0

..................................................what?


The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Share this post


Link to post
Share on other sites
Krol

Really somehow to receive names of the resources (share) comp in LAN?

Share this post


Link to post
Share on other sites
Infinitex0

I'm sorry but I can't understand you.


The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Share this post


Link to post
Share on other sites
Infinitex0

I'm guessing English isn't your first language......


The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Share this post


Link to post
Share on other sites
PaulIA

Really somehow to receive names of the resources (share) comp in LAN?

There is a share management module in Auto3Lib that includes the functions to enumerate shared resources on a network. There is also a demo script that shows how to use the functions to retrieve the information.

Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites
Helge

I'm guessing English isn't your first language......

I had my ideas about what the OP wanted when I first looked at the topic-title and this person's English is

perfectly easy to understand... If you have no idea what the the person is asking about then why do you

post 3 times in it ? Blaming on the other person's English when you're clueless about the subject is kinda

rude.

Share this post


Link to post
Share on other sites
ptrex

@Krol

This will list all shares on your PC and of you have admin rights it will show the shares for a remote server as well.

$strComputer = "." ; change this to IP address for remote PC / server
 $objWMIService = ObjGet("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & $strComputer & "\root\cimv2")

 $colShares = $objWMIService.ExecQuery("Select * from Win32_Share")

For $objShare in $colShares
    Consolewrite ("Allow Maximum: " & $objShare.AllowMaximum&@CR   )
    Consolewrite ("Caption: " & $objShare.Caption &@CR    )
    Consolewrite ("Maximum Allowed: " & $objShare.MaximumAllowed&@CR  )
    Consolewrite ("Name: " & $objShare.Name &@CR    )
    Consolewrite ("Path: " & $objShare.Path &@CR    )
    Consolewrite ("Type: " & $objShare.Type &@CR    )
    ConsoleWrite ("-----------------"&@CR )
Next

Enjoy!!

ptrex

Edited by ptrex

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.