를 내장하지 : 나는 또한 관리자로 Powershell_ISE을 실행하고있다PowerShell을 스크립트 윈도우 10에서 작동하지만 Embdedded 표준 Windows 10가 아니라 창에서 다음 스크립트 작업 한 Windows에서 표준
$LogTime = Get-Date -Format "MM-dd-yyyy_hh-mm-ss"
$Path1= "TEST\TESTLog_$(get-date -f yyyy-MM-dd).txt"
$AffPBS= Get-Process "LLCService.exe" | Select-Object ProcessorAffinity
$AffLC= Get-Process "LCService.exe" | Select-Object ProcessorAffinity
$AffinityLLCFinal = "LLC " + $AffPBS
$AffinityLCFinal = "LC " + $AffLC
$FinalOutput = $LogTime+" " +$AffinityLLCFinal +" " + $AffinityLCFinal
$FinalOutput | Out-File -Append $Path1
는 Set-ExecutionPolicy RemoteSigned
을 설정합니다. 나는 윈도우 10에서 얻고있다
결과 :
10-09-2017_03-31-10 LLC @{ProcessorAffinity=63} LC @{ProcessorAffinity=63}
결과 나는 윈도우 7에 받고 있어요 :
10-09-2017_11-23-26 LLC LC
그것은 윈도우 임베디드에서 작동하지 않는 Get-Process
것 같아 표준. 이 일을하는 다른 방법이 있습니까?
왜 작동하지 않는다고 결정 했습니까? 이것이주는 것은 :'Get-Process "LLCService.exe"| Select-Object ProcessorAffinity'? 이것이 비어 있다면 무엇을 제공합니까? Get-Process explorer | processorAffinity'를 선택 하시겠습니까? –