Need a powershell script to delete a word document on intune devices
Hi All,
I am trying to delete a word document on all intune devices. I have tried below but did not work.
Get-ChildItem -Path “%appdata%Microsoftusertemplates” -Filter “WordTemplate-2.dotm” -Recurse | Remove-Item
Get-ChildItem -Path “%appdata%Microsoftusertemplates” -Filter “WordTemplate-2.dotx” -Recurse | Remove-Item
Could you please assist me providing a full powershell script that will work and remove the above files at above location on all the intune devices remotely.
Thanks.
Hi All, I am trying to delete a word document on all intune devices. I have tried below but did not work.Get-ChildItem -Path “%appdata%Microsoftusertemplates” -Filter “WordTemplate-2.dotm” -Recurse | Remove-ItemGet-ChildItem -Path “%appdata%Microsoftusertemplates” -Filter “WordTemplate-2.dotx” -Recurse | Remove-ItemCould you please assist me providing a full powershell script that will work and remove the above files at above location on all the intune devices remotely.Thanks. Read More