Jump to content

theunknown

Member
  • Posts

    14
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Australia

Everything posted by theunknown

  1. Here's the code I use to force an auto domain logon. It's included in RunOnceEx.cmd at T-13. ::SETS AUTOLOGON KEY SET KEY=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon ::ENABLES SINGLE LOGON REG ADD "%KEY%" /f /v DefaultDomainName /t REG_SZ /d DOMAIN REG ADD "%KEY%" /f /v AltDefaultDomainName /t REG_SZ /d DOMAIN REG ADD "%KEY%" /f /v CachePrimaryDomain /t REG_SZ /d DOMAIN REG ADD "%KEY%" /f /v DefaultUserName /t REG_SZ /d USERNAME REG ADD "%KEY%" /f /v AltDefaultUserName /t REG_SZ /d USERNAME REG ADD "%KEY%" /f /v DefaultPassword /t REG_SZ /d PASSWORD REG ADD "%KEY%" /f /v AutoLogonCount /t REG_DWORD /d 1 REG ADD "%KEY%" /f /v AutoAdminLogon /t REG_SZ /d 1 REG ADD "%KEY%" /f /v DontDisplayLastUserName /t REG_DWORD /d 0 REG ADD "%KEY%" /f /v ShowLogonOptions /t REG_DWORD /d 1 REG DELETE "%KEY%" /f /v DcacheUpdate Regards, theunknown
  2. Sounds like ive been a little misunderstood. I didnt come here complaining, merely to explore what was causing the issue. On the off chance you missed it, ive also presented a solution that seems to have no side effects. Im here sharing it with someone else in my situation, how is it that people find that a problem? Since my posts no one has offered anything constructive... so why bother? On a more related matter, a slight explanation of those key's would be appreciated. Because from what i've found, its not necessary to use the command prompt at all. The code below should achieve the same thing without the prompts that have brought us here. [LD] HKU,".DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","nltide1" .... HKU,".DEFAULT\Software\Microsoft\Windows\CurrentVersion\RunOnce","nltide1",0x00020000,"rundll32 advpack.dll,LaunchINFSectionEx nLite.inf,C,,4,N ... syssetup.dll and syssetub.dll are both present even without the move command, rundll32 can be executed by itself devoid of any reliance on cmd.exe, and i see no reason for the exact same line to be run twice. i'll give it a test and report back with the results. Regards, theunknown
  3. Deleted, didnt realise this made it through
  4. My problem is, in a domain environment every time a new user logs in these three windows appear. That normally wouldnt worry me, but because of my GP's each of these windows present my users with "The command prompt has been disables, Please See your administrator" and requires a key press to continue. Im not sure how familiar you are with general user ignorance, but this would send them into a panic. If these keys could be run ONLY on the first login, that'd be fine. But in their current position (every new user) they're a problem for me. Regards, theunknown
  5. Im pretty certain your problem is a result of IE7, in the Application Installs thread i've presented a solution that ive found does wonders. Regards, theunknown
  6. Just ran into this issue myself, strangely deleting [what i believe are] the offending keys from the registry dosnt resolve the issue. Unfortunately in my situation (large network with cmd.exe disable) this would results in three black dialogs telling users they're doing something they shouldnt at every logon, looking forward to a permenant solution. On that note, I believe these keys are imported from NLITE.INF, i've removed the appropriate lines and am in the process of testing now... will udpate with results when i have them. As for your RunOnceEx issue, im betting you install IE7 somewhere along the track... checkout the Application Installs thread for a solution. EDIT: Removing the following lines from i386\NLITE.INF resolves the problem. [LD] HKU,".DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","nltide1" HKU,".DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","nltide2" .... HKU,".DEFAULT\Software\Microsoft\Windows\CurrentVersion\RunOnce","nltide3",0x00020000,"cmd.exe /C rundll32 advpack.dll,LaunchINFSectionEx nLite.inf,C,,4,N ... HKU,".DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","nltide1",0x00020000,"cmd.exe /C move /Y ""%SystemRoot%\System32\syssetub.dll"" ""%SystemRoot%\System32\syssetup.dll""" HKU,".DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","nltide2",0x00020000,"cmd.exe /C rundll32 advpack.dll,LaunchINFSectionEx nLite.inf,L,,4,N" Not exactly sure what those DLL's are required for, but so far no adverse effects. Regards, theunknown
  7. As im sure we're all aware by now, IE7 seems to break RunOnceEx. Given the large dependency i have on the feature (RIS, 350+ Machines With Many Different App Configs) i set about finding a solution so i could install IE7 at the T-13 stage and have my apps installed at first login. The solution's reasonably simple, grab a copy of IERNONCE.DLL from before IE7 (Latest I Have is 6.0.2900.2180) and replace the one found in the IE7 installer with that version. Setup completes successfully without breaking the usefull RunOnceEx keys. I'm aware nLite can integrate it (reportedly without breaking RunOnceEx), but im not a fan of nLite's method's. So until a better solution is devised this will tie me over. Hopefully someone finds the information above useful. If not, no harm done. Regards, theunknown
  8. slight update for those interested, i ran into the need to exclude apps from certain rooms, this is the fix to allow it. change ::APPLYS APPROPRIATE KEYS FOR SITE/CURRENT ROOM/MACHINE for /f "tokens=1* delims=-" %%a in ("%COMPUTERNAME%") DO SET ROOMNAME=%%a if exist RoomConfig\ALLROOMS.txt for /f "tokens=* delims= " %%a in (RoomConfig\AllRooms.txt) DO if not '%%a'=='' call :%%a if exist RoomConfig\%ROOMNAME%.txt for /f "tokens=* delims= " %%a in (RoomConfig\%ROOMNAME%.txt) DO if not '%%a'=='' call :%%a if exist RoomConfig\%COMPUTERNAME%.txt for /f "tokens=* delims= " %%a in (RoomConfig\%COMPUTERNAME%.txt) DO if not '%%a'=='' call :%%a to ::APPLYS APPROPRIATE KEYS FOR SITE/CURRENT ROOM/MACHINE for /f "tokens=1* delims=-" %%a in ("%COMPUTERNAME%") DO SET ROOMNAME=%%a if not exist Exclude md Exclude if exist RoomConfig\ALLROOMS.txt for /f "tokens=1* delims= " %%a in (RoomConfig\AllRooms.txt) DO if not '%%a'=='' if '%%b'=='NO' (echo.>Exclude\%%a.txt) else echo %%a>>temp.txt if exist RoomConfig\%ROOMNAME%.txt for /f "tokens=1* delims= " %%a in (RoomConfig\%ROOMNAME%.txt) DO if not '%%a'=='' if '%%b'=='NO' (echo.>Exclude\%%a.txt) else echo %%a>>temp.txt if exist RoomConfig\%COMPUTERNAME%.txt for /f "tokens=1* delims= " %%a in (RoomConfig\%COMPUTERNAME%.txt) DO if not '%%a'=='' if '%%b'=='NO' (echo.>Exclude\%%a.txt) else echo %%a>>temp.txt if exist temp.txt for /f "tokens=* delims= " %%a in (temp.txt) DO if not exist Exclude\%%a.txt call:%%a if exist temp.txt del /F /Q temp.txt if exist Exclude RD /S /Q Exclude this way you can do RoomConfig\C2-04.txt APP2 NO and computer C2-04 wont get APP2, this can be done for site/rooms/individual computers. regards, theunknown
  9. I found auto domain logons to be a problem when using only those four keys. Sometimes it would work and the rest persisted with a local logon. The following keys are the only way i managed to successfully auto logon to the domain everytime. ::SETS AUTOLOGON KEY SET KEY=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon ::ENABLES SINGLE ADMIN LOGON REG ADD "%KEY%" /f /v DefaultDomainName /t REG_SZ /d DOMAIN REG ADD "%KEY%" /f /v AltDefaultDomainName /t REG_SZ /d DOMAIN REG ADD "%KEY%" /f /v CachePrimaryDomain /t REG_SZ /d DOMAIN REG ADD "%KEY%" /f /v DefaultUserName /t REG_SZ /d USERNAME REG ADD "%KEY%" /f /v AltDefaultUserName /t REG_SZ /d USERNAME REG ADD "%KEY%" /f /v DefaultPassword /t REG_SZ /d PASSWORD REG ADD "%KEY%" /f /v AutoLogonCount /t REG_DWORD /d 1 REG ADD "%KEY%" /f /v AutoAdminLogon /t REG_SZ /d 1 REG DELETE "%KEY%" /f /v DcacheUpdate that gets run at T-13 along with my other RunOnceEx commands. regards, theunknown
  10. check out the scripts posted Here particularly the one by myself, it describes a method to do network install's and a management system for various room configurations. Regards theunknown
  11. im not aware of a method to remove it completely, however in my RunOnceEx.cmd i use this line... REG ADD "HKLM\SYSTEM\CurrentControlSet\Services\srservice" /f /v Start /t REG_DWORD /d 4 Essentially it disables the service so when XP starts for the first time post install, system restore is disabled. regards, theunknown
  12. Not sure how many people are interested in my RIS application install method, but figured i'd share it just in case. Basically my RunOnceEx.bat contains all the switches required for all available applications to install across my entire network (350+ machines). When it executes because of my site naming convention (EG C2-01) it breaks up the name to determin the room and required room config. From there it parses a pre set list for that room of what is needed and applies the appropriate keys to RunOnceEx. AutoLogon keys are added for a single logon then the machine is restarted. It logs on, installs all the appropriate applications restarts again ready for use. Here's an example of the scripts, mine carries about 50 different apps but for explaining ive cut most of it out. RunOnceEx.bat cmdow @ /HID @echo off ::SETS AUTOLOGON KEY SET KEY=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon ::ENABLES SINGLE ADMIN LOGON REG ADD "%KEY%" /f /v DefaultDomainName /t REG_SZ /d DOMAIN REG ADD "%KEY%" /f /v AltDefaultDomainName /t REG_SZ /d DOMAIN REG ADD "%KEY%" /f /v DefaultUserName /t REG_SZ /d USERNAME REG ADD "%KEY%" /f /v AltDefaultUserName /t REG_SZ /d USERNAME REG ADD "%KEY%" /f /v DefaultPassword /t REG_SZ /d PASSWORD REG ADD "%KEY%" /f /v AutoLogonCount /t REG_DWORD /d 1 REG ADD "%KEY%" /f /v AutoAdminLogon /t REG_SZ /d 1 REG ADD "%KEY%" /f /v DontDisplayLastUserName /t REG_DWORD /d 0 ::SETS RUNONCEEX TITLE AND WORKING KEY SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Installing Applications" /f ::CREATES CLEANUP.CMD set CLEANUPATH=%SystemDrive%\CleanUp.cmd echo cmdow @ /HID>%CLEANUPATH% echo @echo off>>%CLEANUPATH% ::MOUNTS APPLICATION WORKING DIRECTORY REG ADD %KEY%\001 /VE /D "Mounting Applications Folder" /f REG ADD %KEY%\001 /V 1 /D "NET USE Y: \\RISServer\Applications$" /f ::APPLYS APPROPRIATE KEYS FOR SITE/CURRENT ROOM/MACHINE for /f "tokens=1* delims=-" %%a in ("%COMPUTERNAME%") DO SET ROOMNAME=%%a if exist RoomConfig\ALLROOMS.txt for /f "tokens=* delims= " %%a in (RoomConfig\AllRooms.txt) DO if not '%%a'=='' call :%%a if exist RoomConfig\%ROOMNAME%.txt for /f "tokens=* delims= " %%a in (RoomConfig\%ROOMNAME%.txt) DO if not '%%a'=='' call :%%a if exist RoomConfig\%COMPUTERNAME%.txt for /f "tokens=* delims= " %%a in (RoomConfig\%COMPUTERNAME%.txt) DO if not '%%a'=='' call :%%a ::UNMOUNTS APPLICATION WORKING DIRECTORY REG ADD %KEY%\998 /VE /D "Removing Applications Folder" /f REG ADD %KEY%\998 /V 1 /D "NET USE Y: /DELETE" /f ::FINALIZES CLEANUP.CMD AND ADDS IT TO RUNONCEEX echo SHUTDOWN /R /M \\%COMPUTERNAME% /T 02 /f>>%CLEANUPATH% echo DEL /F /Q %CLEANUPATH%>>%CLEANUPATH% REG ADD %KEY%\999 /VE /D "Cleaning up and Restarting" /f REG ADD %KEY%\999 /V 1 /D "%CLEANUPATH%" /f ::EXITS RUNONCEEX SCRIPT EXIT :APP1 REG ADD %KEY%\010 /VE /D "Application 1" /f REG ADD %KEY%\010 /V 1 /D "App1 Install Path" /f goto :eof :APP2 REG ADD %KEY%\020 /VE /D "Application 2" /f REG ADD %KEY%\020 /V 1 /D "App2 Install Path" /f goto :eof :APP3 REG ADD %KEY%\030 /VE /D "Application 3" /f REG ADD %KEY%\030 /V 1 /D "App3 Install Path" /f goto :eof :APP4 REG ADD %KEY%\040 /VE /D "Application 4" /f REG ADD %KEY%\040 /V 1 /D "App4 Install Path" /f goto :eof RoomConfig\ALLROOMS.txt APP1 APP2 RoomConfig\C2.txt APP3 RoomConfig\C2-03.txt APP4 So in the above example my entire site recieves APP1 & APP2 - Room C2 recives APP3 - and only machine 3 in room C2 recieves APP4. Its far more versatile than that, if you want to add clean up lines to the cleanup script depending on what applications you install a line such as echo DEL C:\*.tmp>>%CLEANUPATH% under :APP4 would delete all .tmp files only when you specify APP4 to be installed. Hopefully someone finds it useful, i hated all the alternatives requiring me to replicate install code for each different config. now all i need to do when i get new machines is name the machines right and create a new txt file in roomconfig and RIS + This script looks after the rest. New applications i simple add the silent install switch once to RunOnceEx.cmd, reference in the appropriate room txt files and when the machines are next rebuilt that app is included. hopefully someone finds it useful, and if you need more explanation ill be more than happy to help out. regards theunknown
×
×
  • Create New...