Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING Teams - Is it part of 20H2 Nov 2021

drwilkinson84

Active Member
Messages
33
Reaction score
0
Points
6
Hello there

Can someone tell me if Teams is built into 20H2 Nov 2021?
If so how do i go about stripping it out as part of my new task sequence?

Thanks,
 
Hey there,

To be honest I don't know, however If it's not part of office but is part of Windows 10, you may be able to uninstall it as Windows App during the Task Sequence?

If you don't have this already then see below

I have a step "Remove Windows 10 Build-in apps" which runs a PS script "Remove-ModernApps.ps1" to remove the Apps not needed or wanted. See attached script

Cheers
 
Maybe it was removed by the site because it's a ps1.
The script below:
You probably know how to but in case you dont, just copy and paste this below in Notepadd++ and save as .ps1 file. My file name is Remove-ModernApps.ps1

## Get log path. Will log to Task Sequence log folder if the script is running in a Task Sequence
## Otherwise log to \windows\temp

$logPath = "C:\temp"
$logFile = "$logPath\$($myInvocation.MyCommand).log"

## Start logging

Start-Transcript $logFile

Write-Host "Logging to $logFile"


## Configure the apps to be removed
$AppsList = "Microsoft.3DBuilder",
"Microsoft.BingWeather",
"Microsoft.DesktopAppInstaller",
"Microsoft.GetHelp",
"Microsoft.Getstarted",
"Microsoft.Messaging",
"Microsoft.MicrosoftOfficeHub",
"Microsoft.MicrosoftSolitaireCollection",
"Microsoft.MicrosoftStickyNotes",
"Microsoft.Office.OneNote",
"Microsoft.OneConnect",
"Microsoft.People",
"Microsoft.Windows.PeopleExperienceHost",
"Microsoft.Print3D",
"Microsoft.SkypeApp",
"Microsoft.Wallet",
"Microsoft.WindowsAlarms",
"Microsoft.windowscommunicationsapps",
"Microsoft.WindowsFeedbackHub",
"Microsoft.WindowsMaps",
"Microsoft.WindowsSoundRecorder",
"Microsoft.Xbox.TCUI",
"Microsoft.XboxApp",
"Microsoft.XboxGameOverlay",
"Microsoft.XboxIdentityProvider",
"Microsoft.XboxSpeechToTextOverlay",
"Microsoft.ZuneMusic",
"Microsoft.ZuneVideo"


##Remove the Apps listed above or report if app not present
ForEach ($App in $AppsList)
{
$PackageFullName = (Get-AppxPackage $App).PackageFullName
$ProPackageFullName = (Get-AppxProvisionedPackage -Online | Where {$_.Displayname -eq $App}).PackageName
Write-Host $PackageFullName
Write-Host $ProPackageFullName

If ($PackageFullName)
{
Write-Verbose "Removing Package: $App"
Remove-AppxPackage -Package $PackageFullName
}


Else
{
Write-Host "Unable To Find Package: $App"
}


If ($ProPackageFullName)
{
Write-Verbose "Removing Provisioned Package: $ProPackageFullName"
Remove-AppxProvisionedPackage -Online -PackageName $ProPackageFullName
}


Else
{
Write-Verbose "Unable To Find Provisioned Package: $App"
}
}


## Stop logging
Stop-Transcript

##End
 
Thank you for that, i am going to impliment this and test so will let you know, if i wanted to add Microsoft Teams to that would it just be a case of adding another line like this

"Microsoft.Teams"
 
Hi DrWilkinson84, Yes I am just going on the speculation that Teams may be included as Windows App though. If they do include it, which I do not know yet, yes that will be correct. You can just run this in Powershell(as admin) "Get-AppxPackage -AllUsers" without the quotes tho. This will give you of list of apps installed.

Hope this helps
 
So i have tested this and it didnt remove any of the applications on the list, does this need to be places in a certain location on the Task Sequence to work?

Thanks,
 
Hi mate, sorry to hear that.

That script work for me however on 1909 and these scripts may work or may not work on different version of Windows 10.

Maybe check this link for newer scripts out
Remove built-in apps for Windows 10 version 20H2

I have it near the end after all apps and network settings are installed in the POST OSD Tasks, but before Bitlocker gets enabled again. I created a empty package with program that runs this Powershell.exe -ExecutionPolicy Bypass -file "Remove-ModernApps.ps1" then add a "Run Powershells Script" to the Task Sequence and point it to the package, however at other companies I worked at I also had the same script but just added the "RUN Command Line" Task instead and then just added the command Powershell.exe -ExecutionPolicy Bypass -file "Remove-ModernApps.ps1" or you can just create a batch file with the command and then put that in the package to execute it.

Hope this help :)
 
So basically I have created it like this, i just added the PS script into the Task Sequence. So you are saying i should do it the other way?

1621262541545.png
 
Hi

Sorry, I have never done it that way. I also have never seen someone else do it.

Maybe try what I suggested, because I know for sure it works and I've used it in 4 different environments in various companies.

Also see the log path at the top of the script, make sure your task sequence creates the C:\Temp folder before you get to this step of running the script

Let me know how it goes.
 
Hi there

Sorry to be a pain but is there anywhere that can outline this step by step?

Also do you know anything about making sure bit locker comes back on during my TS?

Thanks,
David
 
Your way may work, have you tested the script or the scripts from the link I provided in previous reply?

Test it separately from the Task Sequence on a Computer with all the base apps installed

Copy the script into Notepad or Notepad ++ and save as ".ps1 file. Open Powershell ISE as admin and then open the saved ps1 file in powershell ISE. Then in powershell click on run and see if it removes the apps
Also check the log created by the Script i sent you. The logs are in C:\Temp folder. It may tell you where it went wrong

Like I said it may be the script being out of date because the one I gave you works on 1903/1909

Here: Remove built-in apps for Windows 10 version 20H2

Basically you need to create a Package in SCCM
set the Folder content to point where your script was saved
Create a Program in the Package and set the comand line to :
Powershell.exe -ExecutionPolicy Bypass -file "Remove-ModernApps.ps1"

Then in the Task Sequence in that same task where you pasted the script, instead of doing that, pick the "select a Package with a Powershell script" and then just browse to the package and use your package.

I will try to find you step by step guide and come back to you.
 

Forum statistics

Threads
7,215
Messages
28,144
Members
18,428
Latest member
Blackcee

Trending content

Back
Top