Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Having problems running a PowerShell script to repair missing Start Menu Icons


  • Please log in to reply
5 replies to this topic

#1 midimusicman79

midimusicman79

  • Members
  • 762 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Norway
  • Local time:04:19 AM

Posted 19 January 2018 - 08:03 AM

Hi all!

 

After having upgraded to Windows 10 Fall Creators Update, eventually, I noticed that several random Start Menu Icons were missing on boot, but only occasionally.

 

So I decided to search online for an effective solution and found a PowerShell script that supposedly would do the trick and ran it as per listed, i.e. one by one and pressing Enter on each line.

 

The first three commands worked well, but the fourth returned an error message, however, I am just not yet that familiar with PowerShell, so consequently, I am unsure as to what to make out of it. :unsure:

 

Here is where I found the PowerShell script: https://www.windowscentral.com/how-fix-missing-apps-start-menu-windows-10-fall-creators-update

 

And here is the script itself:

reg delete "HKCU\Software\Microsoft\Windows NT\CurrentVersion\TileDataModel\Migration\TileStore" /va /f

get-appxpackage -packageType bundle |% {add-appxpackage -register -disabledevelopmentmode ($_.installlocation + "\appxmetadata\appxbundlemanifest.xml")}

$bundlefamilies = (get-appxpackage -packagetype Bundle).packagefamilyname

get-appxpackage -packagetype main |? {-not ($bundlefamilies -contains $_.packagefamilyname)} |% {add-appxpackage -register -disabledevelopmentmode ($_.installlocation + "\appxmanifest.xml")}

Here is the error message:

add-appxpackage : Cannot find path 'C:\appxmanifest.xml' because it does not exist.
At line:1 char:98
+ ... yname)} |% {add-appxpackage -register -disabledevelopmentmode ($_.ins ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\appxmanifest.xml:String) [Add-AppxPackage], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

I should note that I ran PowerShell as Administrator, did not have any apps running, and the missing Start Menu Icons actually returned while running the first and second commands. :)

 

I have also run SFC and three DISM commands, but none of them returned any errors.

 

And hence, my question is as follows;

 

How do I fix this, as in could there be any syntax error, or is this nothing to worry about?

 

Thank you very much in advance!

 

Regards,

midimusicman79


MS Win 10 Pro 64-bit, EAM Pro/EEK, MB 3 Free, WPP, SWB Free, CryptoPrevent Free, NVT OSA and Unchecky, WFW, FFQ with CanDef, uBO, Ghostery, Grammarly Free and HTTPS Ew. Acronis TI 2018, K. Sw. Upd. AM-tools: 9-lab RT BETA, AdwCleaner, Auslogics AM, aswMBR, Avira PCC, BD ART, catchme, Cezurity AV, CCE, CKS, ClamWin P., Crystal Sec., DDS, DWCI, EMCO MD, eScan MWAV, ESS/EOS, FGP, FMTB, FRST, F-SOS, FSS, FreeFixer, GMP, GMER, hP BETA, HJT, Inherit, JRT, K. avz4, KVRT, K. TDSSKiller, LSP-Fix, MB 3 Free, MBAR BETA, MA Stinger, NMC, NoBot, NPE, NSS, NVT MRF (NMRF), OTL, PCC, QD, RCS, RSIT, RKill, Rs, SC, SR, SAP, SVRT, SAS, SL, TMHC, TSA ART, UHM, Vba32 AR, VRS, WR (AiO), Xvirus PG, ZAM, ZHPC, ZHPD and Zoek. I have 23 Years of PC Experience. Bold = effective.


BC AdBot (Login to Remove)

 


#2 dc3

dc3

    Bleeping Treehugger


  • Members
  • 30,714 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Sierra Foothills of Northern Ca.
  • Local time:07:19 PM

Posted 19 January 2018 - 10:09 AM

The PowerShell script is to re-register apps.

 

When you ran the sfc /scannow were there any integrity violations found?  If there weren't any found you should have received the message "no integrity violations were found".

 

Please do the following.

 

    Open the Task manager.

    Click/tap on File, then Run New Task.

    Make sure you have a check mark beside Create this task with Administrative privileges.

    Type Powershell

    Copy and paste the following in the Powershell prompt:

    $manifest = (Get-AppxPackage Microsoft.WindowsStore).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest

    Close the Powershell window.

    Reboot the computer.


Edited by dc3, 19 January 2018 - 10:26 AM.

Family and loved ones will always be a priority in my daily life.  You never know when one will leave you.

 

 

 

 


#3 midimusicman79

midimusicman79
  • Topic Starter

  • Members
  • 762 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Norway
  • Local time:04:19 AM

