Jump to content

keilamym

Active Members
  • Posts

    132
  • Joined

  • Last visited

Recent Profile Visitors

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

keilamym's Achievements

Adventurer

Adventurer (3/7)

1

Reputation

  1. my script did have some error checking already but most of the script was removed to make the question easier to ask. in my script however i found a condition where if the profile guid subkey didnt have a value, it would delete the entire root key, which would be bad. lol. granted, the script performs a backup of the keys first but id rather not have to use it. again, thanks everyone for your help.
  2. I tried @Subz options first because it seemed the easiest for this novice. I also added more error checking @caramen and everything seems to be working. Thank you. both of you are awesome.
  3. Thank you both. Your help is REALLY appreciated. it's almost 4am here so I'll do some test later today "as time permits" and report back
  4. I'm doing a RegEnumKey to look for a string and delete the key if it finds them, and it works. This is a snippet of the entire script.     ; Loop from 1 to 50 times     For $i = 1 To 50         $sSubKey = RegEnumKey("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList", $i)         If StringInStr($sSubKey, $s_keyval) Then MsgBox (64, "  CORP.FOX  Profile  Cleanup", "Delete   " & $pguid & $guid)         If StringInStr($sSubKey, $s_keyval) Then _FileWriteLog ( $sLogPath, "Running RegDelete " & " (" & $plist & $sSubKey & ")")         If StringInStr($sSubKey, $s_keyval) Then RegDelete($plist & $sSubKey)        Next The problem I'm having is, when the script sees the string I'm searching for, the script deletes the registry key, BUT it also breaks the loop. So if there's two keys with the string, it wont find the second regkey unless i re-run the script. Can anyone provide some assistance on how I can delete the key but not break the loop. Thanks in advance.
  5. FYI. I found what I needed via Google. Thanks again.
  6. Is there a way to copy text that's populated in a message box? I've searched the forum but cant seem to find that option for msgbox specifically. For example: I query the machine for some values and populate a msgbox window. Sample below.. TCPStartup()     $sIP = TCPNameToIP(@ComputerName) TCPShutdown() Local $String = StringUpper( @UserName ) MsgBox (64,"  " & @LogonDomain & " \ " & $String , "Hostname =" & @ComputerName & "   IP =" & $sIP) Then I can instruct the user to copy and paste the info from the msgbox into a different form for something else. Thank You
  7. Thank You
  8. FYI: i was able to figure this out.
  9. after the post, i found GUICtrlCreateEdit and put this sample together. if i could take the list and place it into an array, I would still need to place the device names into an array and run a loop for commands. #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Example() Func Example() GUICreate("My GUI edit") ; will create a dialog box that when displayed is centered Local $list = GUICtrlCreateEdit("", 176, 32, 121, 197, $ES_AUTOVSCROLL + $WS_VSCROLL) GUISetState(@SW_SHOW) Send("{END}") $Submit = GUICtrlCreateButton("Submit", 100, 350, 90,40) $cancel = GUICtrlCreateButton("Exit", 200, 350, 90,40 ) While 1 $listview=GUICtrlRead ($list) Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Exit Case $cancel ExitLoop Exit Case $Submit MsgBox (4096,"test",$listview) EndSwitch WEnd GUIDelete() EndFunc ;==>Example again, any help would be appreciated.
  10. I need to run remote commands on multiple devices. id like copy a list of devices into an inbox like this. Computer1 Computer2 Computer3 Computer4 Computer5 Then have and tool execute some commands on all the devices. Is there a function to allow the copy/paste into a box to create a device target list? I've looked and opened a LOT of sample scripts but can't seem to find what I'm looking for. All the input box examples i find are for single line entries. Maybe i'm just missing it? Thanks in advance. Keilamym
  11. my techs want wants a tool so they can input a list of computer names, then I can have scripts run on each computer. in one case, I need to run the script on the actual name but in other cases, I need to add a value to the end of the computer name. For example Computer1 Comptuer1$ Can someone send me to a sample script or tell which AutoIt command I would need to research. I've written many autoit scripts but never had to create an inputbox for multiple devices. maybe I can save the computer list to a tempfile and have the script pull devices from the tempfile? any and all help is appreciated.
  12. crap Subz... why didn't I think of that. Thank you.
  13. hi everyone. quick question. is there a function or method to return the local IP address. I created a simple script that provides a message box with the computer name. Id like to add the IP address to the message box but I don't see a function for it, and I didn't see anything when I searched the forum. any help you could provide is appreciated.
  14. file delete worked... I really feel like a newbie for that one.. it looks like this. FileDelete(@LocalAppDataDir & "MicrosoftOutlook*.ost")
  15. lol.. Melba23... . I swear I looked in my help file.. lol... thanks As for FileDelete.. I read the *.* but i'll check for something like *.ost..
×
×
  • Create New...