Jump to content

MrJinje

Developer
  • Posts

    1,031
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by MrJinje

  1. Taking ownership of a registry key (along with everything else) can also be done from Powershell, which is built-in to W2K8-R2 $acl = Get-Acl HKCU:\Software\Testkey $acl.Owner $me = [System.Security.Principal.NTAccount]"$env:userdomain\$env:username" $acl.SetOwner($me) I think you can skip the $acl.owner line, all that does is echo the current owner as part of the example.
  2. if these are windows built-in drivers that you removed via nlite, quickest way is to import your last session.ini and rebuild your iso. being sure not to remove them this time. and welcome to msfn
  3. and just to clarify. Cluberti is not asking what regini is, he is saying that regini is included in W2K8-R2.
  4. I would try a combination of subinacl.exe and cacls.exe to replace the takeown.exe and icacls.exe commands. subinacl is not part of windows xp, download it here.
  5. Thanks Allen2, working good on XP. Would you mind zipping up your source, I have the original from code-project, thinking the easiest way for me to learn, is to windiff the two sources and see what bits you changed. Also, which C++ compiler would you recommend, looking for lightweight, I'd like to avoid 2010 Express if at all plausible.
  6. Yeah, the old spidey sense didn't kick in 'til you confirmed the reg setting didn't work on XP. N/M is short hand for 'nevermind', 'no message', or 'not meaningful'.
  7. Yes, .clg is not needed by most users, but in my case, I occasionally download XML files for readers to check for syntax errors using the WSIM. It is a time saver, because when I choose an 'image' instead of .clg file, the WSIM wants to run a DISM mount and generate a .clg before it will check syntax on the XML. (5 minutes every time)
  8. Ahh, setup.exe in the sources folder, I thought you were talking about the one on the root of the DVD. That was the problem (confusion between multiple setup.exe files) Update: It Works. Saves about 80 MB from sources. 150MB if you count the support and upgrade folders.
  9. Have you tried using the DISM Remount-WIM command. Otherwise, delete that mount directory, re-create the mount folder. then run the cleanup-wim command and see if it still occurs. DISM has this habit of knowing the difference between two folders with the exact same name and path. Don't ask me how it knows.
  10. Yes, I would also like to know what files I can delete from my DVD that are useless...did it with Vista and now disappointed that Windows 7 will not let me And not only Sources folder but the other ones as well At a bare minimum, you need to keep the DVD\Boot folder, and the DVD\EFI folder as well as the DVD\bootmgr file. I was able to safely remove the DVD\Support and DVD\Upgrade folders and still complete my installation. I also deleted the setup.exe from the root of the DVD. Not sure why it didn't work for me when I tried deleting everything but the WIM's, so maybe that was just a fluke. nice_guy_75 is pretty adamant that it can be done, so maybe later I will pull out my clean DVD and try that on an untouched source. My only test of this failed on a heavily vLite'd image - way back in November. @nice_guy_75, do you confirm that you are not using the vista boot.wim. My assumption (apparently wrong) was that the new boot.wim was doing something with one of the sub-folders of DVD\Sources, but if you are using the 7 boot.wim, and it works, so much for that theory.
  11. OK, my bad, I have cleaned up my previous posts, they really don't apply to XP. But I have an an answer with good and bad news. #1) Good news, you are not crazy, the .scf/batch combo is working from XP. I was on Windows 7 (your batch does not work on 7), but you were adamant that it is working so I plugged in a VM and what do you know, it works fine in XP. #2) Bad news, apparently the Directory\Background\Shell setting is not recognized until Vista\Windows 7, it simply does not work in XP. Unfortunately this means that in XP there is no easy way to do this. Unless anyone has an alternative method to access it from the registry (HKCR\Folder ? probably not), your next best bet is going to be writing a COM object. Do you have programming experience ? and is it really worth it ?
  12. what happens when you run the command on the machine manually. Is this the command failing or is the problem on the domain side. When you run it by hand, try adding the -passthru -verbose to the end to see why it fails. powershell.exe add-computer -domain domain01 -cred domain01\Administrator Get-Credential -passthru -verbose
  13. I see your point, but wouldn't it be quicker to just get his XP CD and try installing that. If installation is successful, that proves that the hardware is working, without him actually having to do any hardware testing. Work smarter not harder. It should work from the Vista WAIK... (it installs on XP SP2) if you want to go that route.http://www.microsoft.com/downloads/details.aspx?FamilyId=94BB6E34-D890-4932-81A5-5B50C657DE08&displaylang=en
  14. if you can, I would return to your retailer and tell them to exchange your DVD for one that is not scratched. Tell them the **** thing is not installing and raise bloody hell. They will likely swap you out, just to shut you up. But if you bought directly from Microsoft, you might be S.O.L.
  15. Unlike the trial edition (time-bomb) installing a RTM edition of Windows 7 is 100% working without any activation (save for black desktop and annoying pop-ups). I have a VM that I never activated (since august) and it works fine when I do boot it up. Never really cared to watch it for hours on end, so I cannot say for sure if or when it reboots. But everything else seems to work fine. Microsoft has stated (since way back in XP days) that all copies (even pirated) will continue to receive security related updates, just not optional updates (to prevent pirated machines from becoming zombies due to non-patching). But un-activated copies will not be able to download certain updates. Any download that requires validation before downloading is off-limits. So in effect, when you buy your license, you are only paying to remove the nag-screens, and gain access to optional updates . But in reality you can still get most updates, as plenty of optional updates are not protected behind a validation check, and they can be downloaded directly from Microsoft (manually via IE/firefox, just not through the Windows Updates GUI). Plus I use a black background anyways, not really a punishment, thank the buddha they didn't choose Pink.
  16. if exist "%CDROM%\Autowpi.exe" (Start /wait "%CDROM%\Autowpi.exe" && start /wait "C:\application.exe") ELSE (SHUTDOWN -r -f -t 01) exit the double ampersand && means run the second command if (and only if) the first command is successful.
  17. It is just a variable. They can be useful if you are doing this from a ps1 file, but obviously not from a first login perspective, that is my fault. Here is a single line version, added benefit it seems to pre-populate the username field. powershell.exe add-computer -domain domain01 -cred domain01\Administrator Get-Credential
  18. Hard to believe but true. EDIT: You might have to switch the order of number 4 and 5, as the add hardware wizard probably won't let you install the drivers until the RAID is back in the machine.
  19. How to install a driver, (using the Add Hardware Wizard) Start Menu > Run > 'hdwwiz.exe' and follow the on-screen prompts.
  20. Try something like this. $cred = Get-Credential powershell.exe add-computer -domain domain01 -cred $cred
  21. Could change it to this SHUTDOWN -r -f -t 01 or this WMIC OS Where Primary=TRUE Call Reboot More details
  22. Here goes nothing. if exist "C:\1.exe" (Start /wait "C:\1.exe")ELSE (shutdown -r) exit
  23. Easiest way is to specify a network location in your XML. <OOBE> <NetworkLocation>Home</NetworkLocation> </OOBE> But in case you prefer not to, there is another method. Try running this VBScript from oobeSystem > RunAsynchronous to kill it. Set WshShell = Wscript.CreateObject("WScript.Shell") Do While Not Wshshell.AppActivate ("Establecer ubicacion de Red") Wscript.sleep 1000 Loop Wshshell.AppActivate "Establecer ubicacion de Red" Wshshell.SendKeys "%{F4}" Original source
×
×
  • Create New...