Jump to content

durex

Member
  • Posts

    952
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by durex

  1. or a simple batch file if you so desire... (Copy and paste the following text into notepad and save it as "<filename>.cmd") This will move all shortcuts from All Users and User Profile desktop to the quick launch. set UserQL=%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch set AUDesk=%AllUsersProfile%\Desktop set UserDesk=%UserProfile%\Desktop MOVE /Y "%AUDesk%\*.lnk" "%UserQL%" MOVE /Y "%UserDesk%\*.lnk" "%UserQL%" Or if you want to move specific shortcuts from your Desktop to Quick Launch you can use the following (just edit with the shortcuts you want to move of course): set UserQL=%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch set AUDesk=%AllUsersProfile%\Desktop set UserDesk=%UserProfile%\Desktop MOVE /Y "%AUDesk%\<Name of Shortcut1>.lnk" "%UserQL%" MOVE /Y "%AUDesk%\<Name of Shortcut2>.lnk" "%UserQL%" MOVE /Y "%AUDesk%\<Name of Shortcut3>.lnk" "%UserQL%" And finally if you want to delete shortcuts from your Desktop you simply add the following to your batch file: DEL /Q /F %AUDesk%\<Name of Shortcut1.lnk" DEL /Q /F %AUDesk%\<Name of Shortcut2>.lnk" Typically this stuff is placed in your 'cleanup.cmd' and is one of the last things you run from RunOnceEx or GuiRunOnce... Heres what my cleanup.cmd looks like. As you can see in addition to moving and deleting shortcuts from my desktop, I also move, copy and delete shorcuts and folders to and from my start menu, quick launch and desktop. Hope this helps! @echo off cmdow @ /HID for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%a:\WIN51 set CDROM=%%a: set AUStart=%AllUsersProfile%\Start Menu\Programs set UserStart=%UserProfile%\Start Menu\Programs set UserQL=%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch set AUDesk=%AllUsersProfile%\Desktop set UserDesk=%UserProfile%\Desktop REM :::::::::::::::::::: REM :::: User Admin :::: REM :::::::::::::::::::: REM :: Remove ASP User :: net user aspnet /delete REM :::::::::::::::::::: REM :::: Start Menu :::: REM :::::::::::::::::::: REM :: Make New Folders :: MD "%AUStart%\Entertainment" MD "%AUStart%\Internet" MD "%AUStart%\Multimedia" MD "%AUStart%\Utilities" MD "%AUStart%\Utilities\Administrative Tools" MD "%AUStart%\Utilities\Windows System Tools" REM :: Move / Copy Folders :: COPY /Y "%AUStart%\Administrative Tools" "%AUStart%\Utilities\Administrative Tools" MOVE /Y "%AUStart%\Accessories\System Tools\*" "%AUStart%\Utilities\Windows System Tools" MOVE /Y "%UserStart%\Multimedia" "%AUStart%" REM :: Move / Copy Shortcuts :: MOVE /Y "%AUStart%\Adobe Photoshop CS.lnk" "%AUStart%\Multimedia" MOVE /Y "%AUStart%\Adobe ImageReady CS.lnk" "%AUStart%\Multimedia" MOVE /Y "%AUStart%\Executive Software Diskeeper.lnk" "%AUStart%\Utilities" MOVE /Y "%AUStart%\Adobe Reader 7.0.lnk" "%AUStart%\Accessories" MOVE /Y "%AUStart%\Accessories\Communications\Remote Desktop Connection.lnk" "%AUStart%\Internet" MOVE /Y "%AUStart%\Accessories\Communications\Wireless Network Setup Wizard.lnk" "%AUStart%\Utilities\Windows System Tools" MOVE /Y "%AUStart%\Accessories\Entertainment\Sound Recorder.lnk" "%AUStart%\Accessories" MOVE /Y "%AUStart%\Accessories\Entertainment\Volume Control.lnk" "%AUStart%\Utilities" MOVE /Y "%AUStart%\AccountLogon\AccountLogon.lnk" "%AUStart%\Accessories" MOVE /Y "%AUStart%\eMule\eMule Plus.lnk" "%AUStart%\Internet" MOVE /Y "%AUStart%\Games" "%AUStart%\Entertainment" MOVE /Y "%AUStart%\GlobalSCAPE\CuteFTP Professional\CuteFTP Professional.lnk" "%AUStart%\Internet" MOVE /Y "%AUStart%\Grabit\GrabIt.lnk" "%AUStart%\Internet" MOVE /Y "%AUStart%\iTunes\iTunes.lnk" "%AUStart%\Multimedia" MOVE /Y "%AUStart%\Mozilla Firefox\Mozilla Firefox.lnk" "%AUStart%\Internet" MOVE /Y "%AUStart%\Nero\Nero 6 Ultra Edition\Nero Burning ROM.lnk" "%AUStart%\Multimedia" MOVE /Y "%AUStart%\Norton AntiVirus\Norton AntiVirus 2005.lnk" "%AUStart%\Utilities" MOVE /Y "%AUStart%\QuickTime Alternative\QuickTime Settings.lnk" "%AUStart%\Multimedia" MOVE /Y "%AUStart%\Real Alternative\RealMedia Settings.lnk" "%AUStart%\Multimedia" MOVE /Y "%AUStart%\Tag&Rename\Tag&Rename.lnk" "%AUStart%\Multimedia" MOVE /Y "%AUStart%\WinRAR\WinRAR.lnk" "%AUStart%\Utilities" MOVE /Y "%AUDesk%\Adobe Reader 6.0.lnk" "%AUStart%\Multimedia" MOVE /Y "%AUDesk%\Norton Antivirus 2005.lnk" "%AUStart%\Utilities" MOVE /Y "%UserStart%\QuickPar.lnk" "%AUStart%\Accessories" MOVE /Y "%UserStart%\Remote Assistance.lnk" "%AUStart%\Accessories" MOVE /Y "%UserStart%\Windows Media Player.lnk" "%AUStart%\Multimedia" MOVE /Y "%UserStart%\Accessories\Address Book.lnk" "%AUStart%\Accessories" MOVE /Y "%UserStart%\Accessories\Command Prompt.lnk" "%AUStart%\Accessories" MOVE /Y "%UserStart%\Accessories\Windows Explorer.lnk" "%AUStart%\Accessories" MOVE /Y "%UserStart%\Accessories\Entertainment\Windows Media Player.lnk" "%AUStart%\Multimedia" MOVE /Y "%UserStart%\Powertoys for Windows XP\Slide Show Wizard.lnk" "%AUStart%\Accessories" MOVE /Y "%UserStart%\Powertoys for Windows XP\TweakUI for Windows XP.lnk" "%AUStart%\Utilities" MOVE /Y "%UserStart%\Winamp\Winamp.lnk" "%AUStart%\Multimedia" MOVE /Y "%UserStart%\Startup\*" "%AUStart%\Startup" REM :: Remove Folders :: RD /S /Q "%AUStart%\Accessories\Accessibility" RD /S /Q "%AUStart%\Accessories\Communications" RD /S /Q "%AUStart%\Accessories\Entertainment" RD /S /Q "%AUStart%\Accessories\System Tools" RD /S /Q "%AUStart%\AccountLogon" RD /S /Q "%AUStart%\eMule" RD /S /Q "%AUStart%\GlobalSCAPE" RD /S /Q "%AUStart%\GrabIt" RD /S /Q "%AUStart%\iTunes" RD /S /Q "%AUStart%\Java Web Start" RD /S /Q "%AUStart%\Mozilla Firefox" RD /S /Q "%AUStart%\Nero" RD /S /Q "%AUStart%\Norton AntiVirus" RD /S /Q "%AUStart%\PrintMe Internet Printing" RD /S /Q "%AUStart%\QuickTime Alternative" RD /S /Q "%AUStart%\Real Alternative" RD /S /Q "%AUStart%\Tag&Rename" RD /S /Q "%AUStart%\WinRAR" RD /S /Q "%UserStart%\Accessories\Entertainment" RD /S /Q "%UserStart%\Powertoys for Windows XP" RD /S /Q "%UserStart%\Winamp" RD /S /Q "%UserStart%\WinRAR" RD /S /Q "C:\Documents and Settings\All Users\Documents" RD /S /Q "C:\Documents and Settings\durex\My Documents" RD /S /Q "C:\Documents and Settings\durex\Favorites" RD /S /Q "D:\!Personal!\My Documents\My Music" REM :: Remove Shortcuts :: DEL /Q /F "%AllUsersProfile%\Start Menu\Activate Windows.lnk" DEL /Q /F "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk" DEL /Q /F "%AllUsersProfile%\Start Menu\Windows Catalog.lnk" DEL /Q /F "%AUStart%\Startup\Adobe Gamma Loader.lnk" DEL /Q /F "%AUStart%\Startup\Adobe Reader Speed Launch.lnk" DEL /Q /F "%UserStart%\Uninstall.lnk" DEL /Q /F "%UserStart%\Website.lnk" DEL /Q /F "%UserStart%\Accessories\Program Compatibility Wizard.lnk" DEL /Q /F "%UserQL%\Launch Internet Explorer Browser.lnk" DEL /Q /F "%UserQL%\Nero StartSmart.lnk" DEL /Q /F "%UserQL%\Tag&Rename.lnk" DEL /Q /F "%UserQL%\Windows Media Player.lnk" DEL /Q /F "%AUDesk%\*.*" DEL /Q /F "%UserDesk%\*.*" REM :::::::::::::::::::::: REM :::: Quick Launch :::: REM :::::::::::::::::::::: REM :: Create New Folders :: MD "%UserQL%\New Folder" REM MD "%UserQL%\Recycle Bin.{645FF040-5081-101B-9F08-00AA002F954E}" REM :: Create / Copy New Shortcuts :: COPY /Y "%AUStart%\Accessories\AccountLogon.lnk" "%UserQL%" COPY /Y "%AUStart%\Accessories\Windows Explorer.lnk" "%UserQL%" COPY /Y "%AUStart%\Internet\CuteFTP Professional.lnk" "%UserQL%" COPY /Y "%AUStart%\Internet\eMule Plus.lnk" "%UserQL%" COPY /Y "%AUStart%\Internet\GrabIt.lnk" "%UserQL%" REM COPY /Y "%AUStart%\Microsoft Office\Microsoft Office Outlook 2003.lnk" "%UserQL%" COPY /Y "%AUStart%\Multimedia\iTunes.lnk" "%UserQL%" COPY /Y "%AUStart%\Multimedia\Winamp.lnk" "%UserQL%" COPY /Y "%AUStart%\Multimedia\Media Player Classic.lnk" "%UserQL%" COPY /Y "%AUStart%\Multimedia\Nero Burning ROM.lnk" "%UserQL%" COPY /Y "%UserStart%\Entertainment\Steam.lnk" "%UserQL%" COPY /Y "%UserStart%\Internet\Trillian.lnk" "%UserQL%" COPY /Y "%CDROM%\Custom\Misc\Recycle Bin.lnk" "%UserQL%" REM :::::::::::::::::::::::::::: REM :::: Misc File Cleanup ::::: REM :::::::::::::::::::::::::::: REM :: Remove Folders :: RD /S /Q "%ProgramFiles%\Adobe" RD /S /Q "%systemdrive%\drivers" REM :: Remove Logs & System Files :: DEL /Q "%systemsdrive%\iTunes.log" DEL /Q "%systemsdrive%\ps.log" DEL /Q "%systemroot%\*.bmp" DEL /Q "%systemroot%\Web\Wallpaper\*.jpg" REM DEL /Q "%systemroot%\system32\dllcache\*.scr" REM DEL /Q "%systemroot%\system32\*.scr" REM :: Disable Start Menu Admin Tools :: REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v StartMenuAdminTools /t REG_DWORD /d 0 /f REM :: Unregister 'Who Lock Me' until RyanVM fixes Explore Start menu :: REM regsvr32 /u /s WhoLockMe.dll EXIT
  2. and while it may be a bit more than what youre looking for.. I highly recommend UltraEdit. If you do even the least bit of coding or working in plain text files in general, this prog can save you tons of time.
  3. That may be, but my point is, %usb% wont be set unless something similar to that IF EXIST statement is configured in WPI.. otherwsie WPI isnt gonna know what the heck %usb% is.
  4. Well I know a good amount of html and some vbscript... if i can be of any help let me know!
  5. This isnt going to work because while youre setting the 'usb' variable in your runonceex script, it wont be set in wpi. I dont use WPI, so Im not familar with how it works, but if theres something in on of the scripts which say where you want to install from (cdrom, hard drive, usb), this is what you need to change... not your runonceex. Youd be better off posting something in that section for an answer.
  6. Excellent! Thanks a ton both of you and esp Weazle for the much more streamlined code!
  7. Interesting... you're the 1st to say that around here... Ive seen about 5 different threads asking this question and they all say you cant. Mind shedding some light how to do it or how to verify if you bios supports it? Thanks!
  8. Anyone know how to obtain how much memory of the PC which the script is running on? Ive been looking around and found a bunch of snippets which allow you to obtain this info for you computers on the network, but havent been able to figure out how to tweak it to only come back for the pc its being run on... Thanks as always!
  9. So using the autologon reg outlined here doenst work if you replace the name with 'DomainDame\DomainLogonAccount'?
  10. This may sound like a silly question... but are you sure youre using the CDKEY which goes with the Windows CD you created the unattended ISO with? Also, how are you formatting the CDKEY in the winnt.sif file? ... and welcome to msfn!!
  11. and if you meant is there anyway to do your UA windows install from a usb key, the answer is no, you cant.
  12. Hey neanderthal... a quick search in google will bring up a ton of sites featuring great menu samples.. primarily javascript, but cut and paste of code makes it pretty easy to integrate. here are a couple sites I came across http://www.milonic.com/ http://www.dhtmlcentral.com/projects/coolmenus/ good luck and keep up the great work!
  13. and for you super lazy folk, nip into dos... copy nul <filename> and hit nothing.
  14. Excellent addition to my usb key... Great find jaclaz
  15. Is it absolutely necessary that the Add User wizard come up? Or do you simply need to add another user or two... because theres a very easy way to do this unattendedly (is that even a word??), which is outlined in the Unatteded Guide
  16. holy crap.. as if normal IE wasnt bad enough! MSN explorer is terrible! But, since everyone is entitled to their opinions I suppose, here's a link that should most definately help....
  17. Just like any other switch, its all dependent on the Installer used for the software you want to install.. if you dont know how to find that out I suggest you do a bit more digging as its all over the forum. As for MSI files, if it is supported in the program, the switch is 'INSTALLDIR'. ie: setup.msi INSTALLDIR=C:\Blah\Acrobat Again, you may find that the switch isnt supported... and it is different per installer package so youll need to do a bit of research. Couple other install packages I know off the top of my head (again, you may find that they just dont work with certain software): Inno Setup: /DIR="Dir Name" NSIS: /D="Dir Name" InstallShield: Use the /r switch to 'record' the setup, which will create setup.iss in %WINDIR% and install with /s
  18. Ive inquired about this a few times already and havent come up with any method of reg tweaks to place control panel icons on the desktop... only 2 options I was able to come up with however.... 1. Create the shortcut manually by dragging the Control Panel icon to desktop or right click and Sent To > Desktop. Then toss this someplace on your UACD and have it copied to your desktop as part of your installation. 2. If you goto C:\WINDOWS\system32, youll noticed a bunch of .cpl files. If you double click them youll notice that they launch control panel sections. You could always copy the appropriate file (inetcpl.cpl for Internet Options) or create a shortcut to it via batch file or the such.... If someone has figured out another method, by all means post up cause Ive been looking for one for a while now! Hope this helps!
  19. Just an FYI.. the installer is just an SFX... go figure huh? I install it to an alternate location so I extract the contents (using what else? winrar!), and re-create the sfx using similar comments used in their original SFX, but choose Hide all dialogs and Overwrite files.. this way you dont need any parameters and you can install it anywhere you want!
  20. Just a note about the thumbs.db file- this is created by turning caching thumbnails on in folder options the entire function of which is to increase thumbnail view of icons...
  21. 2 things... 1st, its been covered a bunch.. esp in the unattended windows section.. so use search and 2nd get a decent registry monitor and take shots before and after making changes to see what gets effected
  22. Have you already tried using a registry monitor?
  23. Interesting.... So I shouldnt be experiencing this after all.... I do use nLite to strip out some components, but nothing Im aware of which should cause this type of problem. Anyone else have any suggestions as to why Im having this issue?
  24. Suppose I could.. or just run it earlier in my runonce, prior to NAV installing.. I just thought it was odd that this was the only one that was giving me problems like this... thanks for the suggestions!
  25. Yea... I didnt know what I was talking about in that other thread... it was actually the aspnet user I delete... not the guest. But it is disabled nonetheless. Once I run the network setup wizard, I can access shares and my guest account is still disabled. I thought I remember reading that its best to keep the guest acct disabled for security reasons.
×
×
  • Create New...