Jump to content


Search the Community

Showing results for tags 'deploying powershell'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Cloud
    • Azure
    • Microsoft Intune
    • Office 365
    • Windows 365
  • General Stuff
    • General Chat
    • Events
    • Site News
    • Official Forum Supporters
    • Windows News
    • Suggestion box
    • Jobs
  • MDT, SMS, SCCM, Current Branch &Technical Preview
    • How do I ?
    • Microsoft Deployment Toolkit (MDT)
    • SMS 2003
    • Configuration Manager 2007
    • Configuration Manager 2012
    • System Center Configuration Manager (Current Branch)
    • Packaging
    • scripting
    • Endpoint Protection
  • Windows Client
    • how do I ?
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows Vista
    • Windows XP
    • windows screenshots
  • Windows Server
    • Windows Server General
    • Active Directory
    • Microsoft SQL Server
    • System Center Operations Manager
    • KMS
    • Windows Deployment Services
    • NAP
    • Failover Clustering
    • PKI
    • Hyper V
    • Exchange
    • IIS/apache/web server
    • System Center Data Protection Manager
    • System Center Service Manager
    • System Center App Controller
    • System Center Virtual Machine Manager
    • System Center Orchestrator
    • Lync
    • Application Virtualization
    • Sharepoint
    • WSUS

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests

Found 1 result

  1. Hello all Running SCCM 1606 Hoping I can get a push in the right direction. I'm looking to uninstall a program on a few hundred PC's. The package was deployed via SCCM , but the uninstall does not work so I dug up an PS script from online. The following PS Script works just fine if it's ran locally on the clients. $appVer = Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object {$_.DisplayName -match "Some Application" } | Select-Object -Property DisplayName, UninstallString ForEach ($ver in $appVer) { If ($ver.UninstallString) { $uninst = $ver.UninstallString & cmd /c $uninst /u } } I have created a package without any source files. I have created a program with the following command line powershell.exe -ExecutionPolicy ByPass -File \\servername\Applications\application\Uninstall\ps\Uninstall.ps1 Runs with Administrative rights Runs with UNC name Whether or not a users is logged on. I deploy to the collection that has this piece of software installed but it never runs on them. I have allowed PowerShell execution on the client settings. I can push other SW to these computers by they way. Any help would be very much appreciated.
×
×
  • 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.