Li "Mt muc co cung khoa a c thm" khi ban m danh sach trong VAMT 2.0 trn may tinh chay Windows 7

D?ch tiu ? D?ch tiu ?
ID c?a bi: 2383895 - Xem s?n ph?m m bi ny p d?ng vo.
Bung t?t c? | Thu g?n t?t c?

TRI?U CH?NG

Khi ban m danh sach .cil trong Cng cu Quan ly Kich hoat ia (VAMT) 2.0 trn may tinh chay Windows 7, ban co th nhn c thng bao li sau:

M?t m?c co cung khoa a c thm.

NGUYN NHN

S c nay co th xay ra nu co nhiu b iu hp mang trong may tinh va cac b iu hp mang nay co cung ia chi MAC. Vi du: s c nay co th xay ra nu ban co hai b iu hp mang cho mt may ao va ban cu hinh cac b iu hp mang nay co cung ia chi MAC.

Trong trng hp nay, nu ban m tp .cil, ban se thy mt muc ging nh sau:

NetworkName="contoso.com" Id="e3f3f83c-f050-4d81-9117-xx">
<MacAddresses>
<MacAddress>00:11:11:CF:FC:xx</MacAddress>
<MacAddress>00:11:11:CF:FC:xx</MacAddress>
</MacAddresses>

GI?I PHP

c chung ti xoa cac muc trung lp khoi tp .CIL giup ban, hay i ti phn "Khc phuc s c giup ti". Nu ban mun t xoa cac muc trung lp khoi tp .CIL, hay i ti phn "? ti t? kh?c ph?c s? c?".

Kh?c ph?c s? c? cho ti



? kh?c ph?c s? c? ny t? ?ng, hay b?m vo nt ho?c lin k?t Kh?c ph?c s? c?. Sau o, bm vao Chay trong hp thoai Tai tp xung va lam theo cac bc trong thut si Fix it.


Khc phuc s c nay
Microsoft Fix it 50785


Chu y
  • Hay chon tp .CIL ma ban mun xoa cac muc trung lp.
  • Giai phap Fix it khng hoat ng nu VAMT (Cng cu Quan ly Kich hoat ia) 2.0 khng c cai t trong ng dn mc inh.
  • Thut sy nay co th chi co bng ting Anh. Tuy nhin, ban va t? ?ng c?ng s? ho?t ?ng ?i v?i cc phin b?n ngn ng? khc c?a Windows.
  • Nu ban hin khng lam vic trn may tinh xay ra s c, hay lu giai phap Khc phuc s c vao ia flash hoc CD ri chay trn may tinh co s c.

Sau o, i ti phn "Phng phap nay co khc phuc c s c khng?".



? ti t? kh?c ph?c s? c?

khc phuc s c nay, hay xoa thu cng cac muc trung lp khoi .CIL hoc t ng thc hin quy trinh nay, hay s dung ma ngun sau tao mt

Powershell script to automate.
param($inputFilePath, $vamtDirPath)

$cilFilePath = Resolve-Path $inputFilePath;
if (!$cilFilePath)
{
Write-Error "Expected input file name of target CIL";
exit 1;
}

if ($vamtDirPath)
{
$vamtDirPath = Resolve-Path $vamtDirPath;
}
else
{
$prograPath = [environment]::GetEnvironmentVariable("ProgramFiles(x86)");

if (!$prograPath -or $prograPath -eq "")
{
$prograPath = [environment]::GetEnvironmentVariable("ProgramFiles");
}

$vamtDirPath = $prograPath + "\VAMT 2.0"
}

try
{
$assembly = [System.Reflection.Assembly]::LoadFile($vamtDirPath + "\Vamtrt.dll");
}
catch
{
Write-Error "Error while attempting to load VAMT assembly. Cung cp ng dn ung ti phn cai t VAMT nu VAMT khng c cai t vao th muc mc inh.";
exit 1;
}

$fileSerializer = new-object Microsoft.SoftwareLicensing.Vamt.FileSerializer($cilFilePath);

$softwareLicensingData = $fileSerializer.Deserialize();

for ($i = 0; $i -lt $softwareLicensingData.Machines.Length; $i++)
{
$machine = $softwareLicensingData.Machines[$i];

if ($machine.MacAddresses.Count -gt 0)
{
$distinctMacAddrs = new-object System.Collections.ObjectModel.Collection[string];

foreach ($mac in $machine.MacAddresses)
{
if (!$distinctMacAddrs.Contains($mac))
{
$distinctMacAddrs.Add($mac);
}
}

$machine.MacAddresses.Clear();

foreach ($distinctMac in $distinctMacAddrs)
{
$machine.MacAddresses.Add($distinctMac);
}
}
}

$fileSerializer.Serialize($softwareLicensingData);




Sau , hy thc hin theo cc b?c trn my tnh Windows 7:
  1. Sao chep tp .CIL a lu cua ban vao c:\script. V d?: c:\script\saved.cil
  2. Sao chep ma ngun i kem t bai vit trong KB nay vao bang tam
  3. Bm Bt u, Tt ca Chng trinh, Phu kin, Windows Powershell, "Windows powershell ise"
  4. Trong Windows PowerShell, bm trong trong c?a s? Untitled1.ps1
  5. Dn n?i dung c?a t?p l?nh t? bi vi?t ny
  6. Bm Tp, lu vi tn, c:\script\ScrubCil.ps1
  7. Bm Bt u, Tt ca Chng trinh, Phu kin, Windows Powershell, bm chut phai vao "Windows powershell" va chon "Chay vi t cach Quan tri vin"
  8. Tai du nhc powershell, go cac lnh sau
    cd \script
    set-executionpolicy unrestricted
    .\ScrubCil.ps1 saved.cil


Phng php ny c kh?c ph?c ?c s? c? khng?

  • Ki?m tra xem s? c? ? ?c kh?c ph?c hay cha. N?u s? c? a ?c kh?c ph?c, b?n a hon thnh phn ny. N?u s? c? v?n cha ?c kh?c ph?c, b?n c th? lin h? v?i b? ph?n h? tr?.
  • Chng ti nh gi cao ph?n h?i c?a b?n. cung cp phan hi hoc bao cao bt ky vn gi vi giai phap nay, hay lai nhn xet trn blog "Khc phuc s c giup ti" hoc giemail cho chung ti.

Thu?c tnh

ID c?a bi: 2383895 - L?n xem xt sau cng: 19 Thang Mi Hai 2011 - Xem xt l?i: 1.0
p d?ng
  • Windows 7 Enterprise
T? kha:
kbfixme kbmsifixme KB2383895

Cung cp Phan hi

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com