Jump to content

sister_annex

Members
  • Posts

    899
  • Joined

  • Last visited

Everything posted by sister_annex

  1. OK, try this @echo off for /l %%i in (1,1,33) do ( start "Addreg ICTSUITE%%i" reg add "\\ICTSUITE%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v AutoAdminLogon /t REG_SZ /d 1 start "Addreg ICTSUITE%%i" reg add "\\ICTSUITE%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultUserName /t REG_SZ /d [usernamehere] start "Addreg ICTSUITE%%i" reg add "\\ICTSUITE%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultDomainName /t REG_SZ /d [domainnamehere] start "Addreg ICTSUITE%%i" reg add "\\ICTSUITE%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultPassword /t REG_SZ /d [passwordhere] start "Addreg ICTSUITE%%i" reg add "\\ICTSUITE%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v AutoLogonCount /t REG_DWORD /d 1 ) the only thing it may not do is add the preceeding 0 from machine 1 to 9 we are naughty here and do not put the 0 in for this very reason. basically the code steps from 1 to 33 adding/ altering the regentries specified then when the child attempts to login it should automatically log in for them - until they reboot... fingers crossed. same as before add it to a batch file and run it teaches me to read my code through before I post next time good luck
  2. the link goes to someones OWA inbox lol Edit: Copying the text works though
  3. try this, @echo off if "%1" == "" goto end for /l %%i in (1,1,33) do ( start "Addreg %%i" reg add "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v AutoAdminLogon /t REG_SZ /d 1 start "Addreg %%i" reg add "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultUserName /t REG_SZ /d [usernamehere] start "Addreg %%i" reg add "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultDomainName /t REG_SZ /d %1%%i start "Addreg %%i" reg add "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultPassword /t REG_SZ /d [passwordhere] start "Addreg %%i" reg add "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v AutoLogonCount /t REG_DWORD /d 1 ) :end Copy this into a bat file and give it a go. Please note this isn't tested and i would test it first but is should work and only log them in once - I think not used it for a while but giver it a go and see what happens call the batch file from cmd and give the room name i.e. ICTSUITE as an arguement Let me know how you get on
  4. how are the computer names assigned? i will have a dig around our old scripts to see if there is anything that may fit the bill
  5. I completley forgot about doing it that way... whoops
  6. What is it you are looking to re-write - or more plainly what does the program do?
  7. ah, I know you can run processes as other users in .net but i dont know vb6 that well
  8. does the program have to run under their account?? Mark
  9. does my brothers ex count??
  10. typing text speak into forums or social network sites!!
  11. there is also richcopy this may help - doesn't do permissions though if you were looking at moving those too Free Utility: RichCopy, an Advanced Alternative to RoboCopy Mark
  12. an example would be if your website address was Google and your internal domain name was google.com DNS sometimes gets its knickers in a twist as it tries to resolve the IP address to the local domain and not go externally. I presume you are using a windows server (if not i apologise as i only know windows) try adding the IP address of the website into the host file of teh server. This has worked for us in the past as our LEA uses the same IP addressing that we do and the LEA website was being redirected to an internal IP. Adding the IP to the host file fixed this for us Hope this helps
  13. last time i broke my glasses i couldn't be bothered to replace them so got my eyes lasered
  14. Does your school domain mirror your internal DNS Name?
  15. unfortunatley i am still quite a noob at .net and mostly pick up what i can from forums and coding websites. but i will keep my eyes peeled for anything that matches your problem
  16. why not, for x as integer = 0 to inumtxt 'or your maximum number dim t as new textbox with t .name = "name" .text = "text" .properties = "etc" end with me.controls.add(t) next i'm sure i have done it like that before Mark
  17. hmmm, do you have any more code so I put it in to context? Cheers
  18. If i think right shouldn't it be Dim value as New TextBox just a thought Mark
  19. well looking at it I think my holidays are not that bad... we have just been allowed to take two non consecutive weeks during term time to allow us to catch up on the work that we cannot do during term time. I am full time and there are 5 of us on the office and we are all the same.
  20. Guess... Sister Annex is me
×
×
  • Create New...