WARNING: The generated type defines no public methods or properties.Since I was aware that this was the case, I suppressed the warning using the following parameter to Add-Type:
Add-Type -WarningAction SilentlyContinue ...
WARNING: The generated type defines no public methods or properties.Since I was aware that this was the case, I suppressed the warning using the following parameter to Add-Type:
Add-Type -WarningAction SilentlyContinue ...
bcdedit /set `{current`} bootmenupolicy legacy
To switch back to the graphical bootloader, run the following command:
bcdedit /set `{current`} bootmenupolicy standard
You'll need to run these PowerShell commands as an administrator.
$content = type .gitignore | % { $_.Trim() } | ? { $_.StartsWith('/') } | % { $_.SubString(1) }
$content | % {
$folder = split-path -Parent $_
if($folder.length -gt 0) {
if(-not (test-path $folder)) {
md $folder | Out-Null
}
$pattern = split-path -Leaf $_
$newPattern = '/' + $pattern
$ignoreFile = "$folder\.gitignore"
$exists = $false
if((test-path $ignoreFile ) -and (type $ignore) -notcontains $newPattern) {
$exists = $true
}
if(!$exists) {
Add-Content -Force -Path $ignoreFile $newPattern
}
}
}
cmdkey /add:targetname /user:username /pass
dir -r -i .git -fo | % { pushd $_.fullname; cd ..; write-host -fore yellow (get-location).Path; git status; popd }
Note that this will not work for bare repositories.
streams -d Convert-WindowsImage.ps1
.\Convert-WindowsImage.ps1 -SourcePath E:\sources\install.wim -VHDFormat VHD -SizeBytes 50GB -VHDPath Windows8RP.vhd -VHDType Fixed -Edition Professional
bcdboot F:\Windows