I am trying to write a PowerShell script to remove the desktop icon for Chrome after installing through sccm. However, certain users in the network have their desktop directed t
What you are looking for is known as the $home variable. It's one of PowerShell's built-in automatic variables.
$home
It defaults to the user-profile path, so drill down to the desktop like this:
If (Test-Path "$home\Desktop\Google Chrome.lnk") { Remove-Item "$home\Desktop\Google Chrome.lnk" }