2016-05-28 7 views
0

引っ張るコマンドラインのログは何か?

Time     Event Command  
----     ----- -------  
5/27/2016 1:38:31 PM 501 prompt  
5/27/2016 1:38:31 PM 500 prompt  
5/27/2016 1:38:31 PM 501 get-process 
5/27/2016 1:38:31 PM 500 get-process 
5/27/2016 1:38:29 PM 501 prompt  
5/27/2016 1:38:29 PM 500 prompt  
5/27/2016 1:38:29 PM 501 ipconfig 

これは、ログにeventdataのに表示されない - faa69d45087e PipelineId = 608のCommandName =プロンプトCommandTypeを=関数SCRIPTNAME = CommandPath =のCommandLine =プロンプト

+0

'prompt'プロンプトの生成を担当した関数です。 – PetSerAl

+0

誰か(悪意のある人)がいつpowershellからコマンドを実行するかを監視します。プロンプト機能はコマンドがコマンドラインから実行されるたびに呼び出されますか? – Dpitt1968

+0

これはPowerShellが 'PS C:\>'またはパスが何であっても毎回呼ばれます。これは、対話セッション中に実際にその機能を果たす機能です。それ以外の場合は、点滅するカーソルが表示されます。あなたは 'Get-Item Function:\ prompt | Select-Object -ExpandProperty Definition'を選択します。 –

答えて

1

About_Prompts

 
    The Prompt function determines the appearance of the Windows PowerShell 
    prompt. Windows PowerShell comes with a built-in Prompt function, but 
    you can override it by defining your own Prompt function. 

... 

BUILT-IN PROMPT 
    Windows PowerShell includes a built-in prompt function. 

    In Windows PowerShell 3.0, the built-in prompt function is: 
function prompt 
    { 
     "PS $($executionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) " 
    } 
から

追加詳細:

  1. プロンプト機能は、(例えばパスとして。)プロンプトがプロンプト上の任意の詳細をリフレッシュするために表示されるたびに呼び出され
関連する問題

 関連する問題