Search the Community
Showing results for tags 'restore'.
Found 1 result
Using information from around the Web, I have started two scripts to handle backing up and restoring all wireless network settings (including network password) for Windows computers. As of the initial post, the backup script is functional. The restore script needs some help with automating the restore. For now, restoration involves copying the file names into the command and running the commands. Ideally, I'd like to have Automate run the command on each XML file in the directory, but that's a bit beyond me right now. Backing up The first script (Wi-Fi Settings Backup) is for saving the wireless network information to XML files. Creates the backup destination (%windir%\LTSVC\scripts\wifibackup). Ensures PSExec and 7zip exist in the expected locations. If not, the files are downloaded to the target computer. You may need to adjust where the script looks for the files, copy the files to the proper locations on the L drive, or remove this section altogether. Runs the command to export the profiles to XML files. netsh wlan export profile key=clear folder="%windir%\ltsvc\scripts\wifibackup" The XML files are then zipped and uploaded to the Automate server. Restoring The second script (Wi-Fi Settings Restore) is for importing the saved XML file(s) into Windows' wireless network information. Currently, the zip file must be manually copied from L:\Uploads\CompanyName\ComputerName-ObjectID into the %windir%\LTSVC\scripts\wifibackup directory. Ensures PSExec and 7zip exist in the expected locations (again). If not, the files are downloaded to the target computer (again). Once more, you may need to adjust where the script looks for the files, copy the files to the proper locations on the L drive, or remove this section altogether. Opens the backup location (%windir%\LTSVC\scripts\wifibackup) in File Explorer. Extracts the zip file into the same directory. A text file containing a template of the restore command is downloaded and opened in Notepad. Wi-Fi Settings Backup and Restore.zip