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 

 

How to change keyboard and region settings from command line .

If installed system has not national settings like time zone, keyboard type or currency configured by default during system installation, it must be done before user start complain on it . So it can be done via windows gui, and command line which is easier to repeat on each PC via GP or batch file.

Settings can be set by executing command line :

control.exe intl.cpl,,/f:”P:\IT\lang\localepl.xml”

where „P:\IT\lang\localepl.xml” is localization of the file which contains  code :

<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend">
<gs:UserList>
<gs:User UserID="Current" CopySettingsToDefaultUserAcct="true" CopySettingsToSystemAcct="true"/>
</gs:UserList>
<!--Location Preferences-->
<gs:LocationPreferences>
<gs:GeoID Value="191"/>
</gs:LocationPreferences>
<gs:InputPreferences>
<!--pl-PL--><gs:InputLanguageID Action="add" ID="0415:00000415" Default="true"/>
<!--pl-PL--><gs:InputLanguageID Action="add" ID="0415:00000415"/>
</gs:InputPreferences>
<!-- user locale -->
 <gs:UserLocale>
  <gs:Locale Name="pl-PL" SetAsCurrent="true" ResetAllSettings="true"/>
 </gs:UserLocale>
<!-- system locale -->
<gs:SystemLocale Name="pl-PL" />
</gs:GlobalizationServices>

full description at:

https://support.microsoft.com/pl-pl/help/2764405/how-to-automate-regional-and-language-settings-in-windows-vista,-windows-server-2008,-windows-7-and-in-windows-server-2008-r2

and

https://msdn.microsoft.com/en-us/goglobal/bb964650

Shortly:

I used there

<gs:GeoID Value="191"/>

Which belongs to PL  full list of codes fo other countries can be found at:
https://msdn.microsoft.com/en-us/library/windows/desktop/dd374073%28v=vs.85%29.aspx

It will set timezone and currency for your country.

<!--pl-PL--><gs:InputLanguageID Action="add" ID="0415:00000415" Default="true"/>
<!--pl-PL--><gs:InputLanguageID Action="add" ID="0415:00000415"/>

Added polish programmers keyboard and configured it as default.

List available keyb codes for other countries at :
https://technet.microsoft.com/en-us/library/hh825682.aspx

Please remember using this XML entity does NOT install the display languages. It should only be used for selecting display languages after they have been installed.

When you execute described command , logging  off user may be needed.