Jump to content


anyweb

How can I deploy a customized Windows 10 start menu using System Center 2012 R2 SP1 Configuration Manager ?

Recommended Posts

Is there a wild card that can replace the version number in file names in my custom start menu xml?

 

Example:

DesktopApplicationID="{7C5A40EF-A0FB-4BFC-874A-C0F2E0B9FA8E}\GPS Utility\gpsu525.exe" />

 

Something like a gpsu*.exe so I don't have to update it everytime the software version changes?

 

Thanks

Share this post


Link to post
Share on other sites

Hi anyweb,

 

i have sccm 1606 and tried your script to modify the start menu but i have the error 0x00000001 also. The file is not copied in c:\temp folder. I put the command line after the "Setup Windows and Configuration Manager" step so I in Windows mode.

 

In my smsts log I can see this:

 

Executing command line: smsswd.exe /run:ITC00257 cmd.exe /c copy LayoutModification.xml C:\Windows\Temp & %deployroot%\tools\x64\ServiceUI.exe -process:TSProgressUI.exe %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy bypass -File "ApplyCustomMenu.ps1" TSManager 19/10/2016 14:34:19 4800 (0x12C0)
[ smsswd.exe ] InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
PackageID = 'ITC00257' InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
BaseVar = '', ContinueOnError='' InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
ProgramName = 'cmd.exe /c copy LayoutModification.xml C:\Windows\Temp & %deployroot%\tools\x64\ServiceUI.exe -process:TSProgressUI.exe C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy bypass -File "ApplyCustomMenu.ps1"' InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
SwdAction = '0001' InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
ResolveSource flags: 0x00000000 InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
SMSTSPersistContent: . The content for package ITC00257 will be persisted InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
Package location: _SMSTSITC00257, \\Myserver\SMSPKGD$\ITC00257\
InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
nPos != CCM::Utility::String::npos, HRESULT=80004005 (e:\qfe\nts\sms\framework\tscore\resolvesource.cpp,249) InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
Creating a connection to \\Myserver\SMSPKGD$\ITC00257\
with default account InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
Connection request for "\\Myserver\SMSPKGD$\ITC00257
" InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
No credentials available for connecting to "\\Myserver\SMSPKGD$\ITC00257". See whether the share has already been connected. InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
Connecting to "\\Myserver\SMSPKGD$\ITC00257" InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
Successfully connected to "\\Myserver\SMSPKGD$\ITC00257" InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
Resolved source to '\\Myserver\SMSPKGD$\ITC00257' InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
Command line for extension .exe is "%1" %* InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
Set command line: Run command line InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
Working dir '\\Myserver\SMSPKGD$\ITC00257' InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
Executing command line: Run command line InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
Process completed with exit code 1 InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
The system cannot find the file specified. InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
'\\Myserver\SMSPKGD$\ITC00257' InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
CMD.EXE was started with the above path as the current directory. InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
UNC paths are not supported. Defaulting to Windows directory. InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
The system cannot find the path specified. InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
Command line cmd.exe /c copy LayoutModification.xml C:\Windows\Temp & %deployroot%\tools\x64\ServiceUI.exe -process:TSProgressUI.exe C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy bypass -File "ApplyCustomMenu.ps1" returned 1 InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
ReleaseSource() for \\Myserver\SMSPKGD$\ITC00257\. InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
reference count 1 for the source \\Myserver\SMSPKGD$\ITC00257\ before releasing InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
Released the resolved source \\Myserver\SMSPKGD$\ITC00257\ InstallSoftware 19/10/2016 14:34:19 4456 (0x1168)
Process completed with exit code 1 TSManager 19/10/2016 14:34:19 4800 (0x12C0)

Share this post


Link to post
Share on other sites

As for the IE issue, the only way I got it to consistently display was to create an IE shortcut under %ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Accessories since there is no shortcut to IE there by default. If you use the other optional location (%APPDATA%\Microsoft\Windows\Start Menu\Programs\Accessories) I found that I didn’t actually get it when I logged in the first time. Seemed like maybe a timing issue possibly because the Start menu doesn’t exist in time for the Start screen to reference it when a new profile is created.

 

So I set the IE shortcut line to this and that seemed to work better for me:

 

<start:DesktopApplicationTile Size="2x2" Column="0" Row="2" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Accessories\Internet Explorer.lnk" />

  • Like 1

Share this post


Link to post
Share on other sites

I have created an xml to customize the startmenu and taskbarlayout but i cannot get it to work in my enviroment it gives an error when i want to import the startlayout xml, but i cannot find out what the problem is in the xml. Does anybody see what is wrong ?

 

<?xml version="1.0" encoding="utf-8"?>

<LayoutModificationTemplate
Version="1">
<LayoutOptions StartTileGroupsColumnCount="1" />
<DefaultLayoutOverride>
<StartLayoutCollection>
<defaultlayout:StartLayout GroupCellWidth="6" xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout">
<start:Group Name="" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout">
<start:Tile Size="4x2" Column="0" Row="0" AppUserModelID="Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge" />
<start:Tile Size="2x2" Column="0" Row="2" AppUserModelID="Microsoft.WindowsCalculator_8wekyb3d8bbwe!App" />
<start:Tile Size="2x2" Column="4" Row="0" AppUserModelID="Microsoft.Getstarted_8wekyb3d8bbwe!App" />
<start:DesktopApplicationTile Size="2x2" Column="2" Row="2" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Accessories\Internet Explorer.lnk" />
<start:DesktopApplicationTile Size="2x2" Column="4" Row="2" DesktopApplicationID="Microsoft.Windows.Explorer" />
</start:Group>
</defaultlayout:StartLayout>
</StartLayoutCollection>
</DefaultLayoutOverride>
<CustomTaskbarLayoutCollection PinListPlacement="Replace">
<defaultlayout:TaskbarLayout>
<taskbar:TaskbarPinList>
<taskbar:UWA AppUserModelID="Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge" />
<taskbar:DesktopApp DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\System Tools\File Explorer.lnk" />
<taskbar:DesktopApp DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Accessories\Internet Explorer.lnk" />
<taskbar:DesktopApp DesktopApplicationLinkPath="%appdata%\Microsoft\Windows\Start Menu\Programs\System Tools\Command Prompt.lnk" />
</taskbar:TaskbarPinList>
</defaultlayout:TaskbarLayout>
</CustomTaskbarLayoutCollection>
</LayoutModificationTemplate>

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.