Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
Script:
@echo off
REM This script is designed to be run during the Out-Of-Box Experience (OOBE)
REM It will attempt to register the device with Windows Autopilot using the -online switch
echo Starting Autopilot registration...
REM Check if the device is connected to the internet
ping -n 1 www.google.com >nul 2>&1
if %errorlevel% neq 0 (
echo No internet connection detected. Please connect to the internet and try again.
exit /b
)
REM Install the necessary script or tool for Autopilot registration
REM Assuming the tool is available locally or can be downloaded
echo Installing Autopilot registration tool...
REM Example: msiexec /i AutopilotTool.msi /quiet
REM Use the -online switch to register the device
echo Registering device with Autopilot using -online switch...
REM Replace 'AutopilotTool' with the actual tool name
REM Example: AutopilotTool.exe -online
echo Autopilot registration completed. Please follow the on-screen instructions.
pause
Como Executar o Script:
Shift + F10
para abrir o Prompt de Comando..bat
, por exemplo, autopilot_registration.bat
..bat
para um local acessível no dispositivo, como um pendrive.autopilot_registration.bat
e pressione Enter
.