JCH Posted July 30, 2016 Share Posted July 30, 2016 Has anyone tried to run _Net_Share_ShareEnum on Windows 10? It says it adds the share but doesn't give any info on the share. I'm trying to add a share with _Net_Share_ShareAdd but don't have any success. Any help would be appreciated. Link to comment Share on other sites More sharing options...
JCH Posted July 30, 2016 Author Share Posted July 30, 2016 Ok, don't seem to be able to edit the post above. The correct link to the script is the example here: https://www.autoitscript.com/autoit3/docs/libfunctions/_Net_Share_SessionEnum.htm Thanks. Link to comment Share on other sites More sharing options...
JCH Posted July 30, 2016 Author Share Posted July 30, 2016 Sorry, this is the correct link: https://www.autoitscript.com/autoit3/docs/libfunctions/_Net_Share_ShareEnum.htm Moderator can delete the previous post. Link to comment Share on other sites More sharing options...
AutoBert Posted July 30, 2016 Share Posted July 30, 2016 The linked example works perfect. What are your issues? Link to comment Share on other sites More sharing options...
JohnOne Posted July 30, 2016 Share Posted July 30, 2016 add #RequireAdmin in script AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
JCH Posted July 30, 2016 Author Share Posted July 30, 2016 Thanks JohnOne, that worked! I thought it was enough to be logged in as admin, but apparently not! Link to comment Share on other sites More sharing options...
spudw2k Posted August 2, 2016 Share Posted August 2, 2016 On 7/30/2016 at 3:41 PM, JCH said: I thought it was enough to be logged in as admin, but apparently not! The account you are logged in with might be an admin, but you still need to elevate privileges to create the share. It's a security mechanism. Depending on how UAC is confgured--typically--if the user account launching a script (after #RequireAdmin has been added to it) is simply prompted with a Yes/No acknowledgment window, that indicates the account is an admin; if instead you get prompted for a username and password than likely the launching user account is not an admin. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF 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