可以使用Get-ChildItem直接获取文件夹中的所有项。 添加可选的Force参数以显示隐藏项或系统项。 例如,该命令直接显示 PowerShell 驱动器C:的内容。 PowerShell Get-ChildItem-PathC:\-Force 此命令只列出直接包含的项,非常类似于在cmd.exe中使用dir命令或在 UNIX shell 中使用ls。 为了显示子文件夹中的项,需要指...
Get-PublicFolder 本示例使用不带参数的 Get-PublicFolder 命令以返回根公用文件夹对象 (IPM_SUBTREE)。 示例2 PowerShell 复制 Get-PublicFolder -Identity \NON_IPM_SUBTREE -Recurse | Format-List Name 本示例从系统文件夹根 (\NON_IPM_SUBTREE) 开始,返回所有系统文件夹的名称(默认情况下不显示这些...
Get-CMFolder [[-Name] <String>] [-InputObject <IResultObject>] [-ParentFolderPath <String>] [-TypeName <String>] [-IsEmpty <Boolean>] [-IsSearchFolder <Boolean>] [-SiteCode <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [<CommonParameters>] PowerShell Menyalin Get-CM...
Get-MailPublicFolder -ResultSize 100 | Format-List Cet exemple renvoie les informations relatives à 100 dossiers publics à extension messagerie maximum. Dans cet exemple, la sortie de la commande Get-MailPublicFolder est envoyée vers la commande Format-List, afin que toutes les informations dis...
Get-MailPublicFolder -ResultSize 100 | Format-List This example returns the information for up to 100 mail-enabled public folders. In this example, the output of the Get-MailPublicFolder command is piped to the Format-List command so that all the available information is displayed in the resu...
Get-MailPublicFolder -ResultSize 100 | Format-List This example returns the information for up to 100 mail-enabled public folders. In this example, the output of the Get-MailPublicFolder command is piped to the Format-List command so that all the available information is displayed in the resu...
Get-MailPublicFolder -ResultSize 100 | Format-List This example returns the information for up to 100 mail-enabled public folders. In this example, the output of the Get-MailPublicFolder command is piped to the Format-List command so that all the available information is displayed in the resu...
gp 获取文件或目录的属性 Get-ItemProperty ii 使用对应的默认windows程序运行文件或者目录 Invoke-Item — 连接两个路径为一个路径 Join-Path mi, mv, move 移动文件或者目录 Move-Item ni 创建新文件或者目录 New-Item ri, rm, rmdir,del, erase, rd 删除空目录或者文件 Remove-Item rni, ren 重命名文件或...
Get-MailPublicFolder -ResultSize 100 | Format-List This example returns the information for up to 100 mail-enabled public folders. In this example, the output of the Get-MailPublicFolder command is piped to the Format-List command so that all the available information is displayed in the resu...
Get-LSDiskSnapshotList -PageToken <String> -Select <String> -NoAutoIteration <SwitchParameter> -ClientConfig <AmazonLightsailConfig>Description Returns information about all block storage disk snapshots in your AWS account and region.This cmdlet automatically pages all available results to the pipeline...