With the rapid development of the Internet of Things (IoT) technologies, IoT devices have been widely deployed. In industrial scenarios, the deployment cost including human operation and time can be increased with the scale of the network because there might be more than thousands of devices that need to be provisioned at the same time. Currently, most systems require human involvement when a newly deployed device is initially connected to a wireless access network such as Wireless Local Area Networks (WLAN). In this paper, we propose a state machine based method to control the provisioning process, which calls for zero human intervention. For security reasons, we employ the Remote Authentication Dial-In User Service (RADIUS [1]) protocol and a one-time password-generating method for authentication, in order to prevent unreliable devices from accessing the network. In the performance evaluation, our method can complete the provisioning process within four seconds after the device's boot-up. Compared to legacy methods, our solution can reduce both time and human cost.