Jump to content

spuri

Active Members
  • Posts

    20
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

spuri's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. 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
  2. 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
  3. 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
  4. I am looking for copy solution! pls forget cacls I need to set different rights for all my directories
  5. I don't want to set ACL for my deep folder tree, I want to copy my template folders with ACL.
  6. 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 )
  7. 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?
  8. 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?
  9. why this does not allow more dos commands?
  10. 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?
  11. 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.
  12. You are right, I will try with unc path. Should I set logon_flag to 0 or 2? What is the difference?
  13. Thanks but I need to have network access right other than local administrator
  14. 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
  15. this works also $RunP = RunWait( @ComSpec & " /c xcopy D:\_TemplateProject_0000\CLIENT D:\test\" & $client & "\ /T /E /O" ) Msgbox(0,"project-test", $RunP )
×
×
  • Create New...