Jump to content
Sign in to follow this  
dgs

Get security settings on a file share

Recommended Posts

dgs

Hi,

I am new to autoit and this forum so please be patient with me. thanks

I am automating a process at work and they want me to have the user type in a file share path into a box and then they want me to get the file share security settings and let the user pick one of them, then add the user to that AD security group.

I just need help getting the security settings so i can let the user pick it. I will figure out how to add the user to the AD group.

Thanks in advance.

Share this post


Link to post
Share on other sites
water

I will figure out how to add the user to the AD group.

This can easily be done using my Active Directory UDF.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
dgs

can i use your Active Directory UDF to get the security settings on the file share when the person types it into the input box, and then put them in the AD group after the person chooses it from the list of security groups associated to that share?

sorry for the long sentence.

thanks

Share this post


Link to post
Share on other sites
water

Unfortunately you can only do the AD stuff with my UDF (add a user to an AD group).

I don't know how to get the securtity settings of a file share. Maybe another UDF on the forum can access this information.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
dgs

I knew that your AD UDF could add a user to an AD group, but I really need to know how to get the security settings for the file share. thanks for your assistance.

Share this post


Link to post
Share on other sites
rudi

Hi.

Maybe this is a start to solve your task using WMI:

http://wmiscripting.wordpress.com/2007/12/07/view-share-permission/

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites
hannes08

You could use the icacls.exe tool in the background.

icacls.exe serversharepath

Output:

serversharepath  NT AUTHORITYSYSTEM:(I)(OI)(CI)(F)
                     BUIILTINAdministrators:(I)(OI)(CI)(F)
                     DOMAINYOURGROUP-MODIFY:(OI)(CI)(RX,W,DC)
                     DOMAINYOURGROUP-READ:(OI)(CI)(RX)

You'll have to figure out what the exp<b></b>ressions in the brackets mean. You can find the description everywhere.

Edited by hannes08

Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

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  

×