What if „Install” command is missing from the context menu in Windows 10 ?

After fresh installation of windows @10 rev 1903 I wanted to personalize my desktop , as I always do. Few things done , my favourite mouse cursor left.

Normally any inf file can be installed by opening mouse context menu , and selecting install command on file . But this time I was surprised . Install option was missing.

No matter what I tried , I was not able to bring my favourite cursor back! But, wait… I will try to install it with command line .

rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 .\Install_.inf

Worked .

Someone could ask what this number 128 in command means? So small explanation copied from MS page:

You should use a combination of the following values for mode. You must include 128 to set the default path of the installation to the location of the INF, otherwise a system-provided INF is assumed. Add values to specify rebooting. Note that only the values 128 or 132 are recommended, other values may cause the computer to reboot unnecessarily or not reboot when it required.

ValueDescription
0System provided INF.
128Set the default path of the installation to the location of the INF. This is the typical setting.
+0Never reboot the computer.
+1Reboot the computer in all cases.
+2Always ask the users if they want to reboot.
+3Reboot the computer if necessary without asking user for permission.
+4If a reboot of the computer is necessary, ask the user for permission before rebooting.

https://docs.microsoft.com/en-us/windows/win32/api/setupapi/nf-setupapi-installhinfsectiona

Edit:

I found source of my problem . File association for inf file was broken by Notepad++ configuration. Of course problem can be temporary fixed by using command line for future installations , or we can fix this permanently by restoring file association in registry. Copy text to txt file ,sa save as .reg and open it in explorer.


Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT.inf]

[HKEY_CLASSES_ROOT.inf]
@=”inffile”

[HKEY_CLASSES_ROOT.inf\PersistentHandler]
@=”{5e941d80-bf96-11cd-b579-08002b30bfeb}”

[-HKEY_CLASSES_ROOT\inffile]

[HKEY_CLASSES_ROOT\inffile]
@=”Setup Information”
„FriendlyTypeName”=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\
00,6f,00,6f,00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,\
32,00,5c,00,73,00,65,00,74,00,75,00,70,00,61,00,70,00,69,00,2e,00,64,00,6c,\
00,6c,00,2c,00,2d,00,32,00,30,00,30,00,30,00,00,00

[HKEY_CLASSES_ROOT\inffile\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,6d,00,\
61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,36,\
00,39,00,00,00

[HKEY_CLASSES_ROOT\inffile\shell\Install]
@=”&Install”
„MUIVerb”=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
6f,00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
00,73,00,65,00,74,00,75,00,70,00,61,00,70,00,69,00,2e,00,64,00,6c,00,6c,00,\
2c,00,2d,00,32,00,30,00,30,00,32,00,00,00

[HKEY_CLASSES_ROOT\inffile\shell\Install\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,49,00,6e,00,\
66,00,44,00,65,00,66,00,61,00,75,00,6c,00,74,00,49,00,6e,00,73,00,74,00,61,\
00,6c,00,6c,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,00,31,00,22,00,00,00

[HKEY_CLASSES_ROOT\inffile\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
00

[HKEY_CLASSES_ROOT\inffile\shell\print\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\
00,25,00,31,00,00,00

[-HKEY_CLASSES_ROOT\SystemFileAssociations.inf]

[-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts.inf]

[-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Roaming\OpenWith\FileExts.inf]

And say hallo again to Install option in context menu.

How to remotely restart network HP printer from command line

 

Are two ways . One uses ftp command , and second   query with command snmpset. I will describe second one because is easier  to use it with mRemote NG.

Easy way to restart printer is send SNMPT codes via command line  , which is available for Windows and Linux.

This command will sent to the printer query which will force printer restart.

snmpset -v 1 -c public PRINTER_IP ".1.3.6.1.2.1.43.5.1.1.3.1." i 4

snmpset is a part of tools available at : http://net-snmp.sourceforge.net/

Many times tested, always worked.

Intel(R) 82583V Gigabit Missing feature WOL in Windows 10

For Asus Crosshair Formula V network card based on chipset Intel(R) 82583V Gigabit WOL was not avalable in Windows 10 network card settings.   When I send magic packet from android app FING my PC was still offline.

I my scenario in BIOS settings allowed to start device by PCI devices, fast boot was disabled in Windows 10

Only in network card settings WOL was missing.

Intel(R) 82583V Gigabit WOL windows 10 problem
Intel(R) 82583V Gigabit missing WOL settings in windows 10

So I downloaded newest driver package from Intel website

https://downloadmirror.intel.com/25899/eng/prowinx64.exe

Extract that package somewhere, and open Device Manager by right clicking on the Start button.  Find your Intel (R) 82583V Gigabit Network Connection under Network adapters, right click on it and choose Update Driver Software.

Choose Browse my computer for driver software, then choose Let me pick from a list of device drivers on my computer, click on Have Disk and browse to the folder you extracted the Intel driver package to.

Once there choose the PRO1000, then the Winx64, then the NDIS65 folders, and select the e1r65x64 driver.  Select the listed adapter, even though it doesn’t match your adapter, at which point Windows 10 will complain, but ignore it and install the driver anyway.

PROWinx64\PRO1000\Winx64\NDIS65

Reboot.

Once you’ve done that right click on the start button again, choose Network Connections, then right click on your ethernet connection and choose Properties, then Configure.  Choose the Advanced tab and make sure the following options are selected:

Enable PME:  Enabled

Speed & Duplex:  Auto Negotiation

Wait for Link:  Auto Detect

Wake on Link Settings:  Forced

Wake on Magic Packet:  Enabled

Wake on Pattern Match:  Enabled

 

 

 

 

 

 

 

 

 

 

 

 

 

Now magic packed was able to start my PC.

After two days using of  this drivers, there was no blue screen, WOL works perfectly .

UPDATE:

To make this work, PC must be switched off by Windows , it means that PC must go to OFF state from windows then mentioned network card settings and  WOL feature will work . It is required to switch PC into  state S5 .

Soft Off S5 The system appears to be off. This state is comprised of a full shutdown and boot cycle.

more info about power states at MSDN