Skip to content

Commit 4505402

Browse files
authored
Destination no longer supports wildcards (#10902)
1 parent 8f18f38 commit 4505402

File tree

5 files changed

+41
-33
lines changed

5 files changed

+41
-33
lines changed

reference/5.1/Microsoft.PowerShell.Management/Move-Item.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Management
5-
ms.date: 12/12/2022
5+
ms.date: 02/26/2024
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/move-item?view=powershell-5.1&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Move-Item
@@ -18,17 +18,17 @@ Moves an item from one location to another.
1818
### Path (Default)
1919

2020
```
21-
Move-Item [-Path] <String[]> [[-Destination] <String>] [-Force] [-Filter <String>] [-Include <String[]>]
22-
[-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf] [-Confirm] [-UseTransaction]
23-
[<CommonParameters>]
21+
Move-Item [-Path] <String[]> [[-Destination] <String>] [-Force] [-Filter <String>]
22+
[-Include <String[]>] [-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf]
23+
[-Confirm] [-UseTransaction] [<CommonParameters>]
2424
```
2525

2626
### LiteralPath
2727

2828
```
29-
Move-Item -LiteralPath <String[]> [[-Destination] <String>] [-Force] [-Filter <String>] [-Include <String[]>]
30-
[-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf] [-Confirm] [-UseTransaction]
31-
[<CommonParameters>]
29+
Move-Item -LiteralPath <String[]> [[-Destination] <String>] [-Force] [-Filter <String>]
30+
[-Include <String[]>] [-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf]
31+
[-Confirm] [-UseTransaction] [<CommonParameters>]
3232
```
3333

3434
## DESCRIPTION
@@ -149,13 +149,13 @@ Required: False
149149
Position: Named
150150
Default value: Current user
151151
Accept pipeline input: True (ByPropertyName)
152-
Accept wildcard characters: False
152+
Accept wildcard characters: True
153153
```
154154
155155
### -Destination
156156
157157
Specifies the path to the location where the items are being moved. The default is the current
158-
directory. Wildcards are permitted, but the result must specify a single location.
158+
directory. Wildcards are permitted, but the result must resolve to a single location.
159159
160160
To rename the item being moved, specify a new name in the value of the **Destination** parameter.
161161

reference/7.2/Microsoft.PowerShell.Management/Move-Item.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Management
5-
ms.date: 12/12/2022
5+
ms.date: 02/26/2024
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/move-item?view=powershell-7.2&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Move-Item
@@ -18,15 +18,17 @@ Moves an item from one location to another.
1818
### Path (Default)
1919

2020
```
21-
Move-Item [-Path] <String[]> [[-Destination] <String>] [-Force] [-Filter <String>] [-Include <String[]>]
22-
[-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
21+
Move-Item [-Path] <String[]> [[-Destination] <String>] [-Force] [-Filter <String>]
22+
[-Include <String[]>] [-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf]
23+
[-Confirm] [<CommonParameters>]
2324
```
2425

2526
### LiteralPath
2627

2728
```
28-
Move-Item -LiteralPath <String[]> [[-Destination] <String>] [-Force] [-Filter <String>] [-Include <String[]>]
29-
[-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
29+
Move-Item -LiteralPath <String[]> [[-Destination] <String>] [-Force] [-Filter <String>]
30+
[-Include <String[]>] [-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf]
31+
[-Confirm] [<CommonParameters>]
3032
```
3133

3234
## DESCRIPTION
@@ -153,7 +155,7 @@ Accept wildcard characters: False
153155
### -Destination
154156
155157
Specifies the path to the location where the items are being moved. The default is the current
156-
directory. Wildcards are permitted, but the result must specify a single location.
158+
directory. Wildcards aren't permitted.
157159
158160
To rename the item being moved, specify a new name in the value of the **Destination** parameter.
159161

reference/7.3/Microsoft.PowerShell.Management/Move-Item.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Management
5-
ms.date: 12/12/2022
5+
ms.date: 02/26/2024
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/move-item?view=powershell-7.3&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Move-Item
@@ -18,15 +18,17 @@ Moves an item from one location to another.
1818
### Path (Default)
1919

2020
```
21-
Move-Item [-Path] <String[]> [[-Destination] <String>] [-Force] [-Filter <String>] [-Include <String[]>]
22-
[-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
21+
Move-Item [-Path] <String[]> [[-Destination] <String>] [-Force] [-Filter <String>]
22+
[-Include <String[]>] [-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf]
23+
[-Confirm] [<CommonParameters>]
2324
```
2425

2526
### LiteralPath
2627

2728
```
28-
Move-Item -LiteralPath <String[]> [[-Destination] <String>] [-Force] [-Filter <String>] [-Include <String[]>]
29-
[-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
29+
Move-Item -LiteralPath <String[]> [[-Destination] <String>] [-Force] [-Filter <String>]
30+
[-Include <String[]>] [-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf]
31+
[-Confirm] [<CommonParameters>]
3032
```
3133

3234
## DESCRIPTION
@@ -153,7 +155,7 @@ Accept wildcard characters: False
153155
### -Destination
154156
155157
Specifies the path to the location where the items are being moved. The default is the current
156-
directory. Wildcards are permitted, but the result must specify a single location.
158+
directory. Wildcards aren't permitted.
157159
158160
To rename the item being moved, specify a new name in the value of the **Destination** parameter.
159161

reference/7.4/Microsoft.PowerShell.Management/Move-Item.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Management
5-
ms.date: 12/12/2022
5+
ms.date: 02/26/2024
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/move-item?view=powershell-7.4&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Move-Item
@@ -18,15 +18,17 @@ Moves an item from one location to another.
1818
### Path (Default)
1919

2020
```
21-
Move-Item [-Path] <String[]> [[-Destination] <String>] [-Force] [-Filter <String>] [-Include <String[]>]
22-
[-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
21+
Move-Item [-Path] <String[]> [[-Destination] <String>] [-Force] [-Filter <String>]
22+
[-Include <String[]>] [-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf]
23+
[-Confirm] [<CommonParameters>]
2324
```
2425

2526
### LiteralPath
2627

2728
```
28-
Move-Item -LiteralPath <String[]> [[-Destination] <String>] [-Force] [-Filter <String>] [-Include <String[]>]
29-
[-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
29+
Move-Item -LiteralPath <String[]> [[-Destination] <String>] [-Force] [-Filter <String>]
30+
[-Include <String[]>] [-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf]
31+
[-Confirm] [<CommonParameters>]
3032
```
3133

3234
## DESCRIPTION
@@ -153,7 +155,7 @@ Accept wildcard characters: False
153155
### -Destination
154156
155157
Specifies the path to the location where the items are being moved. The default is the current
156-
directory. Wildcards are permitted, but the result must specify a single location.
158+
directory. Wildcards aren't permitted.
157159
158160
To rename the item being moved, specify a new name in the value of the **Destination** parameter.
159161

reference/7.5/Microsoft.PowerShell.Management/Move-Item.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Management
5-
ms.date: 12/12/2022
5+
ms.date: 02/26/2024
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/move-item?view=powershell-7.5&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Move-Item
@@ -18,15 +18,17 @@ Moves an item from one location to another.
1818
### Path (Default)
1919

2020
```
21-
Move-Item [-Path] <String[]> [[-Destination] <String>] [-Force] [-Filter <String>] [-Include <String[]>]
22-
[-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
21+
Move-Item [-Path] <String[]> [[-Destination] <String>] [-Force] [-Filter <String>]
22+
[-Include <String[]>] [-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf]
23+
[-Confirm] [<CommonParameters>]
2324
```
2425

2526
### LiteralPath
2627

2728
```
28-
Move-Item -LiteralPath <String[]> [[-Destination] <String>] [-Force] [-Filter <String>] [-Include <String[]>]
29-
[-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
29+
Move-Item -LiteralPath <String[]> [[-Destination] <String>] [-Force] [-Filter <String>]
30+
[-Include <String[]>] [-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf]
31+
[-Confirm] [<CommonParameters>]
3032
```
3133

3234
## DESCRIPTION
@@ -153,7 +155,7 @@ Accept wildcard characters: False
153155
### -Destination
154156
155157
Specifies the path to the location where the items are being moved. The default is the current
156-
directory. Wildcards are permitted, but the result must specify a single location.
158+
directory. Wildcards aren't permitted.
157159
158160
To rename the item being moved, specify a new name in the value of the **Destination** parameter.
159161

0 commit comments

Comments
 (0)