
spuri
Active Members-
Posts
20 -
Joined
-
Last visited
Everything posted by spuri
-
Active Directory UDF - Help & Support (III)
spuri replied to water's topic in AutoIt General Help and Support
Hello I searched for details but I am still not sure about a few things. I would like to show number of days till account expiration and user should change password if expired. _AD_GetObjectProperties($SUserId,"accountexpires") gives 0000/00/00 00:00:00 _AD_GetObjectProperties($SUserId,"pwdLastSet") gives 2018/05/20 11:08:05 How could I calculate the expiration date? (could not get password age info) Is it allowed to change password after its expiration? Thanks spuri- 883 replies
-
- active directory
- ad
-
(and 2 more)
Tagged with:
-
_FileListToArray new proposal; comments?
spuri replied to randallc's topic in AutoIt Example Scripts
Hello, $SubList = _FileListToArray3($drv & $client, "*", 2, 1, 1, "CS|DP", 1) I need to filter directoris CD and DP and also parent directory of CS and DP, is it possible somehow? Do you have any idea? Cpuld you please help? thanks s I don't need the underlined dirs example d:\client1 d:\client1\cs d:\client1\dp d:\client2\ d:\client2\cs d:\client2\dp d:\specwork\ d:\specwork\client3 d:\specwork\client3\cs d:\specwork\client3\dp d:\specwork2 d:\specwork2\client4 d:\specwork2\client4\cs d:\specwork2\client4\dp -
Ok you are right. I tried to map network drive than copy, but mapping fails. NET USE P: \\server2\projects\ && xcopy source target /E /T /S - If I tried to open a cmd window with network admin user account, I am able to map and copy but this fails if I try to call all command in one line, like this example. Local $RunC = RunAsWait($sUserName, $sDomain, $sPassword, 0, "cmd /k cd\ && NET USE P: \\server2\projects\", @SystemDir) I got system error 67 - network drive not found Please help
-
I am looking for copy solution! pls forget cacls I need to set different rights for all my directories
-
I don't want to set ACL for my deep folder tree, I want to copy my template folders with ACL.
-
What is the difference? this is also does not work.... $uncPS = "\\server2\projects\_TemplateProject\Project_TMP\" $uncCS = "\\server2\projects\_TemplateProject\Client_TMP\" $uncT = "\\server2\projects\" $nwclient ="test3" Local $RunC = RunAsWait( $sUserName, $sDomain, $sPassword, 0, "robocopy "& $uncCS & " " & $uncT & $nwclient & "\ /E /COPY:DATS", @TempDir, @SW_MAXIMIZE )
-
I need to copy files from network share to network share also also, I need use a different user account to have rights over the network share (need write right) and I need to copy the files with the NTFS rights. my idea unsuccess: runaswait, cmd, copy from unc path (fails), map share (fails from runaswait but works if i type in) , xcopy /T /E /O How would you start?
-
I would like to run cmd net use p: \\server\share xcopy p:\xy\ p:\proj\xy\ (copy ntfs file rights) UNC path is not working.... why? why this does not work? what should I do? use addnetshare and map again with a user having more network access xcopy than delete net share?
-
why this does not allow more dos commands?
-
Local $RunC = RunAsWait($sUserName, $sDomain, $sPassword, 0, "cmd /k cd\ && NET USE P: \\mbbudfls002\projects\", @SystemDir) I got system error 67 - network drive not found than if i type in NET USE P: \\mbbudfls002\projects\ it is success what is my mistake?
-
thanks for the ideas I am on XP. Listed network drives with "NET USE", but there are no mapped drives, but I am able to map "NET USE P: \\server\pfolder\" This could solve my problem.
-
You are right, I will try with unc path. Should I set logon_flag to 0 or 2? What is the difference?
-
Thanks but I need to have network access right other than local administrator
-
RunAsWait( $sUserName, $sDomain, $sPassword, 0, @ComSpec & " /c xcopy "& $drvC & " " & $drv & $nwclient & "\ /T /E /O", $drv, @SW_HIDE ) P: is a network share. I would like to copy P:\template\proj1 to P:\proj1, works with runwait but it has not enought rights so I need runaswait, but than I lose my network drives. Do you know any working solution? thanks
-
this works also $RunP = RunWait( @ComSpec & " /c xcopy D:\_TemplateProject_0000\CLIENT D:\test\" & $client & "\ /T /E /O" ) Msgbox(0,"project-test", $RunP )
-
ouccchh - many thaks - works fine
-
I get this (12) if I changed the code as below Func NewClientClick() GUICtrlRead($Input1) Msgbox(0,'test', $Input1 ) EndFunc
-
You are right but I need to copy ACL so probably xcopy is the answer and I still can not get the $Input1 value. why this does not work? Func NewClientClick() $project = GUICtrlRead($Input1) Msgbox(0,'test', $project ) EndFunc I get this should this variable be global?
-
thanks inputbox works with Kerros's example butnot with GUICtrlCreateInput $Input1 = GUICtrlCreateInput("", 28, 125, 345, 22) I would like to xcopy d:\templateclient\tempproj dir to D:\{selected-dir-client}\tempproj full code #Region ### START Koda GUI section ### Form=c:\program files\autoit3\forms\mb01.kxf $Form1 = GUICreate("Project-R", 413, 305, 272, 188) GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close") GUISetIcon("D:\81.ico") $PageControl1 = GUICtrlCreateTab(8, 8, 396, 256) GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $TabSheet1 = GUICtrlCreateTabItem("New Project") $Button2 = GUICtrlCreateButton("Create Project", 272, 208, 75, 25, 0) GUICtrlSetOnEvent(-1, "NewClientClick") GUICtrlSetFont(-1, 8, 400, 0, "Arial") $Combo1 = GUICtrlCreateCombo("", 36, 77, 337, 25) GUICtrlSetOnEvent(-1, "Combo1Change") GUICtrlSetFont(-1, 8, 400, 0, "Arial") GUICtrlSetFont(-1, 8, 400, 0, "Arial") ;---problem2---- !!!!!!!!!!!!!!! GUICtrlCreateInput("", 40, 168, 337, 22) GUICtrlSetFont(-1, 8, 400, 0, "Arial") $TabSheet2 = GUICtrlCreateTabItem("New Client") ;---problem2---- $Input1 = GUICtrlCreateInput("", 28, 125, 345, 22) GUICtrlSetFont(-1, 8, 400, 0, "Arial") GUICtrlCreateTabItem("") $Exit = GUICtrlCreateButton("&Exit", 318, 272, 75, 25, 0) GUICtrlSetOnEvent(-1, "Exitclick") $input11 = InputBox("Blank input","Input something here:",'','','', 28, 125, 345, 22) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 Sleep(100) WEnd ;------------------------------------Backup Button Function------------------------------------------- Func NewClientClick() $client = GUICtrlRead($Combo1) $project = GUICtrlRead($Input1) Msgbox(0,$project, $client ) EndFunc ;-------------------------------------End of Backup Button Function------------------------------------------
-
I am very new to autoit, but I am on half way with my program. I could figure out directory listing and dropdownmenu, I hope I will find dosrun but I can't get my inputbox value. How could I get Input1 value? ... $Input1 = GUICtrlCreateInput("", 28, 125, 345, 22) ... $project = GUICtrlRead($Input1) Msgbox(0,"test", $project ) Msgbox(0,"test", $Input1 ) ...