param( [Parameter(Mandatory, ValueFromPipeline)] [string[]]$ComputerName ) ValueFromPipelineByPropertyName 引数引数は ValueFromPipelineByPropertyName 、パラメーターがパイプライン オブジェクトのプロパティからの入力を受け入れることを示します。 オブジェクト プ...
Get-ChildItem -Path $Dir -Directory -Recurse $pattern | Select-Object name, FullName # Get-ChildItem $Dir -Directory -Recurse | Where-Object { $_.Name -like $pattern } | Select-Object name, FullName # Get-ChildItem $Dir -R -V | Where-Object { $_.Attributes -eq 'Directory' -an...
Get-CMFolder [[-Name] <String>] [-InputObject <IResultObject>] [-ParentFolderPath <String>] [-TypeName <String>] [-IsEmpty <Boolean>] [-IsSearchFolder <Boolean>] [-SiteCode <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [<CommonParameters>] PowerShell Copy Get-CMFolder...
Get-VMSnapshot -VMName "VM1" 创建虚拟硬盘的快照: powershell Checkpoint-VM -Name "VM1" -SnapshotName "Snapshot1" -Path "C:\test\disk.vhdx" 恢复虚拟硬盘到指定的快照状态: powershell Restore-VMSnapshot -Name "Snapshot1" -VHDPath "C:\test\disk.vhdx" -Confirm:$false 获取虚拟机中的存储...
使用Get-PublicFolderMailboxDiagnostics cmdlet 可查看有关公用文件夹的事件级别信息。 此信息可用于解决公用文件夹问题。 有关以下语法部分的参数设置的详细信息,请参阅 Exchange cmdlet 语法。语法PowerShell 复制 Get-PublicFolderMailboxDiagnostics [-Identity] <MailboxIdParameter> [-Confirm] [-DomainController ...
SamAccountName 用户ID 或用户主体名称 (UPN) 展开表 Type: MailboxIdParameter Position: Named Default value: None Required: False Accept pipeline input: False Accept wildcard characters: False Applies to: Exchange Server 2013, Exchange Server 2016, Exchange Server 2019, Exchange Online -Server ...
$namespace = $outlook.GetNameSpace("MAPI") dir “c:mypath*.pst” | % { $namespace.AddStore($_.FullName) } One interesting thing with this is that you may need to run this with the correct version of PowerShell (32-bit is at c:windowssyswow64windowspowershellv1.0powershell.exe) ...
PS >$files | Get-Member 发表在PowerShell|留下评论 2010年04月21日 Work with .NET Objects To call a static method on a class, place the type name in square brackets, and then separate the class name from the method name with two colons: ...
You can also include the path using the format \TopLevelPublicFolder\PublicFolder. You can omit the parameter label so that only the public folder name or GUID is supplied. Expand table Type: MailPublicFolderIdParameter Position: 1 Default value: None Required: False Accept pipeline input: ...
Get-MailPublicFolder-AnrMarketing* This example returns all mail-enabled public folders that begin with the word Marketing by using the Anr parameter. Parameters -Anr The Anr parameter specifies a string on which to perform an ambiguous name resolution (ANR) search. You can specify a partial str...