Verb Group --- --- Add Common Approve Lifecycle Assert Lifecycle Backup Data Block Security Checkpoint Data Clear Common Close Common Compare Data Complete Lifecycle Compress Data Confirm Lifecycle Connect Communications Convert Data ConvertFrom Data ConvertTo Data Copy Common Debug Diagnostic Deny Lifecycl...
ForEach(string propertyName)ForEach(string propertyName, object[] newValue)ForEach() 方法还可用于检索或设置集合中每个项的属性值。PowerShell 复制 # Set all LastAccessTime properties of files to the current date. (dir 'C:\Temp').ForEach('LastAccessTime', (Get-Date)) # View the newly set...
添加-NoEmphasize 参数来为 Select-String 输出着色 (#8963)(感谢 @derek-xia!) 重新添加 Get-HotFix cmdlet (#10740) 使Add-Type 可用于托管 PowerShell 的应用程序 (#10587) 在LanguagePrimitives.IsNullLike() 中使用更有效的计算顺序 (#10781)(感谢 @vexx32!) 在Format-Hex 中改进对混合集合管道输...
Add completion single/double quote support for -PSEdition parameter for Get-Module (#24971) (Thanks @ArmaanMcleod!) Error when New-Item -Force is passed an invalid directory name (#24936) (Thanks @kborowinski!) Allow Start-Transcriptto use $Transcript which is a PSObject wrapped string to ...
Add to plan Share via Facebookx.comLinkedInEmail Print Reference Feedback Module: Microsoft.PowerShell.Utility Finds text in strings and files. Syntax PowerShellCopy Select-String[-Culture <String>] [-Pattern] <String[]> [-Path] <String[]> [-SimpleMatch] [-CaseSensitive] [-Quiet] [-List...
Add a command to the history - typically used to restore history from a previous session. C++ public:staticvoidAddToHistory(System::String ^ command); Parameters command String Applies to 產品版本 Windows PowerShell5.1.0.0 在此文章 Definition ...
# Create a calculated property called $_.StartTime.DayOfWeekGet-Process|Select-Object-PropertyProcessName,{$_.StartTime.DayOfWeek} ProcessName$_.StartTime.DayOfWeek --- --- alg Wednesday ati2evxx Wednesday ati2evxx Thursday ...# Add a custom property to calculate the size in KiloBytes of each ...
Add to plan Share via Facebookx.comLinkedInEmail Print Reference Feedback Module: Microsoft.PowerShell.Management Writes new content or replaces existing content in a file. Syntax PowerShellCopy Set-Content[-Path] <string[]> [-Value] <Object[]> [-PassThru] [-Filter <string>] [-Include ...
Set-PSReadLineOption[-EditMode <EditMode>] [-ContinuationPrompt <string>] [-HistoryNoDuplicates] [-AddToHistoryHandler <Func[string,Object]>] [-CommandValidationHandler <Action[CommandAst]>] [-HistorySearchCursorMovesToEnd] [-MaximumHistoryCount <int>] [-MaximumKillRingCount <int>] [-ShowToolTip...
Add completion single/double quote support for -PSEdition parameter for Get-Module (#24971) (Thanks @ArmaanMcleod!) Error when New-Item -Force is passed an invalid directory name (#24936) (Thanks @kborowinski!) Allow Start-Transcriptto use $Transcript which is a PSObject wrapped string to ...