Jump to content

Kondro

Active Members
  • Posts

    28
  • Joined

  • Last visited

Recent Profile Visitors

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

Kondro's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I figured it out - changed domin users call to '"Domain Users"'
  2. This is great! Ive been looking for a way to change folder permisions for our apps the require Admin rights to run, but without giving full local admin rights. it works great when i input my AD user name but does not work if i enter "Domain Users". I modified the script to not promp and directly told it what user and folder to modify. (Script Below) Any idea what i could try to make it find a AD group VS a user? $UID = "Domain Users";InputBox("Grant Access", "Enter the user ID") $dir = "C:Temp";("Directory", "UNC path to parent directory") $perm = "W";InputBox("Level of Access", "Enter the level of Access: C(hange), F(ull control), R(ead only), W(rite)") While 1 $dir2 = "C:Temp";FileSelectFolder("Choose a folder.", $dir, 1) RunWait( 'CACLS "' & $dir2 & '" /E /G ' & $UID & ':' & $perm, "", @SW_HIDE ) $ok = MsgBox(4, "Complete", "Would you like to specify another directory?") If $ok = 7 Then ExitLoop WEnd MsgBox(0, "Access Granted", "Access has been granted to the specified directories.")
  3. Im trying to write into a script logic to determine if the current OS is Windows 7 x64 vs. any other operating system. It seems the Windows 7 build numbers are the same for x86 and x32 (7600 or 7601 for SP1) Anyone know how I can accomplish this? Thanks.
  4. Thanks for the help, that works.
  5. Hi, im trying to write a simple script to have a user enter an I.P. address and return the host name in a message box. im getting "unbalanced paranthesis expression" at this location of the script below. $HostName = (@ComSpec & " /c " & "nbtstat -a " & $IP,< please help. #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_icon=..\Untitled-4.ico #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <GUIConstants.au3> $IP=InputBox("I.P. to Hostname", "Please enter the I.P. to lookup", "","", -1, -1, 0, 0) $HostName = (@ComSpec & " /c " & "nbtstat -a " & $IP, @SystemDir, @SW_HIDE) MsgBox(4096,"HostName","The Host name is" & $HostName)
  6. nevermind, i added this and it works fine if nothing is entered, or the cancel button is clicked, or if the Close X is clicked $nogood=("") If $Computername=$nogood Then Exit EndIf
  7. Thank you, the script works now but found another snag, if i dont put anything into the msg box or click cancel or close it reboots my computer, LOL for a moment there i thought i may have rebooted all the computers in the domain... LOL but it just rebooted mine. ANy ideas on a way to have it exit if no value has been entered or/and if the cancel/X button is clicked?
  8. Thank you both! and thanks for the \\ tip, i was thinking that i would have to instruct the end user to put the slashes in, if it can be added to the script and works that will be AWESOME! Thank you again!
  9. hello, i have a script with a full GUI that works great for slecting computers by checkbox and then clicking a button to reboot them. the checkboxes are each pointed to a different machine staically by Func. code is like this for each. Run (@ComSpec & " /c " & "shutdown -r -m \\computername -t 30", @SystemDir, @SW_HIDE) Im trying to write a smaller script for a different purpose but similar effect. I want the script to prompt the user for the computer name to reboot and then have it reboot that machine. so here is what i wrote, but it does not work. it prompts for the computer name but does not send the reboot command to that machine. I know its likely a small syntax error, but i get no error from Scite when i run it. $Computername=InputBox("Reboot Program", "Please enter the computername to reboot", "","*", -1, -1, 0, 0) Run (@ComSpec & " /c " & "shutdown -r -m" & $Computername & "-t 30", @SystemDir, @SW_HIDE)
  10. no, sorry. i have reviewed the help files and the online functions definition but i am missing something. below is what i have in my script. the registry key does exist on the test machine but it still processes the script. Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) Sleep(2000) If RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B2A9B452-2621-49B0-A474-AB01F9F74202}", "Oracle 11 Client") <> "" Then ProcessClose("AutoIt3.exe") ;also tried "Exit" here. EndIf Run('\\hp-con-ecm\smspkge$\va100108\Integra\Oracle81Eradicator.exe') ProcessWaitClose("oracle81eradicator.exe") ShellExecuteWait("\\hp-con-ecm\smspkge$\va100108\integra\Oracle 11 Client.msi", "/passive /norestart") MsgBox(4096,"Hill Phoenix Application Update", "Your HP Apps Software has been updated, Please reboot your computer")
  11. I have hopefully an easy question for the experts. I have a script written to install an application update. this are soon to be needed for about 100 users. i plan to call my exe via logon scripts. I need to have the first line of the script look for a reg key for the app and if it exists then terminate the script or if the reg key is absent then move on to the installs. please help. Thanks.
  12. Hello, I need to add to an existing script the ability to query a list of servers for system uptime and output to a variable and or a txt file. any ideas? Each server is already a variable as Dim $Server1, etc.
  13. Thanks!, the one from the first link is perfect for me.
  14. Is it possible to make it so when a compiled .exe is opened it asks for a password to open the program?
×
×
  • Create New...