TheGam Posted February 29, 2008 Share Posted February 29, 2008 Hi All, I'm new to AutoIT and am so far loving it!! I have scripted in various languages so the syntax is intuative and easy to follow. I have just used the RunAsSet to be able to run an EXE as admin to uninstall a program that requires admin rights and it all works fine. I now need to be able to create a Directory on the C: Drive (Which only local Admins can do) and then set the ACL to EVERYBODY change access. Using the dircreate I can create it (It works I think cos I am local admin), but when trying to run cacls through Autoit, it doesn't seem to run. Please would someone be able to point me in the right direction to do this on a machine the user is not an Admin. Also I wouldn't mind knowing how to see the output from the command propmt when debugging this kind of stuff. Any Help very appreciated!!! Link to comment Share on other sites More sharing options...
ptrex Posted February 29, 2008 Share Posted February 29, 2008 @TheGamMaybe this can helpSet ACL permissionsregardsptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
Krikov Posted February 29, 2008 Share Posted February 29, 2008 Hello as far as i know there is no Function to Change Permision with Native Autoit Script But You Can UseXCALC From Microsoft This is a Command line that allow you to add remove and change ntfs premision and share premision take a look at that: http://www.ss64.com/nt/xcalcs.html and there is an VBS Script that do the same thing but its little hard for me to convert it to Autoit Script Krikov [topic="63488"][font="Arial"]Krikov Tray Quick Menu[/font][/topic] Link to comment Share on other sites More sharing options...
TheGam Posted February 29, 2008 Author Share Posted February 29, 2008 Thanks foir the speedy replies guys!! Before I look into either of these, can you confirm what ones if any can be run as a different user to which is logged in. The reason for this, is I would like to do this via the logon and script and most users aren't local admins. Thanks!! Link to comment Share on other sites More sharing options...
Krikov Posted February 29, 2008 Share Posted February 29, 2008 TheGam in my work i use the XCALC at the logon script so when you use the RunAsSet You can do anything no problem for you RunAsSet ( "user", "domain", "password" ) Run("Xcalc") Krikov [topic="63488"][font="Arial"]Krikov Tray Quick Menu[/font][/topic] 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