Posted 20 January 2018 - 09:57 AM

Hi, dc3!

 

Sorry for the late reply, but anyway:

 

Thank you for the prompt and insightful reply! :)

 

When I ran the SFC command, it returned the message: "No integrity violations were found".

 

And when I ran the DISM commands, they all returned the message: "The operation completed successfully".

 

I am running MS Windows 10 Pro 64-bit version 1709, OS-build 16299.192, which is fully updated.

 

I have run the PowerShell command that you instructed exactly as listed and rebooted the computer (The PowerShell prompt actually uses a bigger font size by default as opposed to when ran from Run Box).

 

And after this, I have pleasantly noticed that every time I boot or reboot, a new lock/logon screen picture comes up (I use automatic logon to a local account). In fact, I have had the same lock/logon screen picture for ages. :)

 

So, is there anything more that I should do now, or am I good to go?

 

Regards,

midimusicman79


MS Win 10 Pro 64-bit, EAM Pro/EEK, MB 3 Free, WPP, SWB Free, CryptoPrevent Free, NVT OSA and Unchecky, WFW, FFQ with CanDef, uBO, Ghostery, Grammarly Free and HTTPS Ew. Acronis TI 2018, K. Sw. Upd. AM-tools: 9-lab RT BETA, AdwCleaner, Auslogics AM, aswMBR, Avira PCC, BD ART, catchme, Cezurity AV, CCE, CKS, ClamWin P., Crystal Sec., DDS, DWCI, EMCO MD, eScan MWAV, ESS/EOS, FGP, FMTB, FRST, F-SOS, FSS, FreeFixer, GMP, GMER, hP BETA, HJT, Inherit, JRT, K. avz4, KVRT, K. TDSSKiller, LSP-Fix, MB 3 Free, MBAR BETA, MA Stinger, NMC, NoBot, NPE, NSS, NVT MRF (NMRF), OTL, PCC, QD, RCS, RSIT, RKill, Rs, SC, SR, SAP, SVRT, SAS, SL, TMHC, TSA ART, UHM, Vba32 AR, VRS, WR (AiO), Xvirus PG, ZAM, ZHPC, ZHPD and Zoek. I have 23 Years of PC Experience. Bold = effective.


#4 dc3

dc3

    Bleeping Treehugger


  • Members
  • 30,714 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Sierra Foothills of Northern Ca.
  • Local time:07:19 PM

Posted 20 January 2018 - 10:19 AM

If the computer is operating to your satisfaction I would say you're done here.


Family and loved ones will always be a priority in my daily life.  You never know when one will leave you.

 

 

 

 


#5 midimusicman79

midimusicman79
  • Topic Starter

  • Members
  • 762 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Norway
  • Local time:04:19 AM

Posted 21 January 2018 - 09:02 AM

Hi again, dc3!

 

Thank you very much for the help! :) The issue has been successfully resolved! :thumbup2:

 

Regards,

midimusicman79


MS Win 10 Pro 64-bit, EAM Pro/EEK, MB 3 Free, WPP, SWB Free, CryptoPrevent Free, NVT OSA and Unchecky, WFW, FFQ with CanDef, uBO, Ghostery, Grammarly Free and HTTPS Ew. Acronis TI 2018, K. Sw. Upd. AM-tools: 9-lab RT BETA, AdwCleaner, Auslogics AM, aswMBR, Avira PCC, BD ART, catchme, Cezurity AV, CCE, CKS, ClamWin P., Crystal Sec., DDS, DWCI, EMCO MD, eScan MWAV, ESS/EOS, FGP, FMTB, FRST, F-SOS, FSS, FreeFixer, GMP, GMER, hP BETA, HJT, Inherit, JRT, K. avz4, KVRT, K. TDSSKiller, LSP-Fix, MB 3 Free, MBAR BETA, MA Stinger, NMC, NoBot, NPE, NSS, NVT MRF (NMRF), OTL, PCC, QD, RCS, RSIT, RKill, Rs, SC, SR, SAP, SVRT, SAS, SL, TMHC, TSA ART, UHM, Vba32 AR, VRS, WR (AiO), Xvirus PG, ZAM, ZHPC, ZHPD and Zoek. I have 23 Years of PC Experience. Bold = effective.


#6 dc3

dc3

    Bleeping Treehugger


  • Members
  • 30,714 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Sierra Foothills of Northern Ca.
  • Local time:07:19 PM

Posted 21 January 2018 - 09:51 AM

Happy computing. :thumbup2:


Family and loved ones will always be a priority in my daily life.  You never know when one will leave you.

 

 

 

 





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users