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> wrote:

> I come here once more with my PowerShell issues… J
>
>
>
> 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
>
> One Trinity Green, Eldon Street, South Shields, Tyne & Wear, NE33 1SA
>
> Tel: 0191 481 3489
>
> Email address: i...@talosys.co.uk
>
> Website: www.talosys.co.uk
>
> [image: phpy9YoGNAM]
>
>
>

Reply via email to