L?i "m?t m?c c cng kho ? ?c thm" khi b?n m? danh sch trong VAMT 2.0 trn my tnh d?a trn 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 b?n m? m?t danh sch (.cil) trong kh?i l?ng kch ho?t qu?n l? cng c? (VAMT) 2.0 trn my tnh d?a trn Windows 7, b?n c th? nh?n ?c thng bo l?i sau:

M?t m?c c cng kho ? ?c thm.

Nguyn nhn

V?n ? ny c th? x?y ra n?u c nhi?u b? thch ?ng m?ng trong my tnh, v cc b? thch ?ng m?ng c cng ?a ch? MAC. V d?: v?n ? ny c th? x?y ra n?u b?n c hai b? thch ?ng m?ng cho m?t my ?o v b?n c?u h?nh cc b? thch ?ng m?ng c cng ?a ch? MAC.

N?u b?n m? t?p .cil trong t?nh hu?ng ny, b?n s? th?y m?t m?c gi?ng nh sau:

NetworkName="contoso.com" Id = "e3f3f83c-f050 - 4 d 81-9117 ng?i-xx" >

Gi?i php

? ?c chng ti xo cc m?c trng l?p kh?i cc.CIL t?p tin cho b?n, h?y vo cc "Kh?c ph?c s? c? cho ti". N?u b?n mu?n xo cc m?c trng l?p kh?i cc.CIL t?p tin chnh m?nh, i ?n cc "? 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, b?m vo cc s?a ch?a n nt ch?n m?t ho?c ?ng d?n. Sau nh?p vo ch?y trong T?p tin t?i v? hp thoai, v lm theo cc b?c trong thu?t s? s?a ch?a n .

Kh?c ph?c s? c? ny
Microsoft Fix it 50785

Lu y
  • Vui l?ng ch?n m?t.CIL t?p tin m b?n mu?n xo cc m?c trng l?p cho.
  • S?a ch?a n gi?i php khng ho?t ?ng n?u VAMT(Volume Activation Management Tool) 2.0 khng ?c ci ?t chuyn bi?t trong ?ng d?n m?c ?nh.
  • Thu?t s? ny c th? ch? c b?ng ti?ng Anh. Tuy nhin, kh?c ph?c s? c? t? ?ng c?ng ho?t ?ng ?i v?i cc phin b?n ngn ng? khc c?a Windows.
  • N?u qu? v? khng trn my tnh c s? c?, lu s?a ch?a n gi?i php vo m?t ia flash ho?c CD r?i ch?y trn my tnh c s? c?.

Sau , i ?n cc "Thao tc ny c kh?c ph?c ?c s? c??".

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

? kh?c ph?c v?n ? ny, t? xo cc m?c trng l?p kh?i cc.CIL ho?c ? t? ?ng ho qu tr?nh ny, h?y s? d?ng m? ngu?n sau ? t?o ra m?t

Script PowerShell ? t? ?ng ho.
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;
$prograPath = [environment]::GetEnvironmentVariable("ProgramFiles(x86)");

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

$vamtDirPath = $prograPath + "\VAMT 2.0"

$assembly = [System.Reflection.Assembly]::LoadFile($vamtDirPath + "\Vamtrt.dll");
Write-Error "Error while attempting to load VAMT assembly. Provide the correct path to your VAMT installation if VAMT is not installed to the default directory.";
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))


foreach ($distinctMac in $distinctMacAddrs)


Sau , h?y lm theo cc b?c sau trn m?t my tnh Windows 7:
  1. Sao chp c?a b?n ? lu.CIL cc t?p tin ? c:\script. V d?: c:\script\saved.cil
  2. Sao chp m? ngu?n bao g?m t? bi KB ny vo b?ng t?m
  3. Nh?p vo B?t ?u, t?t c? chng tr?nh, ph? ki?n, Windows Powershell, "Windows powershell ise"
  4. Trong Windows PowerShell B?m chu?t trong c?a s? Untitled1.ps1
  5. Dn n?i dung c?a cc t?p l?nh t? bi vi?t ny
  6. B?m t?p, lu nh, c:\script\ScrubCil.ps1
  7. Nh?p vo B?t ?u, t?t c? chng tr?nh, ph? ki?n, Windows Powershell, ph?i b?m vo "Windows powershell" v ch?n "Run as Administrator"
  8. T?i d?u ki?m nh?c powershell, g? cc l?nh sau
    CD \script
    thi?t l?p-executionpolicy khng gi?i h?n
    .\ScrubCil.ps1 saved.cil

Thao tc ny c kh?c ph?c ?c s? c??

  • Ki?m tra xem li?u v?n ? ?c kh?c ph?c hay cha. N?u v?n ? ? ?c kh?c ph?c, b?n ? k?t thc v?i ph?n ny. N?u v?n ? khng c? ?nh, b?n c th? lin h? v?i h? tr?.
  • Chng ti s? nh gi cao thng tin ph?n h?i c?a b?n. ? cung c?p ph?n h?i ho?c bo co b?t k? v?n ? v?i gi?i php ny, xin vui l?ng ? l?i m?t b?nh lu?n trn cc "Kh?c ph?c s? c? cho ti"blog ho?c g?i cho chng ti m?t b?c e-mail.

Thu?c tnh

ID c?a bi: 2383895 - L?n xem xt sau cng: 24 Thang Sau 2014 - Xem xt l?i: 2.0
p d?ng
  • Windows 7 Enterprise
T? kha:
kbfixme kbmsifixme kbmt KB2383895 KbMtvi
My d?ch
QUAN TRONG: Bai vit nay c d?ch b?ng phn mm dich thu?t cua Microsoft va co th c Cng ng Microsoft chinh sa l?i thng qua cng ngh CTF thay vi mt bin dich vin chuyn nghip. Microsoft cung c?p cc bi vi?t ?c c? bin d?ch vin v ph?n m?m d?ch thu?t th?c hi?n v c?ng ?ng ch?nh s?a l?i ? b?n c th? truy c?p vo t?t c? cc bi vi?t trong C s? Ki?n th?c c?a chng ti b?ng nhi?u ngn ng? Tuy nhin, bi vi?t do my d?ch hoc thm chi cng ng chinh sa sau khng ph?i lc no c?ng hon h?o. Cc bi vi?t ny c th? ch?a cc sai st v? t? v?ng, c php ho?c ng? php, Microsoft khng ch?u trch nhi?m v? b?t k? s? thi?u chnh xc, sai st ho?c thi?t h?i no do vi?c d?ch sai n?i dung ho?c do ho?t ?ng s? d?ng c?a khch hng gy ra.
Nh?p chu?t vo y ? xem b?n ti?ng Anh c?a bi vi?t ny: 2383895

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