dgs Posted October 28, 2012 Share Posted October 28, 2012 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. Link to comment Share on other sites More sharing options...
water Posted October 28, 2012 Share Posted October 28, 2012 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
dgs Posted October 28, 2012 Author Share Posted October 28, 2012 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 Link to comment Share on other sites More sharing options...
water Posted October 28, 2012 Share Posted October 28, 2012 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
dgs Posted October 28, 2012 Author Share Posted October 28, 2012 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. Link to comment Share on other sites More sharing options...
rudi Posted October 29, 2012 Share Posted October 29, 2012 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! Link to comment Share on other sites More sharing options...
hannes08 Posted October 29, 2012 Share Posted October 29, 2012 (edited) 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 October 29, 2012 by hannes08 Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now