Moves an item from one location to another. Syntax PowerShellCopy Move-Item[-Path] <String[]> [[-Destination] <String>] [-Force] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-PassThru] [-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>] ...
Get-Command-NameGet-ChildItem-Syntax 這些參數可以混合和比對,以取得高度自定義的輸出。 列出所有包含的項目 若要查看 Windows 資料夾內的專案,以及子資料夾中包含的任何專案,請使用Get-ChildItem的Recurse參數。 清單會顯示 Windows 資料夾中的所有專案,以及其子資料夾中的專案。 例如: ...
Get-Item-PathHKLM:\Software\MyCompany\sales |Get-Member 输出显示该项是没有Destination属性的Microsoft.Win32.RegistryKey对象。 这解释了命令失败的原因。 Path参数按名称或值接受管道输入。 Output Get-Help Move-ItemProperty -Parameter Path -Path <String[]> Specifies the path to the current location of...
NAME New-Module SYNOPSIS Creates a new dynamic module that exists only in memory. SYNTAX New-Module [-Name] <String> [-ScriptBlock] <ScriptBlock> [-ArgumentList <Object[]>] [-AsCustomObject] [-Cmdlet <String[]>] [-Function <String[]>] [-ReturnResult] [<CommonParameters>] DESCRIPTION ...
New-Item參考 模組: Microsoft.PowerShell.Management 建立新的項目。SyntaxPowerShell 複製 New-Item [-Path] <String[]> [-ItemType <String>] [-Value <Object>] [-Force] [-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]...
或 Get-Command <cmdlet> -syntax其中 <cmdlet 是所需参数信息的相关 cmdlet 的名称。例如,Get-Help New-SPSite 或 Get-Command New-SPSite -syntax 将向您提供有关与 New-SPSite 关联的参数信息。Get-Help cmdlet 也具有几个与其关联的参数,根据所需信息量,您可以将它们用于 Get-Help 命令。如果很清楚...
Syntax PowerShellCopy New-MoveRequest[-Identity] <MailboxOrMailUserIdParameter>-RemoteHostName<Fqdn> [-Outbound] [-RemoteCredential <PSCredential>] [-RemoteGlobalCatalog <Fqdn>] [-AcceptLargeDataLoss] [-AllowLargeItems] [-ArchiveDomain <String>] [-ArchiveOnly] [-BadItemLimit <Unlimited>] [-Bat...
Common verbs used in Windows PowerShell include: Add, Clear, Copy, Get, Join, Lock, Move, New, Remove, Rename, Select, Set, Split, and Unlock. You can tell what each is used for just from its name. In this article I'll create three cmdlets: one to set the data contents of the ...
To post-process the content of protected event log messages, use the PowerShell Unprotect-CmsMessage cmdlet and Cryptographic Message Syntax (CMS) encryption and decryption cmdlets. For example, the following PowerShell commands automatically decrypt encrypted event log messages, provided that an appropri...
Get-ControlPanelItem Get-EventLog Get-HotFix Get-Item Get-ItemProperty Get-Location Get-Process Get-PSDrive Get-PSProvider Get-Service Get-Transaction Get-WmiObject Invoke-Item Invoke-WmiMethod Join-Path Limit-EventLog Move-Item Move-ItemProperty ...