Jump to content

uchacker11

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by uchacker11

  1. Thanks we are exploring options with permissions and group policy. I figured it wasn't really easy to implement but it was worth a shot. The script could easily cause data loss if the users don't save, but I was told to make it this way so that we could reclaim the license that is being tied up. Thanks for all the suggestions.
  2. I have a script to monitor a process on our computers and if the process has been idle for 4 hrs the script will kill the process. The script works great except that users are opening Task Manager and killing the process. Is there a way to have the script log when the scripts process is killed?
  3. If I am logged in as an administrator reg_editor.exe works great but if I am logged in as a normal user and right-click and select RunAs an administrator it doesn't work. The information will be the same for all the users, the env var just points to a customization file on the network that the users will update as necessary. This script will just make applying the new customizations easier. 64-bit XP is the OS
  4. Thanks for your replies. OK I decided to create a script and give the users a starter script that calls the editing exe as an admin. However this isn't working. Starter.exe: RunAswait("domain_admin","domain.com","password",1,"c:Reg_editor.exe") Sleep(1000) Reg_editor.exe $ToolsPath=RegRead("HKEY_LOCAL_MACHINESYSTEMControlSet001ControlSession ManagerEnvironment","USER_SCADE_TOOLS_PATH") if ($ToolsPath=("")) Then MsgBox(4096, "Error","Environment Variable USER_SCADE_TOOLS_PATH not defined for " & @UserName & " on machine " & @ComputerName) Else regwrite("HKEY_LOCAL_MACHINESOFTWAREEsterel TechnologiesCustomStudioExtensionsCUSTOM_SCADE_TOOLS","PathName","REG_SZ",$ToolsPath) RegWrite("HKEY_LOCAL_MACHINESOFTWAREEsterel TechnologiesStudio 2Work InterfacesCUSTOM_SCADE_TOOLS","PathName","REG_SZ","ETCUST.DLL") Sleep(5000) EndIf When I run Starter.exe it successfully starts reg_editor.exe but nothing is changed. I believe that the problem lies with Reg_editor or there is a permissions issue.
  5. I am trying to create a script that will allow users to edit the HKLM registry keys. The Users do not have admin access to these machines and they will have to edit these keys fairly often. I have looked at RunAs() but can't figure out how to make it work the way I want. does anyone know how to get this to work?
×
×
  • Create New...