Jump to content

uid0

Member
  • Posts

    353
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by uid0

  1. Then you wanted to say so in your first post... You can put these in winnt.sif, but they kill start menu icons and desktop ones - probably overkill [Components] IEAccess = Off OEAccess = Off wmPOCM = off The icons get created by active setup - so you could try removing the offending entries: ;ie UserIconConfig [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\>{26923b43-4d38-484f-9b9e-de460746276c}] "StubPath"=- or add your own active setup to run after the others: SET KEY=HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce REG ADD %KEY% /V "addStub1" /d "reg add \"HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\^>{ffff_new_user\" /V StubPath /d \"wscript %systemroot%\_new_user.vbs\" /t REG_EXPAND_SZ" REG ADD %KEY% /V "addStub2" /d "reg add \"HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\^>{ffff_new_user\" /VE /d \"New user\"" REG ADD %KEY% /V "addStub3" /d "reg add \"HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\^>{ffff_new_user\" /V Locale /d \"*\"" REG ADD %KEY% /V "addStub4" /d "reg add \"HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\^>{ffff_new_user\" /V Version /d \"1,0,0,0\""
  2. I reckon it should be (rd) instead of (0xff): http://www.911cd.net/forums//index.php?s=&showtopic=23722&view=findpost&p=162344
  3. DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk" DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk" DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk" DEL "%USERPROFILE%\Start Menu\Programs\Remote Assistance.lnk" DEL "%USERPROFILE%\Start Menu\Programs\Accessories\Tour Windows XP.lnk" Some don't exist at cmdlines, delete at runonceex instead: del "%ALLUSERSPROFILE%\Start Menu\Programs\Windows Movie Maker.lnk" del "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\System Tools\Security Center.lnk" del "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\System Tools\System Restore.lnk" IE, OE and WMP are handled differently.
  4. This is something I bodged a while ago - there are probably better ways, and it's been minimally tested on xp 32bit only... ' _power.vbs Option Explicit Const HKCU=&H80000001 Dim WshShell, fso, oReg, strLog, oLog Dim temp, userprofile Dim sHive, sKey, sValue, oArray, oArrayNew set WshShell = CreateObject("WScript.Shell") Set fso = CreateObject ("Scripting.FileSystemObject") Set oReg=GetObject( "winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv") temp = WshShell.ExpandEnvironmentStrings("%temp%") userprofile = WshShell.ExpandEnvironmentStrings("%userprofile%") strLog = temp & "\_power.txt" if not fso.fileexists(strLog) then fso.CreateTextFile(strLog) end if Set oLog = fso.OpenTextFile(strLog,8) '8 = ForAppending If Wscript.Arguments.Count = 1 Then oLog.WriteLine Now & " " & Wscript.Arguments(0) End If sHive = HKCU sKey = "Control Panel\PowerCfg\GlobalPowerPolicy" sValue = "Policies" 'do nothing when lid is closed alter "52", "off", CInt("&H02") alter "63", "on", CInt("&H80") alter "64", "off", CInt("&H02") alter "75", "on", CInt("&H80") 'dont ask for password when resume from standby alter "172", "off", CInt("&H04") WScript.Quit(0) 'byte array is zero based Sub alter (iByte, action, iVal) oReg.GetBinaryValue sHive, sKey, sValue, oArray oArrayNew = oArray select case action case "on" oArrayNew(iByte) = oArray(iByte) OR iVal oReg.SetBinaryValue HKCU, sKey, sValue, oArrayNew oLog.WriteLine Now & " " & iByte & " " & Hex(oArray(iByte)) & " -> " & Hex(oArrayNew(iByte)) case "off" if ((oArray(iByte) AND iVal) = iVal) then oArrayNew(iByte) = oArray(iByte) XOR iVal end if oReg.SetBinaryValue HKCU, sKey, sValue, oArrayNew oLog.WriteLine Now & " " & iByte & " " & Hex(oArray(iByte)) & " -> " & Hex(oArrayNew(iByte)) end select end sub
  5. HP use disk images rather than an answer file in preactivated recovery media, so you'll have to roll your own winnt.sif. As long as you backed up the key first you can use that, or you can use the one that MS publish for this purpose: http://technet.microsoft.com/en-us/library/bb457078.aspx
  6. @echo off cls @ means the command will not be displayed, for that line echo off means all subsequent commands will not be displayed cls clears the screen
  7. The key in the registry wont match the sticker if it's royalty oem, but what do you mean by "cannot use"? It'll work if you back up the certificate as well: http://www.raymond.cc/blog/archives/2009/08/13/backup-and-restore-vista-oem-activation-license/ @xcellweb but I wouldn't distribute winpe, keys or certs...
  8. ESXi is designed to run headless - you can't run a windows VM on ESXi and use the windows GUI without a second machine - I'd try virtualbox or vmware server v1.
  9. IcemanND has written something that will find your serial for you: http://www.msfn.org/board/topic/55041-decoding-microsoft-keys/
  10. You might be able to use plop to boot usb even if the bios does not support it.
  11. Sure, hope "big_daddy" doesn't mind. ql.zip
  12. I stumbled across this last night - it compiles to a 350kb autoit exe, which resizes the quicklaunch to show all the icons: http://www.autoitscript.com/forum/index.php?showtopic=5567&view=findpost&p=478933 Putting this in cmdlines.cmd seems to work: reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v resize_ql /d "%systemroot%\ql.exe"
  13. If you're using grub4dos, and starting with a blank disk, you could use partnew to set up the partitions: title 0-20GB partnew --active (hd0,0) 0x07 63 41929587 pause title 20-40GB partnew --active (hd0,0) 0x07 41929650 41929650 pause This way the other partition isn't just hidden, it appears as unallocated space. Probably a higher risk strategy than just hiding partitions, but it avoids the 4 primary partition limit (I've currently got 6).
  14. I'd try vlc: http://www.videolan.org/vlc/
  15. This one? http://www.lvllord.de/ Consensus is that it's snake oil though...
  16. If it's bios info you need, you could try dmidecode: http://www.msfn.org/board/information-without-t85667.html
  17. I guess for OEM kit you'd be safe with these: http://technet.microsoft.com/en-us/library/bb457078.aspx
  18. This is the latest (unofficial) mkisofs I've seen, no idea about nlite though: http://cdob.boot-land.net/mkisofs_duplicates_once/cdrtools-2.01.01a66-bootcd.ru-mkisofs.7z
  19. Are RFDISK and RFORMAT in a release state? Your profile still points to geocities.
  20. I'd improvise a fishing rod from a tree branch, catch me a shark, then get inside it for protection from the fire. Given more time, sharks could be stacked up into a shark based shelter, to keep the rain off. You wouldn't want to eat them though, shark tastes like glue.
  21. You'd need win2000 server not pro for most of that.
  22. for /f "delims=: tokens=1" %%i in ("%~dp0") do set drive=%%i: delims is short for delimiters, these divide the output into tokens (pieces). tokens=1 means we only want the first token. %%i is the variable that gets set to the first token. %~dp0 is the drive and path of the currently running script. What the line does is to set the variable %drive% to be just the letter of the drive that the current script is running from, which could probably be simplified to just set drive=%~d0 For more info try typing for /? set /? call /? at a command prompt, or try this site.
×
×
  • Create New...