Jump to content

oldo

Member
  • Posts

    25
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

About oldo

oldo's Achievements

0

Reputation

  1. Finally fixed it with this: http://www.bootix.com/support/problems_sol...dlines_txt.html Different error message, but same problem.
  2. Hi, I created an unattended XP setup, via batch\vbs scripts which i've been using for a long time. Recently I decided to change some things (cut out less components from windows), so i started with the original gold image, cut it down as necessary, and configured the scripts. Simple, right? Wrong. Drive mapping now fails at T-12, and i have no idea why! Basically the premise is: - cmdlines.txt: Load RunOnceEx.cmd (this works fine) [Commands] "rundll32 advpack.dll,LaunchINFSection nLite.inf,U" "RunOnceEx.cmd" - RunOnceEx.cmd: Map Z: to network location using a script that is stored on the image, and run 01PhaseOne.cmd (this doesn't work, because the drive is never mapped) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: START OF SCRIPT :: Written by Chris Joseph, 2007. :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: This script maps a network drive to deployment server, initializes local :: :: logfile, and finally calls the 01PhaseOne.cmd script located on build server.:: :: :: :: It is called from cmdlines.txt which is called at T-12 during windows setup. :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Minimize script cmdow @ /min @echo off :: Set script constants SET cid_path=Z:\OS\ SET phase1_log_file=%systemdrive%\maint\logs\01PhaseOne.log :: Map network drives cscript %systemdrive%\maint\scripts\mapdrives.vbs //NOLOGO >> %phase1_log_file% :: Initializing log files ECHO **************************************************************** >> %phase1_log_file% ECHO ** Phase One Log File ****************************************** >> %phase1_log_file% ECHO **************************************************************** >> %phase1_log_file% ECHO ******************** Logging Started: %Date%, %Time% ** >> %phase1_log_file% ECHO.>> %phase1_log_file% :: Begin Phase 1 Echo %DATE% %Time% ^> Begin Phase 1^. >> %phase1_log_file% Echo.>> %phase1_log_file% Echo %DATE% %Time% ^> Calling Installation routines^. >> %phase1_log_file% :: Calling installation routines. %cid_path%01PhaseOne.cmd EXIT :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: END OF SCRIPT :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: - mapdrives.vbs mapdrives__blankpass_.vbs.txt This script works perfectly fine if i run it after first login, but the drive does not map at T-12. As you can see i've fannied about with it to try to diagnose the problem. I have confirmed that the server is online & reachable, and if i amend RunOnceEx.cmd to ping the server, and run "ipconfig /all" and dump the output to screen, this works fine. So there is no connection problem. It's only the act of connecting to a network location that does not work. The account in question does have full access to the network location that i am trying to map. I added some code to mapdrives.vbs to confirm that necessary services are infact running. The output from the script looks like this: **************************************************************** ** MapDrives Log File ****************************************** *********************** Logging Started: 15/10/2008, 01:47:55 ** 15/10/2008 01:47:55 Instruction: Set strHostname variable 15/10/2008 01:47:55 Successful: Set strHostname variable - JNUK01C003 Logical Disk Manager = 1 Starting Service: Logical Disk Manager HTTP SSL = 1 Starting Service: HTTP SSL Remote Registry = 1 Starting Service: Remote Registry Secondary Logon = 1 Starting Service: Secondary Logon Distributed Link Tracking Client = 1 Starting Service: Distributed Link Tracking Client Windows Time = 1 Starting Service: Windows Time Windows Installer = 1 Starting Service: Windows Installer IPSEC Services = 1 Starting Service: IPSEC Services Workstation = 4 Server = 4 Wireless Zero Configuration = 1 Starting Service: Wireless Zero Configuration SSDP Discovery Service = 1 Starting Service: SSDP Discovery Service Task Scheduler = 1 Starting Service: Task Scheduler 15/10/2008 01:49:04 Instruction: Map UNC Path to Drive Letter 15/10/2008 01:49:04 Unsuccessful: Map UNC Path to Drive Letter - Path: \\JNUK01S001\build$, DriveLetter: Z:, ServerName: JNUK01S001, DomainName: JONET 15/10/2008 01:49:04 Error 0x800704C6: The network is not present or not started. The "The network is not present or not started." usually appears when Client for Microsoft Networks is not installed properly, but this shouldn't be the case since everything works after first logon, and i've sucessfully mapped a drive at this stage many times before! Any ideas anyone? I'm pulling my hair out with this one! Thanks. CJ
  3. Moved to: http://www.msfn.org/board/Problem-Unable-m...tml#entry804055
  4. I use a few simple lines in my cleanup batch script: SET KEY2="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" :: Delete Auto Admin Logon credentials and replace with policy defualt REG DELETE %KEY2% /V DefaultPassword /f REG DELETE %KEY2% /V DefaultDomainName /f REG DELETE %KEY2% /V AutoAdminLogon /f REG DELETE %KEY2% /V ForceAutoLogon /f
  5. Great stuff, thankyou! Just for completeness, how much trouble is it to do add a &Systemdrive option for Log_path?
  6. Thanks for the quick response My unattended setup connects to the network at runoncex and runs the rest of the setup from there (so i can modify the vast majority of the setup process centrally). Currently all of my apps are installed from packages located on the server, and i would like to do the same with drivers All logging is sent to %systemdrive%\maint\log\ on the client machine, but at present this is not possible with your app - i could only log to either the root of C:\, or to the network directory in which the program is running.. i'd like to keep things consistant and output to the same directory as my other log files. Being able to customize the name of the logfile would also be nice! Again, thanks for the great amount of work you've obviously put into this! Chris
  7. Any chance of a logfilepath setting? Lovely program, appreciate the hard work!!
  8. How do you install the theme? Integrated with nlite? Scripted during install? I do.. In winnt.sif: [Shell] CustomDefaultThemeFile="%WinDir%\Resources\Themes\System.theme" Then (at the RunOnceEx stage!) i copy my theme from a server location previously mapped to the Z drive.. :: Install themes XCOPY /E /Y \Z:\1\conf\resources\themes\*.* "%systemdrive%\WINDOWS\Resources\Themes\" Alternatively you can just put these files on the image in $OEM$\$$\Resources\Themes\ so they they are copied during the initial file copy. I suggest putting the wallpaper you are using in the $OEM$\$$\Web\Wallpaper\ folder also! Then the file structure should be like so: ..\Resources\Themes\System.theme ..\Resources\Themes\System\System.msstyles ..\Resources\Themes\System\<rest of files inc any sub-dirs> and the contents of System.theme would include the lines (will differ between themes): [Control Panel\Desktop] Wallpaper=%WinDir%\Web\Wallpaper\system.bmp TileWallpaper=0 WallpaperStyle=2 Pattern= [VisualStyles] Path=%WinDir%\resources\Themes\System\System.msstyles ColorStyle=Windows2 Size=NormalSize Works perfectly for me... hope this helps.
  9. manual here: http://www.en.nod32.ch/download/manuals.php
  10. It's the setup.xml file that you need to customize. Best wy to do it.. get youorself an evaluation version of enterprise edition with remote administrator from here: http://www.en.nod32.ch/download/ You can configure a package exatly as you want it
  11. In a domain, two machines cannot have the same hostname.. if you build another machine with the same computer name it is likely to cause this conflict. Make sure that each machine is created with a hostname that is not currently used on the domain.
  12. you might want to delete these from the default profile during the RunOnceEx stage of setup to. Otherwise any new profile that is created will inherit its start menu items from there.
  13. Yeah.. not a fan of auto-it or similar languages myself. Seems a bit lazy to me
  14. Tested again, on a fresh VM.. still works fine. Asside from repackaging, i can't thing of another way to do this. Either way.. it works, and i think i can live with it By all means.. add the other line as a safe guard. Wouldn't want your users complaining they have popups of the Hoff playing volleyball now, would you?
×
×
  • Create New...