Accessing Workgroup Shared Folder from Domain

512

Open Notepad and type the below statements in a file and save it as batch script(.bat). Replace all passwords and usernames for individual shares as needed ( Yes password comes before username :) )

NET USE "\\<computername1>\<sharename1>" <password> /u:<username>  
NET USE "\\<computername2>\<sharename2>" <password> /u:<username>  
..
NET USE "\\<computernameN>\<sharenameN>" <password> /u:<username> 

Then try accessing the shares with the shortcuts created. If you face any errors regarding Multiple Sessions run "NET USE * /DELETE" before executing the batch file. The shortcuts should work now. Sometimes the actual folders might not be visible if the ABE(Access Based Enumeration) is enabled and read permissions for that share are denied though this might not be the reason in your case .

Share:
512

Related videos on Youtube

Dixit Singla
Author by

Dixit Singla

Updated on September 18, 2022

Comments

  • Dixit Singla
    Dixit Singla over 1 year

    Sample data:

    @prefix skos: <http://www.w3.org/2004/02/skos/core#> .
    @prefix xs: <http://www.w3.org/2001/XMLSchema#> .
    @prefix p0: <http://www.mlacustom.com#> .
    @prefix p2: <http://www.mla.com/term/> .
    _:bnode7021016689601753065 p0:lastModifiedDateTime "2018-09-14T12:55:38"^^<xsd:dateTime> ;
                               p0:lastModifiedUser "admin"^^xs:string .
    <http://www.mla.com/name/4204078359> p0:hasClassingFacet "http://www.mla.com/facet/RA"^^xs:string ;
                                         p0:type "Normal"^^xs:string ;
                                         p0:classification _:bnode3452184423513029143 ,
                                                           _:bnode6827572371999795686 ;
                                         p0:recordType "Name"^^xs:string ;
                                         p0:recordNumber "4204078359"^^xs:string ;
                                         p0:stdDescriptor "classification111111"^^xs:string ;
                                         p0:establishedBy "admin"^^xs:string ;
                                         skos:prefLabel "classification111111"^^xs:string ;
                                         p0:createdBy "admin"^^xs:string ;
                                         a skos:Concept ;
                                         p0:createdDate "2018-09-14T12:55:38"^^<xsd:dateTime> ;
                                         p0:establishedDate "2018-09-14T12:55:38"^^<xsd:dateTime> ;
                                         p0:hasRAsubFacet "http://www.mla.com/subfacet/classing-subject-authors"^^xs:string ;
                                         p0:lastModifiedDate "2018-09-14T12:55:38"^^<xsd:dateTime> ;
                                         p0:lastModifiedDetails _:bnode7021016689601753065 ;
                                         p0:isProblematic "N,N"^^xs:string ;
                                         p0:lastModifiedBy "admin"^^xs:string ;
                                         p0:status "established"^^xs:string .
    _:bnode3452184423513029143 p0:literature p2:1513 ;
                               p0:timePeriod p2:1005 ;
                               p0:language p2:3199 .
    _:bnode6827572371999795686 p0:literature p2:11307 ;
                               p0:timePeriod p2:1009 ;
                               p0:language p2:31 .
    

    In in the above data I want to delete the classification blank nodes and it associated data which is p0:literature, p0:timePeriod, p0:language

    Below sparql query is deleting the blank node associated triples which is the expected behaviour.

    PREFIX skos-mla: <http://www.mlacustom.com#>
    PREFIX name: <http://www.mla.com/name/>
    
    WITH <thesaurus-term>
    DELETE {
      ?class ?p ?o .
    }
    INSERT {}
    WHERE {
      name:4408003840 skos-mla:classification ?class .
      ?class ?p ?o .
    }
    

    I mean this data

    _:bnode3452184423513029143 p0:literature p2:1513 ;
                               p0:timePeriod p2:1005 ;
                               p0:language p2:3199 .
    _:bnode6827572371999795686 p0:literature p2:11307 ;
                               p0:timePeriod p2:1009 ;
                               p0:language p2:31 .
    

    But I also want to delete the classification triples with the main IRI. these triples:

    <http://www.mla.com/name/4204078359> 
                         p0:classification _:bnode3452184423513029143 ,
                                           _:bnode6827572371999795686 ;
    

    I have to delete the triples in a single sparql.

    • Ƭᴇcʜιᴇ007
      Ƭᴇcʜιᴇ007 over 11 years
      Can you access the desired shares with \\<computer's name> or \\<computer's IP address>?
    • Bunkai.Satori
      Bunkai.Satori over 11 years
      @techie007, hi and thanks for your response. Well I can ping the host name and get translated IP address. then I can use the following: "USE NET \\hostname\SharedFolder /USER:MyUser MyPasssword." This works. However, my point was creating just shortcut, so the users cna click and access the target folder, whitout the need to map the destination folder through USE NET.
    • Ƭᴇcʜιᴇ007
      Ƭᴇcʜιᴇ007 over 11 years
      Why not just make a standard shortcut pointing to \\hostname\SharedFolder?
    • Bunkai.Satori
      Bunkai.Satori over 11 years
      @techie007:of course I tried it as the first option. Basically, what you propose is what I am looking for. However, if I do try to access the folder directly in Windows Explorer, after cca 1 minute I get a response from the PC: "the directory cannot be found". After couple of hours searching I came here to ask.
    • Stanislav Kralin
      Stanislav Kralin over 5 years
      Basically, like this: stackoverflow.com/q/46526033/7879193
    • Dixit Singla
      Dixit Singla over 5 years
      Looking for like this onyl, this will delete all the blank nodes, In my case I have to delete only for classification, I tried your query but it's not working as expected
    • Dixit Singla
      Dixit Singla over 5 years
      One thing I did not get is, why optional is used, I believe this would delete all the other triples as well, Pardon me if I am wrong.
    • Damyan Ognyanov
      Damyan Ognyanov over 5 years
      The query from stackoverflow.com/q/46526033/7879193 solves different problem. Just adapt the same technique to your case. E.g. instead of '?p' use 'p0:classification' , ommit the OPTIONAL and FILTER , etc.
  • Dhiwakar Ravikumar
    Dhiwakar Ravikumar over 9 years
    Can you please let me know if this worked out well ? I'm a newbie and the green "tick" isn't as reaffirming as a statement :)