Jump to content

jezr74

Members
  • Posts

    19
  • Joined

  • Last visited

About jezr74

  • Birthday 10/30/1974

Profile Information

  • Location
    Melbourne, AUS
  • Interests
    Aikido, Cycling, Technology, Slot Cars (with the kids of course), Reading, Eating, Beering.

jezr74's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thank you, looks much cleaner, and works. I did forget to add the '\\' to the server names as well. Which @LogonServer Returns. Thanks again, Jtsm
  2. Hi There, I searched topics and read and re-read the help files, but I am obviously confused how to do a section of a script I am working on, shown below. I am attempting to have my script determin it's geographical location by determinging the logon server DC that it authenticates against. This will then determine which servers it will access to further run scripts.. but I am stumbling around the first part of having it pass on the correct location information. I've added a tray tip to easily feed me back the results so i can test and have run on a box in another geographical location to test... but while it passes on the correct DC, it does'nt seems to pass on the location and deploymentserver string. I'm thinking this is a fairly simple solution, but I have blocked myself into thinking one way... anyone able to take a look and give me some clues on what I'm doing wrong? CODE $strLogonServer = @LogonServer $strDeploymentServer = "UNKNOWN" ;Detect Site Location and allocate deployment server If $strLogonServer = "MELDC1" or "MELDC2" or "MELDC3" Then $strLocation = "Melbourne AUS" $strDeploymentServer = "MELSVR0" ElseIf $strLogonServer = "SYDDC1" or "SYDDC2" Then $strLocation = "Sydney AUS" $strDeploymentServer = "SYDSVR0" Else $strLocation = "Not Detected" $strDeploymentServer = "UNKNOWN" EndIf TrayTip("Site Detection","Found " & $strLogonServer &" at "& $strLocation &" using "& $strDeploymentServer & " deployment server",100,1) Sleep(3000) Thanks, Jtsm
  3. Ahh Thanks, I was trying to make it harder then it was.
  4. Thanks for the quick reply. It may be an issue with my setup, it appears if I adjust the directives or the AutoIT3Wrapper with desired information, it does'nt appear to alter the output exe. Am I doing something wrong here? I'm reading that all I should need to do is adjust the wrapper or directives file, is that correct?
  5. Hi There, I have searched through the forums trying to work out if any one else has encountered this issue, but have had no luck. I recently rebuilt my machine from XP to Vista Enterprise, and installed the latest versions of AutoIT and SCite. I find now if I compile a script in SCite I would usually get a popup asking for details for reshacker to change version number and change icon etc. But I no longer get this. Is there something I need to do in the new versions to get this functionality back again? Thanks, jtsm
  6. Hi All, I currently have a script that challenges the user for a username and password that is passed on to map drives among other things. I'm trying to add validation to this for incorrect passwords. ie. if the password is incorrect the drive mapping is attempted with the wrong password and you are presented with a windows gui logon. I've had to exit the script and start again. Is there a way to validate a password against active directory to give an error code rather than it attempt to process the script with incorrect credentials? I've searched the forums alot for some clues, but have not found anything in this area with AD. Thanks, jtsm #include <GuiConstants.au3> #include <Inet.au3> #include <file.au3> ;If Not IsDeclared('WS_CLIPSIBLINGS') Then Global $WS_CLIPSIBLINGS = 0x04000000 $GUIPass=GuiCreate("Logon", 222, 149,(@DesktopWidth-222)/2, (@DesktopHeight-179)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $Button_Enter = GuiCtrlCreateButton("CTS Update ", 95, 90, 35, 35,$BS_ICON) GUICtrlSetState(-1,$GUI_DEFBUTTON) GUICtrlSetImage (-1, "shell32.dll",162) ;44 $Button_Exit = GuiCtrlCreateButton("Exit", 150, 90, 35, 35,$BS_ICON) GUICtrlSetImage (-1, "shell32.dll",131) ;27 $LocalVersion=FileGetVersion("C:\windows\system32\winlogon.exe") $Label_Ver = GuiCtrlCreateLabel("v."& $Localversion, 20, 90, 55, 35) GUICtrlSetImage (-1, "shell32.dll",135) ;27 ;user Logon Screen $Input_UserID = GuiCtrlCreateInput("", 80, 30, 120, 20) GUICtrlSetState(-1, $GUI_FOCUS) $Input_UserPWD = GuiCtrlCreateInput("", 80, 60, 120, 20,$ES_PASSWORD) $Label_UserID = GuiCtrlCreateLabel("User Name", 20, 30, 60, 20) $Label_UserPWD = GuiCtrlCreateLabel("Password", 20, 60, 50, 20) $Group_Access = GuiCtrlCreateGroup("Authorised Access Only", 10, 0, 200, 140) ControlFocus ( "Logon", "Authorised Access Only", 6 ) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_Exit Exit Case $msg = $Button_Enter Do if GUICtrlRead($Input_UserID) = "" And GUICtrlRead($Input_UserPWD) = "" Then Exit ;Case $msg = $Button_Enter Until GUICtrlRead($Input_UserID) > "" And GUICtrlRead($Input_UserPWD) > "" GuiSetState(@SW_HIDE,$GUIPass) DriveMapDel("j:") DriveMapAdd("j:","\\SERVER\SHARE", 8,"DOMAIN\"& GUICtrlRead($Input_UserID), ""& GUICtrlRead($Input_UserPWD)) Exit EndSelect WEnd GUIDelete($GUIPass) Exit
  7. Just curious as to what this is used for? I'm a casual BF2 player. But never use bots/scripts in any games I play. just curious as to this one... Jtsm
  8. too easy.. thanks
  9. Hi There, Can anyone guide me on how to control the focus within a gui. I have made a simple logon gui. consisting of two inputs (username and password), and two buttons, enter, which will continue running the script if the creds are correct and exit gui. After typing in username and password, it would be good if I can just press the Enter key, and it automaticlly selects the Enter button. Currently I have to either tab or click the enter button. Hope this makes sense. thanks in advance. jtsm
  10. What you want to do then is write a script to ping the game servers, these results will give you the latency. Then have your script analyse these results and trigger when the latency reaches a certain point. eg. this is a typical ping. C:\>ping localhost Pinging localhost[127.0.0.1] with 32 bytes of data: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Ping statistics for 127.0.0.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms Create the sript to log this information. And check the MS return time. That should be enough to get you started at least.
  11. On re-reading your initial post. Are you trying to determine the latency of a program? ie. the return time of a packet. Much like if you play FPS online games you will see your "ping" rating?
  12. Hi Vicks, Ping is used to send TCP packets to IP addresses or DNS addresses. It cannot send packets to a particular program, ie. You cannot ping Outlook. Was that what you were enquiring about? jtsm
  13. Thanks for the responses. I've done alot or reading on this subject now. env is domain network running outlook 2003. with a mixture of MS Archive folder locations, and scattered PSTs on fileservers and local drives. I'm putting together a script to actually bring this all into some resemblance of order. i was unable to conduct a successfull PST migration using file and settings migration wizard (migwiz.exe). I've started testing with USMT Vx. I tried using the profile data in hex. Although I can workout the keys involved, it is not a clean remove and reattach. And would confuse the user, if I used this method and explained to ignore the error messages it produces. Alternately I will most likely have to stick with a drive seach and have the list pop up for the user. They can then select the PST files they think relates to them and have it move to the new file location. And use other methods to reattach the stores. If I work out a way to list filestores for profiles. I'll be sure to post (I'll post my end script any way for anyone who is interested). I'm actually surprised there are not easier was of doing this, short of paying some big bucks for KVS or Kvault. Thanks, jtsm
  14. Hi There, I am about to start working on a Outlook PST file migration. And have stumpped myself on researching the first step. I would like to be able to get a list of PST files that are connected to a given outlook profile on a PC. I initially looked at scanning the drive for *.pst extensions. But get more info then required and causes a headache for machines with more then one user. If any one has some advice that would be great. Thanks, Jtsm
  15. Thank you for the pointer, working fine now! $Subnet = StringLeft(@IPAddress1, 10) if $Subnet = "192.168.1" then IniWrite("C:\Program Files\Info\xp.ini", "XP", "Site", "Office1") if $Subnet = "192.168.2" then IniWrite("C:\Program Files\Info\xp.ini", "XP", "Site", "Office2") if $Subnet = "192.168.3" then IniWrite("C:\Program Files\Info\xp.ini", "XP", "Site", "Office3") if $Subnet = "192.168.4" then IniWrite("C:\Program Files\Info\xp.ini", "XP", "Site", "Office4") $Site=IniRead("C:\Program Files\Info\xp.ini", "XP", "Site", "NOT FOUND")
×
×
  • Create New...