Microsoft.PowerShell.Management Module
本部分包含随 PowerShell Microsoft.PowerShell.Management 模块一起安装的 cmdlet 的帮助主题。 管理模块包含 cmdlet,可帮助你在 PowerShell 中管理 Windows。
Microsoft.PowerShell.Management Cmdlet
| Cmdlet | 说明 |
|---|---|
| Add-Computer |
Add the local computer to a domain or workgroup. |
| Add-Content |
Adds content to the specified items, such as adding words to a file. |
| Checkpoint-Computer |
Creates a system restore point on the local computer. |
| Clear-Content |
Deletes the contents of an item, but does not delete the item. |
| Clear-EventLog |
Clears all entries from specified event logs on the local or remote computers. |
| Clear-Item |
Clears the contents of an item, but does not delete the item. |
| Clear-ItemProperty |
Clears the value of a property but does not delete the property. |
| Clear-RecycleBin |
Clears the contents of a recycle bin. |
| Complete-Transaction |
Commits the active transaction. |
| Convert-Path |
Converts a path from a Windows PowerShell path to a Windows PowerShell provider path. |
| Copy-Item |
Copies an item from one location to another. |
| Copy-ItemProperty |
Copies a property and value from a specified location to another location. |
| Debug-Process |
Debugs one or more processes running on the local computer. |
| Disable-ComputerRestore |
Disables the System Restore feature on the specified file system drive. |
| Enable-ComputerRestore |
Enables the System Restore feature on the specified file system drive. |
| Get-ChildItem |
Gets the items and child items in one or more specified locations. |
| Get-Clipboard |
Gets the current Windows clipboard entry. |
| Get-ComputerRestorePoint |
Gets the restore points on the local computer. |
| Get-Content |
Gets the content of the item at the specified location. |
| Get-ControlPanelItem |
Gets control panel items. |
| Get-EventLog |
Gets the events in an event log, or a list of the event logs, on the local computer or remote computers. |
| Get-HotFix |
Gets the hotfixes that are installed on local or remote computers. |
| Get-Item |
Gets the item at the specified location. |
| Get-ItemProperty |
Gets the properties of a specified item. |
| Get-ItemPropertyValue |
Gets the value for one or more properties of a specified item. |
| Get-Location |
Gets information about the current working location or a location stack. |
| Get-Process |
Gets the processes that are running on the local computer or a remote computer. |
| Get-PSDrive |
Gets drives in the current session. |
| Get-PSProvider |
Gets information about the specified Windows PowerShell provider. |
| Get-Service |
Gets the services on a local or remote computer. |
| Get-Transaction |
Gets the current (active) transaction. |
| Get-WmiObject |
Gets instances of Windows Management Instrumentation (WMI) classes or information about the available classes. |
| Invoke-Item |
Performs the default action on the specified item. |
| Invoke-WmiMethod |
Calls WMI methods. |
| Join-Path |
Combines a path and a child path into a single path. |
| Limit-EventLog |
Sets the event log properties that limit the size of the event log and the age of its entries. |
| Move-Item |
Moves an item from one location to another. |
| Move-ItemProperty |
Moves a property from one location to another. |
| New-EventLog |
Creates a new event log and a new event source on a local or remote computer. |
| New-Item |
Creates a new item. |
| New-ItemProperty |
Creates a new property for an item and sets its value. |
| New-PSDrive |
Creates temporary and persistent mapped network drives. |
| New-Service |
Creates a new Windows service. |
| New-WebServiceProxy |
Creates a Web service proxy object that lets you use and manage the Web service in Windows PowerShell. |
| Pop-Location |
Changes the current location to the location most recently pushed onto the stack. |
| Push-Location |
Adds the current location to the top of a location stack. |
| Register-WmiEvent |
Subscribes to a Windows Management Instrumentation (WMI) event. |
| Remove-Computer |
Removes the local computer from its domain. |
| Remove-EventLog |
Deletes an event log or unregisters an event source. |
| Remove-Item |
Deletes the specified items. |
| Remove-ItemProperty |
Deletes the property and its value from an item. |
| Remove-PSDrive |
Deletes temporary PowerShell drives and disconnects mapped network drives. |
| Remove-WmiObject |
Deletes an instance of an existing Windows Management Instrumentation (WMI) class. |
| Rename-Computer |
Renames a computer. |
| Rename-Item |
Renames an item in a PowerShell provider namespace. |
| Rename-ItemProperty |
Renames a property of an item. |
| Reset-ComputerMachinePassword |
Resets the machine account password for the computer. |
| Resolve-Path |
Resolves the wildcard characters in a path, and displays the path contents. |
| Restart-Computer |
Restarts the operating system on local and remote computers. |
| Restart-Service |
Stops and then starts one or more services. |
| Restore-Computer |
Starts a system restore on the local computer. |
| Resume-Service |
Resumes one or more suspended (paused) services. |
| Set-Clipboard |
Sets the current Windows clipboard entry. |
| Set-Content |
Writes new content or replaces existing content in a file. |
| Set-Item |
Changes the value of an item to the value specified in the command. |
| Set-ItemProperty |
Creates or changes the value of a property of an item. |
| Set-Location |
Sets the current working location to a specified location. |
| Set-Service |
Starts, stops, and suspends a service, and changes its properties. |
| Set-WmiInstance |
Creates or updates an instance of an existing Windows Management Instrumentation (WMI) class. |
| Show-ControlPanelItem |
Opens control panel items. |
| Show-EventLog |
Displays the event logs of the local or a remote computer in Event Viewer. |
| Split-Path |
Returns the specified part of a path. |
| Start-Process |
Starts one or more processes on the local computer. |
| Start-Service |
Starts one or more stopped services. |
| Start-Transaction |
Starts a transaction. |
| Stop-Computer |
Stops (shuts down) local and remote computers. |
| Stop-Process |
Stops one or more running processes. |
| Stop-Service |
Stops one or more running services. |
| Suspend-Service |
Suspends (pauses) one or more running services. |
| Test-ComputerSecureChannel |
Tests and repairs the secure channel between the local computer and its domain. |
| Test-Connection |
Sends ICMP echo request packets, or pings, to one or more computers. |
| Test-Path |
Determines whether all elements of a path exist. |
| Undo-Transaction |
Rolls back the active transaction. |
| Use-Transaction |
Adds the script block to the active transaction. |
| Wait-Process |
Waits for the processes to be stopped before accepting more input. |
| Write-EventLog |
Writes an event to an event log. |