{"id":279106,"date":"2016-04-26T15:40:04","date_gmt":"2016-04-26T11:40:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=279106"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=279106","title":{"rendered":"Debugging Tools \u0432 \u043f\u043e\u043c\u043e\u0449\u044c PowerShell \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0443"},"content":{"rendered":"<p>       \u0418\u0434\u0435\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434 \u043f\u043e \u043c\u0435\u0440\u0435 \u0447\u0442\u0435\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Debugging Tools \u2014 \u043d\u0430\u0431\u043e\u0440\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0434\u043e\u043b\u0436\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0432 \u0445\u043e\u0437\u044f\u0439\u0441\u0442\u0432\u0435 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0433\u043e, \u2014 \u0430 \u0435\u0435 \u0441\u0443\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432 MSDN \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043b\u0438\u0431\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u043e\u0432\u0441\u0435. \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u0442\u043e, \u043e \u0447\u0435\u043c \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0435\u0442 \u0434\u0430\u043b\u0435\u0435 \u043d\u0435 \u0437\u0430\u043c\u0435\u043d\u0438\u0442 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e <b><a href=\"https:\/\/technet.microsoft.com\/en-us\/sysinternals\/livekd\">LiveKd<\/a><\/b>, \u043d\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043f\u0440\u0430\u0432\u043e \u043d\u0430 \u0436\u0438\u0437\u043d\u044c \u0432 \u0432\u0438\u0434\u0443 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e, \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0440\u0430\u0432 \u0430\u0434\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430, \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e\u043c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432, \u044f\u0432\u043b\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u00ab\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438\u00bb \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0421\u043b\u043e\u0432\u0430 \u043e\u0431 \u043e\u0442\u0441\u0443\u0442\u0441\u0432\u0438\u0438 \u043f\u0440\u0430\u0432 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u043d\u0438\u0447\u0443\u0442\u044c \u043d\u0435 \u043f\u0440\u0435\u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u044b: kd \u0438 WinDbg \u0432\u043f\u043e\u043b\u043d\u0435 \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441\u0435\u0431\u044f \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0434\u0430\u043c\u043f\u043e\u0432 \u0438\u0437-\u043f\u043e\u0434 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438, \u2014 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u044d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u0430 \u0438\u0434\u0435\u0438: \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u0430\u043c\u043f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0433\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439, \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u043d\u044b\u0439 \u0434\u0430\u043c\u043f \u0432 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a, \u0430 \u0442\u043e\u0442 \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0438 \u0432\u044b\u0434\u0430\u0441\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u041d\u043e \u0434\u0430\u0432\u0430\u0442\u0435 \u043f\u043e-\u043f\u043e\u0440\u044f\u0434\u043a\u0443.<\/p>\n<p>  \u0418\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 explorer, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u044f\u043c \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u043c \u0432 \u043f\u0440\u0435\u0430\u043c\u0431\u0443\u043b\u0435.<\/p>\n<p>  <code>PS C:\\&gt; (ps explorer).Modules | sort ModuleName | ft -a<br \/>  <\/code><br \/>  \u041b\u044c\u0432\u0438\u043d\u0430\u044f \u0434\u043e\u043b\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u0445 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0442\u044c \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0432 ntdll.dll \u0438 \u0432 urlmon.dll, \u0435\u0441\u043b\u0438 \u0440\u0435\u0447\u044c \u043e\u0431 \u0425\u0420 (\u0435\u0441\u0442\u044c \u043a\u0442\u043e \u0435\u0449\u0435 \u0435\u044e \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f?) \u0438\u043b\u0438 ole32.dll \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u00ab\u0441\u0435\u043c\u0435\u0440\u043a\u0438\u00bb (\u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438, \u0443\u0432\u044b, \u043d\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044e, \u0438\u0431\u043e \u0442\u0430 \u0436\u0435 \u00ab\u0441\u0435\u043c\u0435\u0440\u043a\u0430\u00bb \u043f\u043e\u0434\u043d\u044f\u0442\u0430 \u0432 VirtualBox \u043f\u043e\u0434 Linux&#8217;\u043e\u043c). \u041d\u043e \u0437\u0434\u0435\u0441\u044c \u043c\u044b \u044f\u0432\u043d\u043e \u0437\u0430\u0431\u0435\u0433\u0430\u0435\u043c \u0432\u043f\u0435\u0440\u0435\u0434, \u0442\u0430\u043a \u043a\u0430\u043a \u0435\u0449\u0435 \u043d\u0443\u0436\u043d\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0430 \u0441 \u0434\u0430\u043c\u043f\u043e\u043c explorer&#8217;\u0430. \u0418 \u0437\u0434\u0435\u0441\u044c, \u043f\u043e\u0436\u0430\u043b\u0443\u0439, \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0430\u0447\u0430\u0442\u044c \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 PATH \u043f\u0443\u0442\u044c \u0434\u043e \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0445 \u0443\u0442\u0438\u043b\u0438\u0442 \u0438 \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e _NT_SYMBOL_PATH, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, srv*C:\\symbols*http:\/\/msdl.microsoft.com\/download\/symbols, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a \u043a\u043e\u0434\u0438\u043d\u0433\u0443. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u043c Vim \u0438\u043b\u0438 \u0441\u0432\u043e\u044e \u043b\u044e\u0431\u0438\u043c\u0443\u044e IDE \u0438 \u043f\u0438\u0448\u0435\u043c:<\/p>\n<pre><code class=\"perl\">function Invoke-Debugger {   param(     [Switch]$WinDbg   )      begin {     $MiniDumpWriteDump = [PSObject].Assembly.GetType(       'System.Management.Automation.WindowsErrorReporting+NativeMethods'     ).GetMethod('MiniDumpWriteDump', [Reflection.BindingFlags]40)     $DumpFile = &quot;$($env:tmp)\\crash.dmp&quot;     $Debugger = &quot;$(switch ($WinDbg) {$true {'windbg'} $false {'kd'}}).exe&quot;          # \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439, \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0435\u0442\u0441\u044f \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 Sysinternals Desktops     $Process = if (($$ = @(Get-Process explorer)).Length -gt 1) {       ($$ | Sort-Object StartTime)[0]     } else { $$ }   }   process {     try {       $fs = [IO.File]::Create($DumpFile)       if (!$MiniDumpWriteDump.Invoke($null, @(         $Process.Handle, $Process.Id, $fs.SafeFileHandle, [UInt32]0,         [IntPtr]::Zero, [IntPtr]::Zero, [IntPtr]::Zero       ))) {         throw New-Object ComponentModel.Win32Exception(           [Runtime.InteropServices.Marshal]::GetLastWin32Error()         )       }     }     catch { Write-Error $_.Exception }     finally {       if ($fs -ne $null) {         $fs.Dispose()         $fs.Close()       }     }   }   end {     # \u0435\u0441\u043b\u0438 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u0430\u043c\u043f     if ((Get-Item $DumpFile).Length -eq 0) {       Remove-Item $DumpFile -Force -ErrorAction 0       return     }     # \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a     Start-Process $Debugger -ArgumentList &quot;-z $DumpFile $(if (       $Debugger -eq 'kd.exe'     ) {'-y ' + $env:_NT_SYMBOL_PATH} else {'-Q'})&quot;   } } <\/code><\/pre>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u0443\u044e \u0432\u044b\u0448\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0443\u0434\u043e\u0431\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u0435 PowerShell, \u043d\u043e \u043d\u0430 \u0432\u043a\u0443\u0441 \u0438 \u0446\u0432\u0435\u0442, \u0430 \u0444\u043b\u043e\u043c\u0430\u0441\u0442\u0435\u0440\u044b \u0443 \u0432\u0441\u0435\u0445 \u0440\u0430\u0437\u043d\u044b\u0435, \u043c\u043e\u0436\u043d\u043e \u043e\u0444\u043e\u0440\u043c\u0438\u0442\u044c \u0435\u0435 \u0438 \u043a\u0430\u043a \u043c\u043e\u0434\u0443\u043b\u044c. \u041b\u0438\u0447\u043d\u043e \u043c\u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u0435\u0439, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0431\u044b\u043b\u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0445\u043e\u0441\u0442\u0430 PowerShell:<\/p>\n<p>  <code>PS C:\\&gt; Invoke-Debugger -WinDbg<br \/>  <\/code><br \/>  \u0418 \u0441\u043d\u043e\u0432\u0430 \u0442\u0430\u043a\u0438, \u043c\u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443:<\/p>\n<p>  <code>PS C:\\&gt; Invoke-Debugger<br \/>  <\/code><br \/>  \u041d\u0443 \u0438 \u0440\u0430\u0434\u0438 \u0447\u0435\u0433\u043e \u0432\u0441\u0435 \u0437\u0430\u0442\u0435\u0432\u0430\u043b\u043e\u0441\u044c.<\/p>\n<p>  <code><\/p>\n<pre> 0:000&gt; dt ole32!_system* \/t ... 0:000&gt; dt ole32!_system_information_class ...    SystemTimeOfDayInformation = 0n3 ... 0:000&gt; dt ole32!_system_timeofday_information    +0x000 BootTime         : _LARGE_INTEGER    +0x008 CurrentTime      : _LARGE_INTEGER    +0x010 TimeZoneBias     : _LARGE_INTEGER    +0x018 TimeZoneId       : Uint4B    +0x01c Reserved         : Uint4B    +0x020 BootTimeBias     : Uint8B    +0x028 SleepTimeBias    : Uint8B 0:000&gt; ?? sizeof(ole32!_system_timeofday_information) unsigned int 0x30 <\/pre>\n<p><\/code><br \/>  \u0417\u043d\u0430\u044f \u044d\u0442\u043e, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0442\u043e, \u0447\u0442\u043e NtQuerySystemInformation, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043a\u0430\u0440\u043c\u043b\u0438\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u0442\u043e\u0447\u043d\u0435\u0435 \u0435\u0435 \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0430, \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0432 \u0441\u0431\u043e\u0440\u043a\u0435 System.dll, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c uptime \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/savepic.net\/8100240.png\" alt=\"NtQuerySystemInformation\"\/><\/p>\n<pre><code class=\"perl\">try {   $ptr = [Runtime.InteropServices.Marshal]::AllocHGlobal(48)      if ([Regex].Assembly.GetType(     'Microsoft.Win32.NativeMethods'   ).GetMethod(     'NtQuerySystemInformation'   ).Invoke($null, @(3, $ptr, 48, 0)) -ne 0) {     throw New-Object InvalidOperationException('Could not retrieve system uptime.')   }      '{0}.{1:D2}:{2:D2}:{3:D2}' -f ($$ = [TimeSpan]::FromMilliseconds((     [Runtime.InteropServices.Marshal]::ReadInt64($ptr, 8) -     [Runtime.InteropServices.Marshal]::ReadInt64($ptr)   ) \/ 10000)).Days, $$.Hours, $$.Minutes, $$.Seconds } catch {   $_.Exception } finally {   if ($ptr -ne $null) {     [Runtime.InteropServices.Marshal]::FreeHGlobal($ptr)   } } <\/code><\/pre>\n<p>  \u0421\u0430\u043c\u043e \u0441\u043e\u0431\u043e\u0439, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435\u043c uptime \u0434\u0435\u043b\u043e \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432, \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u044b \u043e\u0447\u0435\u043d\u044c \u0434\u0430\u0436\u0435 \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u044f\u044e\u0442. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u043f\u0440\u044f\u0433\u0430\u0442\u044c PowerShell \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430, \u0442\u0430\u043a \u044d\u0442\u043e \u043d\u0435\u0438\u0437\u0431\u0435\u0436\u043d\u043e\u0435, \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Add-Type \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u0430\u043f\u0438\u0448\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u043d\u043e \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u043d\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0442\u0435\u043c\u0443 \u0434\u043b\u044f \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430.       <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/282515\/\"> https:\/\/habrahabr.ru\/post\/282515\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0418\u0434\u0435\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434 \u043f\u043e \u043c\u0435\u0440\u0435 \u0447\u0442\u0435\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Debugging Tools \u2014 \u043d\u0430\u0431\u043e\u0440\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0434\u043e\u043b\u0436\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0432 \u0445\u043e\u0437\u044f\u0439\u0441\u0442\u0432\u0435 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0433\u043e, \u2014 \u0430 \u0435\u0435 \u0441\u0443\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432 MSDN \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043b\u0438\u0431\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u043e\u0432\u0441\u0435. \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u0442\u043e, \u043e \u0447\u0435\u043c \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0435\u0442 \u0434\u0430\u043b\u0435\u0435 \u043d\u0435 \u0437\u0430\u043c\u0435\u043d\u0438\u0442 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e <b><a href=\"https:\/\/technet.microsoft.com\/en-us\/sysinternals\/livekd\">LiveKd<\/a><\/b>, \u043d\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043f\u0440\u0430\u0432\u043e \u043d\u0430 \u0436\u0438\u0437\u043d\u044c \u0432 \u0432\u0438\u0434\u0443 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e, \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0440\u0430\u0432 \u0430\u0434\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430, \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e\u043c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432, \u044f\u0432\u043b\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u00ab\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438\u00bb \u0441\u0438\u0441\u0442\u0435\u043c\u044b.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-279106","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/279106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=279106"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/279106\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=279106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=279106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=279106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}