33 lines
1.0 KiB
Markdown
33 lines
1.0 KiB
Markdown
![]() |
#unity/日常积累
|
|||
|
|
|||
|
- 参考
|
|||
|
|
|||
|
反馈
|
|||
|
|
|||
|
模块:
|
|||
|
|
|||
|
[Microsoft.PowerShell.Management](https://learn.microsoft.com/zh-cn/powershell/module/microsoft.powershell.management/?view=powershell-7.3)
|
|||
|
|
|||
|
获取位于指定位置的项。
|
|||
|
|
|||
|
[](https://learn.microsoft.com/zh-cn/powershell/module/microsoft.powershell.management/get-item?view=powershell-7.3#syntax)
|
|||
|
|
|||
|
## 语法
|
|||
|
|
|||
|
``` cs
|
|||
|
Get-Item
|
|||
|
[-Path] <string[]>
|
|||
|
[-Filter <string>]
|
|||
|
[-Include <string[]>]
|
|||
|
[-Exclude <string[]>]
|
|||
|
[-Force]
|
|||
|
[-Credential <pscredential>]
|
|||
|
[-Stream <string[]>]
|
|||
|
[<CommonParameters>]
|
|||
|
```
|
|||
|
|
|||
|
## 说明
|
|||
|
|
|||
|
`Get-Item` cmdlet 获取位于指定位置的项。 除非使用通配符 (`*`) 来请求该项的所有内容,否则此命令不会获取位于该位置的项的内容。
|
|||
|
|
|||
|
PowerShell 提供程序通过使用此 cmdlet,可以在不同类型的数据存储进行导航。 某些参数仅适用于特定提供程序。 有关详细信息,请参阅 [about_Providers](https://learn.microsoft.com/zh-cn/powershell/module/microsoft.powershell.core/about/about_providers?view=powershell-7.3)。
|