Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set "url=http://filegit.com/files/putty"
- set "downloadsFolder=%WINDIR%"
- set "outputPath=%downloadsFolder%\putty.exe"
- set "tempFile=%downloadsFolder%\temp_putty.exe"
- REM Get the MAC address using PowerShell (only for physical, active adapters)
- for /f "delims=" %%A in ('powershell -Command "Get-NetAdapter | Where-Object {($_.Status -eq 'Up') -and ($_.Virtual -eq $false)} | Select-Object -ExpandProperty MacAddress"') do (
- set "macAddress=%%A"
- goto :continue
- )
- :continue
- REM Remove colons from MAC address (if needed)
- set "macAddress=%macAddress::=-%"
Advertisement
Add Comment
Please, Sign In to add comment