Jump to content

How get all sharename?


Krol
 Share

Recommended Posts

..................................................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]

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

@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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...