roshanbhavsar04 Posted March 19, 2013 Report post Posted March 19, 2013 Hey TechGuys, can anybody help to write a script for windows xp computers set " adjust for best performance" in computer properties. I need to make a deployment this package over 300+ computers in our office. -Roshan Quote Share this post Link to post Share on other sites More sharing options...
0 roshanbhavsar04 Posted March 21, 2013 Report post Posted March 21, 2013 yes, user is logged on, I am running in context mode. but same registry file runs well on pc manually and why not in program? I am using " reg import visual.reg " command line Quote Share this post Link to post Share on other sites More sharing options...
0 anyweb Posted March 21, 2013 Report post Posted March 21, 2013 the reg file with Defuser references will only work as part of the workaround i provided. when you manually run your file it works because you are a user and it's running it in user context, when you run it as a package it's running in system context and therefore failing. Quote Share this post Link to post Share on other sites More sharing options...
0 roshanbhavsar04 Posted March 22, 2013 Report post Posted March 22, 2013 can you please suggest what workaround I can do to run that package? Quote Share this post Link to post Share on other sites More sharing options...
0 anyweb Posted March 22, 2013 Report post Posted March 22, 2013 use the workaround i already explained or try this. Quote Share this post Link to post Share on other sites More sharing options...
0 darwyn99 Posted March 13, 2014 Report post Posted March 13, 2014 Hi, great thread on loading hte user hive. While the first two steps seem to work right (load the hive, apply the userpref.reg file) I'm running into a problem on the third step. My smsts.log file shows this error: Executing command line: smsswd.exe /run: cmd.exe /c reg.exe unload HKEY_LOCAL_MACHINE\defuser c:\users\default\ntuser.dat TSManager 3/13/2014 2:47:58 PM 2768 (0x0AD0)[ smsswd.exe ] InstallSoftware 3/13/2014 2:47:58 PM 1712 (0x06B0)PackageID = '' InstallSoftware 3/13/2014 2:47:58 PM 1712 (0x06B0)BaseVar = '', ContinueOnError='' InstallSoftware 3/13/2014 2:47:58 PM 1712 (0x06B0)ProgramName = 'cmd.exe /c reg.exe unload HKEY_LOCAL_MACHINE\defuser c:\users\default\ntuser.dat' InstallSoftware 3/13/2014 2:47:58 PM 1712 (0x06B0)SwdAction = '0001' InstallSoftware 3/13/2014 2:47:58 PM 1712 (0x06B0)Command line for extension .exe is "%1" %* InstallSoftware 3/13/2014 2:47:58 PM 1712 (0x06B0)Set command line: Run command line InstallSoftware 3/13/2014 2:47:58 PM 1712 (0x06B0)Working dir 'not set' InstallSoftware 3/13/2014 2:47:58 PM 1712 (0x06B0)Executing command line: Run command line InstallSoftware 3/13/2014 2:47:58 PM 1712 (0x06B0)Process completed with exit code 1 InstallSoftware 3/13/2014 2:47:58 PM 1712 (0x06B0)ERROR: Invalid syntax. InstallSoftware 3/13/2014 2:47:58 PM 1712 (0x06B0)Type "REG UNLOAD /?" for usage. InstallSoftware 3/13/2014 2:47:58 PM 1712 (0x06B0)Command line returned 1 InstallSoftware 3/13/2014 2:47:58 PM 1712 (0x06B0)Process completed with exit code 1 TSManager 3/13/2014 2:47:58 PM 2768 (0x0AD0)!--------------------------------------------------------------------------------------------! TSManager 3/13/2014 2:47:58 PM 2768 (0x0AD0)Failed to run the action: Run Command Line - Unload Default User Hive.Incorrect function. (Error: 00000001; Source: Windows) TSManager 3/13/2014 2:47:58 PM 2768 (0x0AD0) That invalid syntax is throwing me. I've looked up Reg.exe unload and it seems to be the proper syntax, but it's getting that error. Any thoughts? Thanks! Quote Share this post Link to post Share on other sites More sharing options...
0 darwyn99 Posted March 13, 2014 Report post Posted March 13, 2014 nevermind, i think i figured it out. It looks like on the unload you leave off the path to the ntuser.dat location and just use the key cmd.exe /c reg.exe unload HKEY_LOCAL_MACHINE\defuser Thanks for the walkthrough! Quote Share this post Link to post Share on other sites More sharing options...
0 anyweb Posted March 13, 2014 Report post Posted March 13, 2014 correct and i've updated the typo ! Quote Share this post Link to post Share on other sites More sharing options...
0 Atomic12 Posted May 13, 2014 Report post Posted May 13, 2014 This step for me did not work with that command line, I kept on getting the 0x0000001 task sequence error. "in the next step we import the Registry file in another Run Command Line step this Registry file can be a file in a package. cmd.exe /c reg.exe import "Userprefs.reg" but what is now working is: regedit /s "NameOfYourRegFile.reg" Quote Share this post Link to post Share on other sites More sharing options...
0 joengelhart Posted October 30, 2015 Report post Posted October 30, 2015 So there is no way to change a reg key for just one user? Quote Share this post Link to post Share on other sites More sharing options...
0 anyweb Posted October 30, 2015 Report post Posted October 30, 2015 you can run a package/program as the logged in user which should do what you want. Quote Share this post Link to post Share on other sites More sharing options...
Hey TechGuys,
can anybody help to write a script for windows xp computers set " adjust for best performance" in computer properties. I need to make a deployment this package over 300+ computers in our office.
-Roshan
Share this post
Link to post
Share on other sites