Copype amd64 C:\winpe_amd64Makewinpemedia /iso C:\winpe_amd64 C:\winpe_amd64\winpe_amd64.iso
I write some useful information and lessons learnt about SCCM, MDT, SCOM, Exchange, Lync, Windows 7/8, Windows servers, Hyper-V, Vmware
Szukaj na tym blogu
czwartek, 11 kwietnia 2013
Windows PE iso using ADK
środa, 3 kwietnia 2013
Zamiana ciągów znaków w wielu plikach
$file = Get-ChildItem -Include unattend.xml -Recurse
Foreach ($str in $file)
{
$cont = Get-Content $str
$cont | Foreach {$_ -replace "999", "2"} | Set-Content $str
$cont = Get-Content $str
$cont | Foreach {$_ -replace "P@ssw0rd ", "newP@ssw0rd "} | Set-Content $str
$exists = Select-String -Path $str -pattern "CopyProfile"
If ($exists -ne $null)
{
}
else
{
$cont = Get-Content $str
$cont | Foreach {$_ -replace "
", "`r`ntrue "} | Set-Content $str
}
}
Foreach ($str in $file)
{
$cont = Get-Content $str
$cont | Foreach {$_ -replace "999", "2"} | Set-Content $str
$cont = Get-Content $str
$cont | Foreach {$_ -replace "
$exists = Select-String -Path $str -pattern "CopyProfile"
If ($exists -ne $null)
{
}
else
{
$cont = Get-Content $str
$cont | Foreach {$_ -replace "
", "`r`n
}
}
Subskrybuj:
Posty (Atom)