PowerShell
-
Powershell 이용 VHD 에서 Hyper-V 기능 활성화 하기컴퓨터/VHD 2016. 7. 5. 12:26
https://msdn.microsoft.com/ko-kr/virtualization/hyperv_on_windows/quick_start/walkthrough_install 관리자 권한으로 PowerShell 콘솔을 열고 다음 명령을 실행 Enable-WindowsOptionalFeature -path "I:" -FeatureName Microsoft-Hyper-V -All I: 는 vhd 마운트 드라이브 - VHD 단독부팅후 hyper-v 사용할려면 bcdedit /set hypervisorlaunchtype auto bootice 전문가 모드에서 추가가 편리
-
PowerShell VHD 명령어컴퓨터/VHD 2015. 9. 16. 18:47
https://technet.microsoft.com/en-us/library/hh848458(v=wps.640).aspx New-VHD PS C:\> New-VHD –Path c:\LargeSectorBlockSize.vhdx –BlockSizeBytes 128MB –LogicalSectorSize 4KB –SizeBytes 1TB Differencing-VHD PS C:\> New-VHD –ParentPath c:\Base.vhdx –Path c:\Diff.vhdx -Differencing Optimize-VHD PS C:\> Optimize-VHD –Path c:\test\dynamic.vhdx –Mode Full Convert-VHD PS C:\> Convert-VHD -Path c:\test\t..
-
배치파일에서 Powershell 실행컴퓨터/배치파일 2015. 9. 11. 12:01
http://stackoverflow.com/questions/6037146/how-to-execute-powershell-commands-from-a-batch-file ;@echo off;Findstr -rbv ; %0 | powershell -c - ;goto:sCode set-location "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings"set-location ZoneMap\Domainsnew-item TESTSERVERNAMEset-location TESTSERVERNAMEnew-itemproperty . -Name http -Value 2 -Type DWORD ;:sCode ;echo done;pause & goto :e..