Jump to content

mohammadezazi

Active Members
  • Posts

    66
  • Joined

  • Last visited

About mohammadezazi

  • Birthday 07/30/1978

mohammadezazi's Achievements

Wayfarer

Wayfarer (2/7)

1

Reputation

  1. Hi. I want to get the IP address of a client in network. I couldn't find the command for it. please help me. for example : $IP = getremoteIP("remotecomputer")
  2. Tnxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx It works wery nice......... Thank you againnnnnnnnnnnnnn
  3. Hi I've wrote a script to logon remote on my servers. I want to send the password also to server. so the logon must be done automatically. I've used this code: $oRDP = ObjCreate("MsTscAx.MsTscAx") GUICreate($SerName, @DesktopWidth-50, @DesktopHeight-70) $GUIActiveX = GUICtrlCreateObj($oRDP, 5, 5, @DesktopWidth-60, @DesktopHeight-80) GUISetState() $oRDP.Server = $SerName $oRDP.UserName = $UserName $oRDP.Connect() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd GUIDelete() Please help me to send password also. I couln't find solution for my problem in this forum There are several softwares that can send password. such "RemoteDesktop Manager", ... . But I want to do it by Autoit.
  4. I could not do it by logon_flag. But I used command line switchs to send User1s variables into App2.exe. and it works now. Thanks alot.
  5. How I can get the LoggedOn user name and its environment parameters in a RunAsed application. I have an App1.EXE file that runs in User1 environment. (Is a domain user) App1.EXE calls an other Application (App2.EXE) by Runas command (runas user: user2) But I can't access User1 environment variables (Such as its HKEY_CIRRENT_USER Registry keys, or Documents and settings ...) in App2.EXE. ! How the User1's variables are accessible in App2 Code ? Plz help me.
  6. This is my code : $Maingui = GUICreate("", 167, 177, -1, -1, $WS_POPUP, $WS_EX_TOOLWINDOW) GUISetState() Do $msg = GUIGetMsg() Until $msg = $GUI_EVENT_SECONDARYUP I want to move this window by mouse left key. But I can't. Thans for any help.
  7. Very goooooooooooooooooooooooooooooooooooooooooooooooooooooooooooood Thankssssssssssssssssssssssssssssssssssss
  8. Hi. Please help me to create a share folder with these permissions (in Domain invironment): Just: Everyone Read CurrentUser Read and Write I use a code such this : (But it is not that i want) The Share permissions is not important for me, but the Security permissions is my weakness. #include <Permissions.au3> #include <Process.au3> #include <Misc.au3> #include <GUIConstantsEx.au3> _InitiatePermissionResources() If DirCreate("d:\"&@ComputerName) Then $mypath = "d:\"&@ComputerName ElseIf DirCreate("E:\"&@ComputerName) Then $mypath = "E:\"&@ComputerName ElseIf DirCreate("F:\"&@ComputerName) Then $mypath = "F:\"&@ComputerName ElseIf DirCreate(@DocumentsCommonDir&"\"&@ComputerName) Then $mypath = @DocumentsCommonDir&"\"&@ComputerName EndIf Runwait(@ComSpec & " /c net share "&@ComputerName&"="&$mypath ) $TI = TimerInit() $ret = _myGrantReadAccess($mypath,$SE_FILE_OBJECT,'Administrators') $ret = _myGrantAllAccess($mypath) $TD = TimerDiff($TI) _ClosePermissionResources() Func _myGrantReadAccess($oName, $_SE_OBJECT_TYPE = $SE_FILE_OBJECT, $SetOwner ='Administrators', $Recurse = 1) Local $aPerm[6][3] $aPerm[0][0] = 'Everyone' $aPerm[0][1] = 1 $aPerm[0][2] = $GENERIC_WRITE ;$aPerm[1][0] = $regloginuser $aPerm[1][0] = 'Administrators' $aPerm[1][1] = 1 $aPerm[1][2] = $GENERIC_ALL $aPerm[2][0] = 'System' $aPerm[2][1] = 1 $aPerm[2][2] = $GENERIC_ALL Return _SetObjectPermissions($oName, $aPerm, $_SE_OBJECT_TYPE, $SetOwner, 1, $Recurse) EndFunc ;==>_GrantReadAccess Func _myGrantAllAccess($oName, $_SE_OBJECT_TYPE = $SE_FILE_OBJECT, $SetOwner = 'Administrators', $Recurse = 1) Local $aPerm[1][3] $aPerm[0][0] = 'Everyone' $aPerm[0][1] = 1 $aPerm[0][2] = $GENERIC_ALL Return _SetObjectPermissions($oName, $aPerm, $_SE_OBJECT_TYPE, $SetOwner, 1, $Recurse) EndFunc ;==>_GrantAllAccess
  9. And how it is done by AutoIt? I've an aplication that has been written by AutoIt. It has an infinite loop for doing some things and starts from Client logging on until it logs off. So I want to convert it to service. what is the way? Thanks for any guidance. And in other scenario if there is not any loop in it, then can it would be converted to a service yet?
×
×
  • Create New...