Windows 10: Unable to retrieve application names from the PowerShell script

Discus and support Unable to retrieve application names from the PowerShell script in Windows 10 Installation and Upgrade to solve the problem; Hello,I have a remote server that has Software Center SCCM installed on it. In this SCCM there are application updates on the top left column which... Discussion in 'Windows 10 Installation and Upgrade' started by Yuvraj Deshmukh 4, Nov 19, 2024.

  1. Unable to retrieve application names from the PowerShell script


    Hello,I have a remote server that has Software Center SCCM installed on it. In this SCCM there are application updates on the top left column which contains the available/failed names of applications along with some other types like Registry Keys or CVEs.I am trying to retrieve the names of all the applications by using a PowerShell script, but the problem is that when I run the script it only shows me the list of applications and not the Registry Keys or the CVEs.I am using the Get-WmiObject -Class CCM_Application command for the script, but it looks like there is a different command to ret

    :)
     
    Yuvraj Deshmukh 4, Nov 19, 2024
    #1
  2. Eric Ber Win User

    Retrieve and Install Sticky Notes via PowerShell

    Hi Matty,

    Reinstalling an application via PowerShell needs an administrator access to continue. If you have administrator access, you can follow the steps below to install Sticky Notes using PowerShell:

    • Open PowerShell with admin rights. To do so, type Windows
      PowerShell in the search box to see PowerShell in results, right-click on PowerShell, and then click
      Run as administrator option.
    • In the PowerShell prompt, type the following command and press the Enter key:

      Get-Appxpackage –Allusers

      Scroll down and locate the entry of the app that you want to reinstall and copy the package name. Since you are looking for the Sticky Notes app, locate the Sticky Notes entry, and then copy the package name of Sticky Notes.
    • Now, you will need to execute the following command to add the app:

      Add-AppxPackage -register "C:\Program Files\WindowsApps\PackageFullName\appxmanifest.xml" -DisableDevelopmentMode

      Replace PackageFullName term in the above command with the copied PackageFullName information from step 2.

    If you do not have an administrator access to your computer, we suggest that you contact your IT admin to be able to install Sticky Notes via PowerShell.

    Should you need further assistance, don't hesitate to get back to us.
     
    Eric Ber, Nov 19, 2024
    #2
  3. Phil96 Win User
    Powershell Script - Reinstalling Application

    Hoping someone can assist, I'm trying to create a powershell script that uninstalls and then reinstalls an application, the new installer is using an executable file (.exe). I've been able to get the commands to run when opening Powershell as Admin and copying the code in there but when I'm creating a PS1 File with the expectation of being able to use it across multiple machines it fails, this looks to be down to it not being ran with administrative privileges and when it is ran with Admin privileges it seems to close without running.

    Current Code:

    Code:
    I have tried creating a shortcut to the ".ps1" file, the initial stumble block was not being able to select 'Run as administrator' within advanced properties, to surpass this I added in target prior to path "powershell.exe" which then allowed this option to be selected, once selected I proceed to open the shortcut which opens powershell but then immediately closing it without running the code.

    I have also tried creating a batch file to open powershell initially and then open powershell with administrative permissions by using the below but this results similarly to the above whereby it closes the new powershell window without running the code.

    Code:
    Hoping someone may be able to advise where I'm going wrong.
     
    Phil96, Nov 19, 2024
    #3
  4. Unable to retrieve application names from the PowerShell script

    PowerShell scripts not working with Call operator

    Hi,



    Thank you for writing to Microsoft Community Forums.



    I understand that you are facing issues while developing a PowerShell script using the Call operator. I would suggest you to refer the articles

    The Windows PowerShell ISE
    .



    However, as the issue is related to developing PowerShell scripts, I would suggest you to post your query on

    MSDN forums
    , where we have expertise and developers who are well equipped with the knowledge of developing PowerShell scripts in Windows.



    Regards,

    Prakhar Khare

    Microsoft Community – Moderator
     
    Prakhar_Khare, Nov 19, 2024
    #4
Thema:

Unable to retrieve application names from the PowerShell script

Loading...
  1. Unable to retrieve application names from the PowerShell script - Similar Threads - Unable retrieve application

  2. Unable to retrieve application names from the PowerShell script

    in Windows 10 Gaming
    Unable to retrieve application names from the PowerShell script: Hello,I have a remote server that has Software Center SCCM installed on it. In this SCCM there are application updates on the top left column which contains the available/failed names of applications along with some other types like Registry Keys or CVEs.I am trying to...
  3. Unable to retrieve application names from the PowerShell script

    in Windows 10 Software and Apps
    Unable to retrieve application names from the PowerShell script: Hello,I have a remote server that has Software Center SCCM installed on it. In this SCCM there are application updates on the top left column which contains the available/failed names of applications along with some other types like Registry Keys or CVEs.I am trying to...
  4. Unable to execute the Powershell scripts on Windows 11

    in Windows 10 Gaming
    Unable to execute the Powershell scripts on Windows 11: Hi, I am trying to execute the "Powershell" scripts on Windows 11 which was working great in Windows10.But, I am unable to execute it on Windows 11. So, I have tried executing the PS1 script is multiple ways, 1. Right click -> Run Powershell=> Powershell screen was blinked...
  5. PowerShell script

    in Windows 10 Support
    PowerShell script: The code below tests a series of IPs in a txt file.The result is as follows and is written in a txt file. 19.191.12.161 - online 19.191.12.162 - offline 19.191.12.163 - offline 19.191.12.164 - offline 19.191.12.165 - offline also see the scrennshot Code: $Output= @()$GetIP =...
  6. Powershell Script - Reinstalling Application

    in Windows 10 Support
    Powershell Script - Reinstalling Application: Hoping someone can assist, I'm trying to create a powershell script that uninstalls and then reinstalls an application, the new installer is using an executable file (.exe). I've been able to get the commands to run when opening Powershell as Admin and copying the code in...
  7. powershell scripts

    in AntiVirus, Firewalls and System Security
    powershell scripts: Hi, I have azure. Someone is somehow installing powershell scripts onto my computer that allows them to host my PC through P2P and UDP connections, well I think so anyway. I have only just found powershell script entry changes in my registry by accident. These criminals...
  8. Powershell script -- new computer name with duplicated name in Active Directory

    in Windows 10 Customization
    Powershell script -- new computer name with duplicated name in Active Directory: Dear folks, Anyone knows what's the powershell script for check if it's duplicate computer name in Active Directory after give a new computer name for a desktop or laptop? Thanks. Nick...
  9. powershell script

    in Windows 10 Customization
    powershell script: looking for a script to monitor for a folder, if there is a file in that folder send it as an email, once the email is sent out, confirm and then move the files to an archive folder. monitor c:\test\*.pdf No files, do not send email. Yes Files, send an email to someone at...
  10. PowerShell Scripting - Run a Script from Shortcut

    in Windows 10 Tutorials
    PowerShell Scripting - Run a Script from Shortcut: How to: PowerShell Scripting - Run a Script from Shortcut [img] Information One of many PowerShell security features is that you can't run a script simply by double clicking it's icon on desktop or in a folder. Doing so will by default open script in Notepad for editing...