none
Powershell Script to Assign Share Permission RRS feed

  • Question

  • Hello,

    We are trying to streamline the folder access permissions. We see that on many NAS shares Everyone is provided full share permission, but the NTFS permissions do not have everyone group.

    What we wanted is a script that will take the NFTS permissions for the respective folder and apply that as a share permission by overwriting the existing share permission for the respective shared folder.

    Thank you.

    Raj

    Wednesday, September 11, 2019 4:46 PM

All replies

  • Please read the following:

    This forum is for scripting questions rather than script requests


    -- Bill Stewart [Bill_Stewart]

    Wednesday, September 11, 2019 4:51 PM
    Moderator
  • what you want is not a good practice.

    It is certain that making a script that would do what you ask is possible. After all, everyone can do what they want, the best and the worst ... and what you ask is the worst.

    Consider that : Between rights on the share and NTFS permissions is the most restrictive that wins.So anonymous users can't show the shares (To live happy, live hidden)

    If you want to increase security, just change the EveryOne group by DOmain Users (if you have only one domain) or Authenticated users.

    Moreover, if in your share there are several directories of 1st level, see lower level, how are you going to handle this? It will be just unmanageable!

    Consider thebill remark, and please go the the Internet  and look for best practices about shares.

    Olivier

    P.S. : It was just advice from me, but just remember that counselors are not the payers

    • Proposed as answer by jrv Wednesday, September 11, 2019 5:30 PM
    Wednesday, September 11, 2019 5:28 PM
  • Oliv is correct. We do not mange permissions on shares that way. The old share permissions are used in a work group but in a domain  this is done on NTFS.

    I recommend searching for articles on how to manage permissions in a domain and following the best practices recommended.  You must clearly understand this before you start changing anything.


    \_(ツ)_/

    Wednesday, September 11, 2019 5:32 PM
  • thanks jvr

    I try to be didactic and explain as much i can with my poor english. Explain, discuss, explain again, and again ... did you understand ? ... Ok, so now you know what to do then do it. Sometimes I think I call myself Don Quichotte, and it's bring :-)

    Olivier

    Wednesday, September 11, 2019 6:30 PM
  • thanks jvr

    I try to be didactic and explain as much i can with my poor english. Explain, discuss, explain again, and again ... did you understand ? ... Ok, so now you know what to do then do it. Sometimes I think I call myself Don Quichotte, and it's bring :-)

    Olivier

    It was clear enough I just wanted to add that a search would find more for the user.  You are correct that permissions management via share would be insane and very difficult to maintain.


    \_(ツ)_/

    Wednesday, September 11, 2019 6:35 PM





  • Buy Pain Pills Online Without Prescription, ANXIETY PILLS AND MORE FOR SALE - WHATSAPP/text/call.. +1 510-972-3097

    Website: https://buyprescriptionz.com/product-category/pills/

    Text/call/WHATSAPP...... +1 510-972-3097

    EMAIL........ info@buyprescriptionz.com

    Website .....https://buyprescriptionz.com/

    Buy Pain Pills Online Without Prescription, ANXIETY PILLS AND MORE FOR SALE - WHATSAPP/text/call.. +1 510-972-3097

    Website: https://buyprescriptionz.com/product-category/pills/

    Text/call/WHATSAPP...... +1 510-972-3097

    EMAIL........ info@buyprescriptionz.com

    Website .....https://buyprescriptionz.com/

    Hello, we are suppliers of assorted painkillers and anxiety pain relief meds, and other research chemicals. Discount are also applicable for bulk buyers.The shipping is meticulously planned, packaging is done with professionalism We have the following meds below available in stock now for your orders; Pain/ Anxiety Pills Seconal Nembutal (Powder,Pills and Liquid form) Oxycotin / Oxycodone 10,20 a,40 and 80 mg Actavis Promethazine Codeine Purple Cough Syrup (16oz and 320z) Hydrocodone 10500, 10325 ,7.5750 mg Valium 10,15 and 20 mg Xanax 1 and 2 mg Dilaudid 2,4 and 8 mg Ritalin 5,10, 20 mg Percocet 7.5mg,5mg and 10mg Opana 20mg and 40mg Lorcet - (Hydrocodone Bitartrate/Acetaminophen) 10 mg/650 mg Midazolam 3mg Motrin 400mg and 600mg Norco - ( Hydrocodone Bitartrate/Acetaminophen ) 5 mg/325 mg Soma 350mg Tramadol (Ultram) 50mg Valium 2mg,5mg and 10mg Valium Roche Brand 10mg Voltaren 50mg and 100mg Adderall,Anaprox,Ansaid,Acephen Bupren , ex,Butrans Percocet,Phrenilin,Percodan Soma, , Subutex Cataflam,Celebrex Flexeril,Fentora.. , Demerol,Daypro,Dilaudid Endocet Lorcet, , L , ortab Ibudone Methadone,Morphine Naprosyn , ,Norco Oxycontin,Opana Ritalin,Roxicodone Ultram Vicodin,Voltaren,Vicoprofen Cocaine, MDMA, 4-Methylaminorex, 4-MMC, MDPV, LSD, DMT, 5-MeO's PCP, Heroin, Ketamine DXM powder, Dexedrine, Adderall, Nubain nalbuphine 20mg/ml, Onax, Lorazepam, Diazepam, Clonazepam, Alprazolam, Norco, Hydrocoden, Percocet, Xanax, Ritalin, Vicodin, Opana ER, Dilaudid, Buprenorphine, MS Contin, Morphine Vial, Hydromorphone Vials, Hydromprhone Pills, Oxymorphone ER, Oxymorphone IR pills, Roxy 30mg, Fentanyl, Fent Patches Gel, Fent pops Atiq 1200mcg, Fentora, 300ug

    https://buyprescriptionz.com/product-category/pills/ https://buyprescriptionz.com/product-category/pills/

    https://buyprescriptionz.com/product/cialis/ Buy Cialis Online https://buyprescriptionz.com/product/demerol/ Buy Demerol Online https://buyprescriptionz.com/product/codeine/ Buy Codeine Online https://buyprescriptionz.com/product/fioricet-butalbitol Buy Fioricet (Butalbitol) Online https://buyprescriptionz.com/product/dormicum/ Buy Dormicum Online

    Text/call/WHATSAPP...... +1 510-972-3097

    EMAIL........ info@buyprescriptionz.com

    https://byprescriptionz.com
    Wednesday, September 11, 2019 6:48 PM