nice walls
princektd, on 09 September 2010 - 08:01 PM, said:
how do i put a 'pinned to start menu' shortcut into the wim???
since the user is not created till late I do it this way
I copy all my shortcuts from the Start to a folder here \sources\$OEM$\$1\Install\Start
Export this reg with the Start menu set the way you want it
CMD /C REG EXPORT "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage2" D:\Se7en_UA\uaDVD\sources\$OEM$\$1\Install\StartPage2.reg
Run this in like your firstlogoncommands. Just create a FirstLog.cmd file and run it from there
REM Start Menu Pinned
CMD /C attrib -H "%userprofile%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned"
CMD /C MD "%userprofile%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\StartMenu"
timeout /t 1
CMD /C copy "%systemdrive%\Install\Start\*.*" "%userprofile%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\StartMenu" /Y
timeout /t 1
CMD /C attrib +H "%userprofile%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned"
REGEDIT /S %systemdrive%\Install\StartPage2.reg
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<Description>Running FirstLog.cmd</Description>
<CommandLine>cmd /C start /wait %systemdrive%\Install\FirstLog.cmd</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
think that covers it all
This post has been edited by maxXPsoft: 10 September 2010 - 08:43 AM