Content Type
Profiles
Forums
Events
Everything posted by Yzöwl
-
Change ShellState to equal hex(3): instead of hex:
-
Is this reg string unique to each install?
Yzöwl replied to BoardBabe's topic in Unattended Windows 2000/XP/2003
At last… So all you need to do is replace the line echo/ Your Users Registry Key %UserKey%&&echo/ is set as %%UserKey%% with your registry related code, using the %UserKey% variable instead of HKCU, (HKEY_CURRENT_USER). Example REG ADD %UserKey%\SOFTWARE\Synaptics\SynTP\TouchPadHEXBTNPS2 /v Gestures /t REG_DWORD /d 2 /f Note - Please make sure after pasting the code into your text editor that delims=<tab>" not delims=<space(s)>" <Edit> Special thanks to nakira for highlighting the cause of the problem. </Edit> -
Is this reg string unique to each install?
Yzöwl replied to BoardBabe's topic in Unattended Windows 2000/XP/2003
Last quickfix, before looking at a rewrite! @echo off&setlocal enableextensions for /f "tokens=*" %%a in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" /s^|findstr "S-1-5-"') do ( for /f "tokens=1,3 delims= " %%b in ('reg query "%%~a" /v "ProfileImagePath"') do ( if errorlevel 0 ( echo/%%~c|find "%userprofile%">nul if errorlevel 0 set UserSID=%%a ) ) ) if not defined UserSID echo/ SID not found&&endlocal&goto :eof set UserKey=HKU\%UserSID:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\=% echo/ Your Users Registry Key %UserKey%&&echo/ is set as %%UserKey%% pause&endlocal&goto :eof -
Is this reg string unique to each install?
Yzöwl replied to BoardBabe's topic in Unattended Windows 2000/XP/2003
What about just changing the commandif errorlevel 0 if "%%~c" equ "%UserProfile%" set UserSID=%%a to if errorlevel 0 if "%%~fc" equ "%UserProfile%" set UserSID=%%a -
Is this reg string unique to each install?
Yzöwl replied to BoardBabe's topic in Unattended Windows 2000/XP/2003
@ nakira I think you may be correct, if we have some more confirmations on this, I'll adjust the code to suit… -
Remove Updater folder created by Photshop CS2
Yzöwl replied to BoardBabe's topic in Application Installs
As an addition to the 'other thread', you could create a dummy file with the same name as the folder, and set its attributes. if exist "%UserProfile%\My Documents\Updater" rd /q "%UserProfile%\My Documents\Updater" type nul> "%UserProfile%\My Documents\Updater" attrib +r +h "%UserProfile%\My Documents\Updater" -
From the code you've given, this should set you on the right track. if exist "%ProgramFiles%\Adobe\Adobe*CS2" ( if not exist "%UserProfile%\My Documents\Updater" ( md "%UserProfile%\My Documents\Updater" ) attrib +h "%UserProfile%\My Documents\Updater" )
-
Perhaps in winnt.sif [params.MS_TCPIP] DNS = No
-
Is this reg string unique to each install?
Yzöwl replied to BoardBabe's topic in Unattended Windows 2000/XP/2003
There was nothing wrong with the codes Bilou Gateux or yourself used, in BoardBabes current case. My response only came when I realised that my machines in particular have several SIDs all starting with S-1-5-21. Your code is pointless in that case. -
Is this reg string unique to each install?
Yzöwl replied to BoardBabe's topic in Unattended Windows 2000/XP/2003
Just make sure that when you've pasted it in, that delims=tab and not one or more spaces! -
Is this reg string unique to each install?
Yzöwl replied to BoardBabe's topic in Unattended Windows 2000/XP/2003
Fixed both examples again! Now included the missing delimiter of tab, fingers crossed -
Is this reg string unique to each install?
Yzöwl replied to BoardBabe's topic in Unattended Windows 2000/XP/2003
I've just thought, if you have spaces in your UserProfile path, ulike my machines, there may be a problem, I'll alter the above and earlier posts to suit. <Edit> Done, hope it helps! </Edit> -
Is this reg string unique to each install?
Yzöwl replied to BoardBabe's topic in Unattended Windows 2000/XP/2003
Code deleted, please see the updated version. -
Is this reg string unique to each install?
Yzöwl replied to BoardBabe's topic in Unattended Windows 2000/XP/2003
if you're not working in a cmd window when you run it, then change the last line to pause&endlocal&goto :eof <Edit> If you're running as the Administrator, the SID key always ends in -500 </Edit> -
HOTFIXES: Windows XP SP2 & Windows 2000 SP4
Yzöwl replied to Incroyable HULK's topic in Unattended Windows 2000/XP/2003
@ boooggy, I'm sure that many will find your link useful however, my question only arose since I was under the impression that all critical updates were to be made available without validation by Microsoft. -
Is this reg string unique to each install?
Yzöwl replied to BoardBabe's topic in Unattended Windows 2000/XP/2003
Code deleted, please see the updated version. -
Start wasn't a command in sp1 either! The quickest method would be to create a batch file and name it start.cmd, within it just add a line similar to %comspec% /c %*and place it in a location under %path%. This way the start command would launch this file which would run the command shell using the remainder of your command as its parameters. You can then use it temporarily whilst you correct your error in your programs coding.
-
HOTFIXES: Windows XP SP2 & Windows 2000 SP4
Yzöwl replied to Incroyable HULK's topic in Unattended Windows 2000/XP/2003
Is this a Critical Update? downloading it requires the validation procedure! -
You could pause it using the crude, ping command: ping -n 181 127.0.0.1>nuladding 1 second to the time you require, (in seconds), appears to be more accurate. My preferred method would be using the 'built-in' timer function of WSH, here is a basic template, set for 3 minutes, run it in a cmd console to see it work: @ECHO OFF SET SECONDS=0 SET MINUTES=3 IF %SECONDS% EQU 1 (SET SECS=second) ELSE (SET SECS=seconds) IF %MINUTES% EQU 1 (SET MINS=minute) ELSE (SET MINS=minutes) ECHO/ Pausing for %MINUTES% %MINS% and %SECONDS% %SECS%... ECHO/Wscript.sleep 1000*%SECONDS%+60000*%MINUTES%>TEMP.VBS cscript/nologo TEMP.VBS DEL TEMP.VBS ECHO/ Continuing...
-
The incorrect bit is that all the code you entered has been modified incorrectly due to a problem with the formatting of the forum software. There is no guarantees that the content of your two keys will match anyone elses. Also even without the formatting errors, how many of us will be able to verify that all the hex code is in fact correct. If you want people to try your idea, ask them to backup their own keys first, reboot, check in services.msc, reinstate their keys again, reboot and check again. Also, why remove from, CurrentControlSet and ControlSet001? what about ControlSet002? Why not retry it using only CurrentContolSet? If the point of your exercise is to verify that once removed from that part of the registry, your service will not show in the services.msc console, then that could have just been your question. The answer to which would have been yes, you can also note that the same would have been true had you used sc query AppMgmt at the commandline. Whatever you're pokin' in, there is definitely a safer and better way of achieving your goal.
-
Why? Without checking through all the incorrectly formatted, hex strings, it looks as if you have removed two registry keys, rebooted, re-added the content of those two keys and rebooted. What are you trying to achieve? Could you not simply stop and /or disable the service!
-
Not quite what you were after, but should suffice; try deveject.exe available here. Command Prompt Usage: deveject -EjectDrive:<Drive>|-EjectName:<Name>|-EjectId:<DeviceId> [-v] [-Debug]Example deveject.exe -EjectName:"USB Mass Storage Device"
-
Wrong access rights for moved user shell folders
Yzöwl replied to xpman's topic in Unattended Windows 2000/XP/2003
If you move your folders to a different drive, i.e. D:\%USERNAME%\My Documents, they inherit the settings of the drive, [D:], as their parent folder. The only way to prevent other users from accessing others folders without changing the permissions is to make them all 'Limited Users'. It's all a bit of a mess really! Best solution I've found to date is to ensure that the redirected folders are on FAT32 drives/partitions and don't have multiple users -
Auto frag at the end of installation
Yzöwl replied to Grake's topic in Unattended Windows 2000/XP/2003
Try adding this to your cleanup.cmd defrag %systemdrive% -f