Hyper-V를 실행중인 Windows 10에서 Virtual Box 사용하기


<Hyper-V를 사용하는 컴퓨터에서 Virtual Box 사용하기>
Hyper-V 기능을 잠시 끄면 가능하다
1) cmd.exe를 관리자 계정으로 실행하기
2) bcdedit 실행
제일 아래에 hypervisorlaunchtype이 auto가 되어 있다
이것을 off하면 된다
3)bcdedit /set hypervisorlaunchtype off
4)윈도우 컴퓨터를 재시작한다

 

<Hyper-V를 다시 사용하기>
1) cmd.exe를 관리자 계정으로 실행하기
2) bcdedit 실행
제일 아래에 hypervisorlaunchtype이 off가 되어 있다
이것을 auto하면 된다
3)bcdedit /set hypervisorlaunchtype auto
4)윈도우 컴퓨터를 재시작한다

오늘 생성된 파일만 찾기


 

1) 파일 생성 및 수정과 관련된 Property 확인하기
Get-ChildItem -Path c:\down\lab -File -Recurse | Select-Object -Property name, *time | Format-Table -Autsize

2) 오늘 생성된 파일 확인하기
Get-ChildItem -Path c:\down\ -File -Recurse | Where-Object {$_.CreationTime -gt (Get-Date).Date}

3) 7일동안 생성된 파일 확인하기
Get-ChildItem -Path c:\down\ -File -Recurse | Where-Object {$_.CreationTime -gt (Get-Date).AddDays(-7)}

4) 3월1일 이후호 생성된 파일 확인하기
Get-ChildItem -Path c:\down\ -File -Recurse | Where-Object {$_.CreationTime -gt “03/01/2018”}

5) 오늘 생성된 파일만 복사하기
Get-ChildItem -Path c:\down\ -File -Recurse | Where-Object {$_.CreationTime -gt (Get-Date).Date} | Copy-Item -Destination D:\DownloadedFromInternet\

.iso 파일들의 크기 확인하기


  1. Get-ChildItem -Path d:\ -Filter *.iso -Recurse | Measure-Object -Property Length -Sum
  2. “{0:N2}” -f ((Get-ChildItem -Path d:\ -Recurse | Measure-Object -Property Length -Sum ).Sum/1MB) + ” MB”
  3. Function Get-Size
    {
    “{0:N2}” -f ((Get-ChildItem -Path d:\ -Recurse | Measure-Object -Property Length -Sum ).Sum/1MB) + ” MB”
    }