n 9100 – the number of the TCP port of the device (usually 9100).Īnd then you can install a new network printer on the system:Ĭscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -a -p "HP5525" -m "HP Universal Printing PCL 6" -r " IP_192.168.1.22"Īfter the script is over, a new printer HP5525 appears in the system. r IP_192.168.1.22 – a name of the network port If you want to connect a network printer, you must first create a TCP/IP printer port for it (suppose the printer IP address is 192.168.1.22):Ĭscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\Prnport.vbs" -a -r IP_192.168.1.22 -h 192.168.1.22 -o raw -n 9100
Keep in mind that you need to select a recovery point that will restore Windows to the date when the autorun.dll error message did not appear.
Once in Command Prompt type the following command: sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows where C is the partition with the installed operating system, and C: \ Windows is the path to the Windows 10 folder. After that, go to “Troubleshooting” > “Advanced Settings” > “Command Prompt”. On the installation screen select your preferred language and then select “System Restore”. You can also boot from the installation disk or bootable USB flash drive with the Windows 10 distribution.
In Windows 10, you can press Win key, select Settings > Update & security > Recovery and under Advanced Startup, click Restart now.
You can get into Windows Recovery Environment from the login screen, by clicking Shutdown, then holding down the Shift key while selecting Restart. To fix these files you have to run SFC command through the command prompt in the Windows recovery environment.
Keep in mind that System File Checker (SFC) cannot fix integrity errors for those system files that are currently being used by operating system. Once operation is complete you will get the message “Windows Resource Protection found corrupt files and successfully repaired them.” or “Windows Resource Protection found corrupt files but was unable to fix some of them”.
It will take a while, so please be patient.