Joachim Emde
My feedback
-
504 votes
Thank you for your feedback! This is our on backlog, we will share an update as soon as one is available.
An error occurred while saving the comment
Thank you for your feedback! This is our on backlog, we will share an update as soon as one is available.
Yes, the Teams programers do not know anything about enterprise installations of Windows.
Here is a skript which moves some directories out of the profile and cleans some things.
----------8<-------------------------------------------
#
# Removes unnecessary files in the local profile, moves them to the user's home directory and
# creates symbolic links instead
#
# Set-PSDebug -Trace 2
cd $env:userprofile
# Moves the $source directory from the profile directly to the user's home directory
function MoveDir([String] $Quelle,[String] $Ziel) {
if ([System.IO.Directory]::Exists("$env:userprofile\$Quelle")) {
if (-not ((get-item "$Quelle").Attributes -band [IO.FileAttributes]::ReparsePoint)) {
Move-Item "$Quelle" "$env:homeshare\$Ziel" -Force
# Sometimes empty directories are left behind
Get-Item "$Quelle" | Remove-Item -Force -Recurse
}
}
if ([System.IO.Directory]::Exists("$env:homeshare\$Ziel")) {
if (-not ((get-item "$quelle").Attributes -band [IO.FileAttributes]::ReparsePoint)) {
New-Item -Path "$quelle" -ItemType SymbolicLink -Value "$env:homeshare\$Ziel"
}
}
}
# Create the Microsoft directory if it does not already exist
if (-not [System.IO.Directory]::Exists("$env:homeshare\Microsoft")) {
New-Item -Path "$env:homeshare\Microsoft" -ItemType directory
}
# Remove directories from the profiles
MoveDir ".swt" ".swt"
MoveDir ".zenmap" ".zenmap"
MoveDir "3D Objects" "3D Objects"
MoveDir "Evernote" "Evernote"
MoveDir "MicrosoftEdgeBackups" "MicrosoftEdgeBackups"
MoveDir "AppData\Roaming\Microsoft\Teams" "Microsoft\Teams"
MoveDir "AppData\Roaming\Microsoft\Templates" "Microsoft\Templates"
MoveDir "AppData\Roaming\Microsoft\Windows" "Microsoft\Windows"
MoveDir "AppData\Roaming\Mozilla" "Mozilla"
# Are generated incorrectly every now and then
Get-Item "$env:userprofile\Cookies" | Remove-Item -Force -Recurse
Get-Item "$env:userprofile\Contacts" | Remove-Item -Force -Recurse
Get-Item "$env:userprofile\Desktop" | Remove-Item -Force -Recurse
Get-Item "$env:userprofile\Documents" | Remove-Item -Force -Recurse
Get-Item "$env:userprofile\Downloads" | Remove-Item -Force -Recurse
Get-Item "$env:userprofile\Favorites" | Remove-Item -Force -Recurse
Get-Item "$env:userprofile\Links" | Remove-Item -Force -Recurse
Get-Item "$env:userprofile\Music" | Remove-Item -Force -Recurse
Get-Item "$env:userprofile\Pictures" | Remove-Item -Force -Recurse
Get-Item "$env:userprofile\Saved Games" | Remove-Item -Force -Recurse
Get-Item "$env:userprofile\Searches" | Remove-Item -Force -Recurse
Get-Item "$env:userprofile\Videos" | Remove-Item -Force -Recurse
# Remove temporary registry backup files
Get-Item "*.tmp" -Force | Where CreationTime -lt (Get-Date).AddDays(-45) | Remove-Item -Force
# Remove Intel log files
Get-Item "Intel\Logs\*.log" | Remove-Item -Force
----------8<-------------------------------------------
You also have to allow users to create symbolic links. Search for "allow user to create symbolic link gpo".