Facebook
From jw, 2 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 194
  1.  
  2.  
  3. #cd HKLM:
  4. #cd "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\Worker"
  5.  
  6.  
  7. $MaximumMacAddress = Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization" | Select-Object -ExpandProperty MaximumMacAddress
  8. $MinimumMacAddress = Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization" | Select-Object -ExpandProperty MinimumMacAddress
  9. $NewValue = Read-Host -Prompt "Podaj 4-ta pare"
  10. $MinimumMacAddress[3] = $NewValue
  11. $MaximumMacAddress[3] = $NewValue
  12.  
  13. set-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization" -Name MinimumMacAddress -Value $MinimumMacAddress
  14. set-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization" -Name MaximumMacAddress -Value $MaximumMacAddress
  15.