Solve Problems with PowerShell

Discussion in 'Programming and Windows PowerShell' started by Vince Massi, Mar 20, 2016.

  1. Vince Massi

    Vince Massi

    Joined:
    Feb 18, 2016
    Messages:
    400
    Likes Received:
    41
    Location:
    Mexico
    Folks, I recently solved a problem with my Start Button by using PowerShell. It is a free utility built into Windows 10, that is primarily designed to help developers. However, it has a few problem-solving tools that you can use. To enter PowerShell, right-click your task bar and select Task Manager--File--Run New Task. Then type powershell into the box and check the box giving you Administrator privileges.

    Surfing the web, I found these useful problem-solvers:


    When the Start Button won’t work Run the System File Checker

    Type sfc /scannow into the window and press the [Return] key. The scan may take some time and will end with one of three results. Windows did not find any integrity violations and Windows Resource Protection found corrupt files and repaired them mean there are now no corrupt files, but Windows Resource Protection found corrupt files but was unable to fix some (or all) of them indicates a problem.

    In this latter case, type (or copy and paste) DISM /Online /Cleanup-Image /RestoreHealth into the PowerShell window and press the [Return] key. This will download files from Windows Update to replace the corrupt ones and, again, this may take some time.

    If your Start Button still won't work---Re-install the aps that came loaded into your Start Button:

    Reinstall Windows apps

    Launch the Task manager and open a new PowerShell window with administrative privileges, as explained above.

    When the Windows PowerShell window opens copy the line below and paste it into the PowerShell window by simply right-clicking at the blinking PS C:\WINDOWS\system32> prompt, or by pressing [Ctrl] + [V] on the keyboard:

    Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

    Wait until the app download and installation process completes — ignore any red text that appears — and restart Windows.




    Remove Pre-Installed Apps

    You can use PowerShell to remove pre-installed apps. Use the following code to remove Zune Player from Windows 10 operating system.

    Get-AppxPackage -Name *ZuneMusic* | Remove-AppxPackage



    If you have any other app that you wish to uninstall then simply change the name between the asterix symbols.



    Can't get rid of malware because it starts automatically and it can't be deleted while running?
    Stop Running Process (Application)

    Let's assume that we have Notepad app running in the background. If you wish to disable or close the app then use the following command.

    Stop-Process -Name notepad




    Malware has blocked you from running Windows Defender?

    Run Windows Defender

    Run the Start-MpScan command. The base command will start a scan using default parameters. You can signify which drive or directory to scan using a parameter like -ScanPath “C:”. You can also indicate a scan type using -ScanType [QuickScan/FullScan/CustomScan].

    Update threat signatures. Malware scans with Windows Defender are only as good as the threat definitions that Windows Defender knows about. Keeping those definitions up-to-date is crucial. You can use the Update-MpSignature command for this.
     
    Vince Massi, Mar 20, 2016
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. sbur87

    Where Is Powershell?

    sbur87, Jun 4, 2015, in forum: Programming and Windows PowerShell
    Replies:
    2
    Views:
    1,436
    davehc
    Jun 4, 2015
  2. rumour6
    Replies:
    1
    Views:
    1,905
    Regedit32
    Jul 28, 2017
  3. TPS_456

    Powershell didn't help! Now getting other errors

    TPS_456, Aug 3, 2015, in forum: Programming and Windows PowerShell
    Replies:
    3
    Views:
    991
    TPS_456
    Aug 3, 2015
  4. harshil
    Replies:
    1
    Views:
    1,413
    remostalin
    Aug 5, 2015
  5. geeki_review
    Replies:
    7
    Views:
    3,174
    geeki_review
    Sep 9, 2015
  6. Ahmad Wali

    how to solve entering password when turn on my PC

    Ahmad Wali, Feb 28, 2017, in forum: General Discussion
    Replies:
    1
    Views:
    306
    Regedit32
    Feb 28, 2017
  7. Katcrazy111

    I am in a Pickle. 100% a pickle (Please solve. PLEASE)

    Katcrazy111, Mar 7, 2017, in forum: Windows 10 Support
    Replies:
    8
    Views:
    599
    mewtwo7778
    Jul 26, 2017
  8. Shamsuddin Faisal
    Replies:
    7
    Views:
    738
    Trouble
    Jun 11, 2017
Loading...