Need to keep some (calculator and the like) Sent from my slightly schizophrenic, but rather cool, BlackBerry Android From:michealespin...@gmail.com Sent:19 April 2016 12:54 am To:ntsys...@lists.myitforum.com Reply to:ntsys...@lists.myitforum.com Subject:Re: [NTSysADM] Help with PowerShell
If you are checking for folder names with PowerShell, why not uninstall the apps in the same go? Get-AppxPackage Microsoft.3d* | Remove-AppxPackage The only reason I've seen to bother with renaming an app folder is for apps that you are trying to kill that are otherwise not removable by integration restrictions. And in those cases, you likely need to also kill the running application because of open-file issues that would prevent you from renaming the folder. -- Espi On Mon, Apr 18, 2016 at 1:44 PM, James Rankin <ja...@htguk.com<mailto:ja...@htguk.com>> wrote: I come here once more with my PowerShell issues... :) I want to rename a bunch of folders from a script (80+). They all have names which can change slightly. For instance, one is Microsoft.3DBuilder_10.9.50.0_neutral_~_8wekyb3d8bbwe But this could change to, for instance Microsoft.3DBuilder_10.10.11.1_neutral_~_8wekyb3d8bbwe at any given moment. Is there any way I could run a PowerShell command to rename a bunch of folders but use a wildcard in the rename syntax (both for source and destination)? That is Microsoft.3DBuilder_*_neutral_~_8wekyb3d8bbwe would rename to BLOCKED_Microsoft.3DBuilder_*_neutral_~_8wekyb3d8bbwe Obviously the wildcard in the renamed folder could simply be the same pattern as found in the original name. Hope this is a little clearer than mud James Rankin EUC Director | HTG TaloSys | 07809 668579 | ja...@htguk.com<mailto:ja...@htguk.com> One Trinity Green, Eldon Street, South Shields, Tyne & Wear, NE33 1SA Tel: 0191 481 3489 Email address: i...@talosys.co.uk<mailto:i...@talosys.co.uk> Website: www.talosys.co.uk<http://www.talosys.co.uk> [phpy9YoGNAM]