Jump to content
Sign in to follow this  
dgs

Get security settings on a file share

Recommended Posts

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

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 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-06-30 - Version 1.6.2.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (NEW 2020-06-27 - Version 1.3.2.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - 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
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Share this post


Link to post
Share on other sites

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

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 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-06-30 - Version 1.6.2.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (NEW 2020-06-27 - Version 1.3.2.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - 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
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Share this post


Link to post
Share on other sites

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

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...