Jump to content

pmcx9

Member
  • Posts

    164
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by pmcx9

  1. it doesnt put a tick in the box "password never expires" like my way does hard for me to check as the password prompts dont begin for about 14 days
  2. just changed it to this and it works Const ADS_UF_DONT_EXPIRE_PASSWD = &h10000 strDomainOrWorkgroup = "MSHOME" strComputer = "OEM999" strUser = "Dood" Set objUser = GetObject("WinNT://" & strDomainOrWorkgroup & "/" & _ strComputer & "/" & strUser & ",User") objUserFlags = objUser.Get("UserFlags") objPasswordExpirationFlag = objUserFlags OR ADS_UF_DONT_EXPIRE_PASSWD objUser.Put "userFlags", objPasswordExpirationFlag objUser.SetInfo
  3. I have a vbs script which I call from the main_batch.cmd to try to prevent the automatically created user (from cmdlines.txt) from having to change his password after a few weeks. The vbs is called using ECHO. ECHO turning password expiry off %SystemDrive%\install\cscript //B passexpoff.vbs ECHO. and the script is called passexpoff.vbs ' ' Prevent password expiry on user %_USER% (environment variable) ' ' Run with: ' cscript //B passexpoff.vbs ' ' Requires these environment variables: ' COMPUTERNAME (the computer name according to the OS) ' _USER (the user name to prevent password expiry on) ' Option Explicit Dim oWshShell, oWshEnvironment, userName, compName, usr, flag Set oWshShell = CreateObject("WScript.Shell") Set oWshEnvironment = oWshShell.Environment("Process") userName = oWshEnvironment("_USER") compName = oWshEnvironment("COMPUTERNAME") Set usr = GetObject("WinNT://" & compName & "/" & userName) flag = usr.Get("UserFlags") if (flag AND &H10000 = 0) then usr.Put "UserFlags", flag XOR &H10000 end if usr.SetInfo both are located in the %oem%\$1\install folder along with a copy of cscript It doesn't appear to be doing the trick though. Any help is appreciated By the way this is how I create a user that autologs in rather than the administrator on first boot. Perhaps there are switches for the "DefaultUserPassword" line that might disable password expires? install.cmd set _USER=Dood net user %_USER% "" /add >nul net localgroup administrators "%_USER%" /add>nul %SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /d "%_USER%" /f %SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserPassword" /d "" /f %SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /d "1" /f cmdlines.txt [COMMANDS] ".\installs.cmd"
  4. I quote from a post answering a question I asked in this forum
  5. thanks very much....very handy
  6. I have installed nod32 as several learned contributors to this forum have said it rocks. I have run NAV no problem for years It has just shredded my unattended files as it doesn't seem to like my self extracting winrar files. It says there is a win32/irc.sdbot.ec trojan present in these files. Any one else having this problem? or have I really got a virus after all?
  7. often if you export from HKLM\software\****application***** using regedit and then import this using main_batch.cmd before silently installing the program it often will retain the product registration details. here is some switches as you requested again for your main_batch.cmd; ECHO. ECHO Installing Kazza Lite K-plus-plus 2.43 ECHO Please wait... start /wait %systemdrive%\install\klitekpp243e.exe /VERYSILENT /SP- ECHO. ECHO Installing QuickTime Alternative 1.16 ECHO Please wait... start /wait %systemdrive%\install\quicktimealt116.exe /VERYSILENT /SP- ECHO. ECHO Installing Codecs ECHO Please wait... start /wait %systemdrive%\install\klcodec210f.exe /VERYSILENT /SP- /COMPONENTS="bsplayer,divx,divxdec,xvid,xviddec,3ivx,wmv,dvd,mpeg2ligos,indeo,indeo4,indeo32,i263,mp3audio,wm aaudio,ac3audio,oggvorbis,musepack,vsfilter,oggvorbissplitter,matroska,fourcc,gspot,disg400,disffdsh ow"
  8. my experience is bad with ghosting to different hardware too. a lot of the time if the ide controllers are different you will get a BSOD staright away. If it does boot there are often problems with onboard devices. Perhaps you could ghost the image of a part install which has halted at the /syspart stage as detailed here to speed up an install? http://www.MSFN.org/board/index.php?showtopic=9509
  9. as per this forum thread; http://www.klboard.ath.cx/index.php?showto...=silent+install ECHO Installing Codecs ECHO Please wait... start /wait %systemdrive%\install\klcodec210f.exe /VERYSILENT /SP- /COMPONENTS="bsplayer,divx,divxdec,xvid,xviddec,3ivx,wmv,dvd,mpeg2ligos,indeo,indeo4,indeo32,i263,mp3audio,wm aaudio,ac3audio,oggvorbis,musepack,vsfilter,oggvorbissplitter,matroska,fourcc,gspot,disg400,disffdsh ow" edit; hmmn this bulletin board disrupts the correct syntax should read ****COMPONENTS= " bsplayer**** (without spaces) rather than ****/COMPONENTS = & # 34 ; bsplayer******. I cant seem to correct it
  10. read greenmachine's post at the top of this thread for the link Great work Gosh and nice clear guide Aaron. Cheers.
  11. @greenmachine I have another customer with a faulty hard disk today! This disk imaging sounds necessary for me. I have used Ghost before but only as a hard disk upgrade tool. I haven't really explored its features. Are you saying there is a commercial piece of software that can image a hard disk and put it to a bootable DVD ie similar to a Branded PC recovery disk in that you put the DVD in and boot and it reimages the drive back to a bootable state as shipped? Going a further step on from that; I give my time free to a local charity and have helped build them up a network of a dozen PC's. They have asked me for a cheap back up solution. Someone has donated a couple of large USB2.0 hard disks and I said I would see if during the night I could get the server to boot out of windows2k and ghost the servers disk to the USB drive. They could then swap the USB disks daily. That way if the servers disk fails hopefully someone can just reghost it back to a new ide disk. Is this pretty easy? Sorry for my lack of knowledge here....I am just a system builder who has got roped into all sorts of other aspects of IT!
  12. perfect answer. all points go to gosh. got me thinking here......i wonder if at this point i can swap out the ntuser.dat in the default profile as well while i have the hard disk hooked up to my rig and copying over data before posting!. i would imagine the c:\documents and settings folder has been created at this stage? will keep you posted!
  13. cant install them both together as a reboot is absolutely necessary
  14. data copied over to formatted hard disk folder first. then xp and apps install from DVD after without overwriting data. no DVD rom so hoped self install from active hard disk was possible.
  15. already on the case with Bart! My install on average is about 80-100 gigs! Get that image on two CD's Will keep you posted
  16. Hmmn, I searched before I posted but not closely enough...... I have since found this http://board.MSFN.org/index.php?showtopic=...c=9112&hl=winpe Will Juno's idea work as he hasn't verified it? My head is spinning from what I have learnt in last few weeks regarding unattended CD's so the WinPE thing looks a bit daunting at present
  17. Cheers By Minisetup do you mean WinPE? Am I correct in thinking I can give him a cd with winpe on and it will then run an unattended from where I have an install folder on the same hard disk? I think I read Gosh talking about something like this in another thread
  18. I have a feeling this is quite easy as it is just a case of rewriting the batch commands so............ I have a customer who has developed a faulty hard disk. He does not have a DVD rom otherwise I could create an unattended disc for him that way to use on a new disk. I wish to send him a new hard disk by post. On inserting the new disk I would like an unattended install to take place from XPCD files and batches already copied onto the hard disk together with the various hotfixes, tweaks and apps he usually has. The reason I can't send him an installed completed hard disk is that I dont have a rig with his motherboard in at present and experience tells me a clean install is always best for an alternate motherboard. As I said I would guess this is quite easy to do but I need shoving in the right direction I have tried stopping the unattended install on first boot and then copying over various apps setup files onto the hard disk and then allowing it to restart from the first boot on a different motherboard but I got a BSOD as I guess hard disk controllers are different and contribute to this problem? Cheers
  19. Here is a link to a really good guide on how to use "A1 installer" to build install packages. Scroll about halfway down the page http://www.math.gatech.edu/~dijuremo/uwiweb.html
  20. UnattendSwitch Specifies whether Setup skips Windows Welcome or Mini-Setup when preinstalling Windows XP Home Edition or Windows XP Professional using the CD Boot method (Mini-Setup is where you input your user names, so it also has no connection)
  21. Numinous.....are you telling me you have an unattended CD and you sit there watching it install!!!!!! Chill, get a beer and watch some TV and leave it to do its job
  22. It will, don't forget to put the name in that you want to create in the installs.cmd
  23. use the search to find qlb .......quick launch bar
  24. TightVNC Availability Open Source Details This is an Inno installer, so just use the /silent switch. (TightVNC's own installation instructions say to use /sp- /verysilent, but I have not found this to be necessary.) Example tightvnc.bat
×
×
  • Create New...