Windows 10 – Disable Automatic Updates

January 26, 2018

How to disable Windows 10 Automatic Updates …

Solution :

1. Open the Registry

Go to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows

2. Add 2 Keys

Add Key WindowsUpdate and Sub Key AU

3. Add DWORD Value

Value Options are :

2 =  “Notify for download and notify for install.”
3 = “Auto download and notify for install.”
4 = “Auto download and schedule the install.”
5 = “Allow local admin to choose settings.”

Take 2 = “Notify for download and notify for install.”

Result looks like this.

image

Reboot and this will be applied.

Enjoy !

Advertisements

Windows 10 – How to install Linux Subsystem

January 19, 2018

1. First start activate the Developer mode.

Windows Settings –> Update & Security

image

Activeate –> Developer Mode

image

2. Activate the Windows Feature –> Subsystem for Linux

image

3. Open CMD and run the command BASH

image

As you can see we don’t have the Linux Subsystem available … ?

4. Start the CMD again as Administrator.

And this command : lxrun /install /y

image

5. Start the Linux SubSystem using the command BASH

image

How to install MONO (.NET framework) on Bash – Ubuntu see here :

https://audministrator.wordpress.com/2017/01/14/windows-10-how-to-install-mono-on-bash-unbuntu/


Windows Core IoT – NodeJS on a Raspberry PI3

January 15, 2018

Running Windows IoT on a RPI3 is just fun.

To get started some of my previous posts here

Anyhow I wanted to run a webserver on the RPI3… I checked around and one of the most obvious is running NodeJS on a RPI3.

The main advantages are that is that NodeJS is cross platform supported and needs a small memory footprint.

Solution :

1 NodeJS-ChaKaCore

Here : //nodejs.org/en/download/


2. Create a folder on your RPI3

Once download create a connection to your RPI3 and create a folder, like NodeJS


3. After this open the Downloaded ZIP step 1.

    And copy the all the files to the C:\NodeJS on your RPI3, except the SDK folder.

image

4. Create a JavaScript to start the Webserver.

Save it as Server.js on the C:\NodeJS folder

image

var http = require('http');

http.createServer(function (req, res) {
    res.writeHead(200, { 'Content-Type': 'text/plain' });
    res.end('Hello World\n');
}).listen(1337);

5. Open the RPI3 Firewall Access

netsh advfirewall firewall add rule name="Node.js" dir=in action=allow program="C:\NodeJS\node.exe" enable=yes 

6. Start the WebServer

image

.\node.exe .\Server.js 


6. Test the connection to your new RPI3 WebNerver

Open a local Browser and test the connection to your http://RPI3:1337

Installing NodeJS Add-on Packages / Modules

Packages or Modules are extensions for NodeJS, see here for more details.

After installation check the version like this :

image

.\npm -v

1. Use NMP to download the required Packages or Modules

I tried this using the PowerShell remote connection … but that did not work.

Solution is to install NodeJS on your Local PC and grab the Modules.

Example : upper-case package


image

Error : ‘node’ is not recognized as an internal or external command

image

Wen running into this error run the command below.

Solution  : SET PATH=C:\Nodejs;%PATH%

2. Copy to the RPI3 NodeJS\node_modules directory


image

3. modify the Server.js JavaScript

Example : module upper-case

image

Notice the extra line require(‘upper-case’)

var http = require('http');
var uc = require('upper-case');

http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type': 'text/html'});
    res.write(uc("Hello World!"));
    res.end();
}).listen(1337);

4. Test the result

image

Notice the response is in capital letters !

Enjoy !


SharePoint – Online ActiveX in Chrome Browser

January 8, 2018

Since I migrated my Hard and Software Inventory Scripts to SharePoint Online.

https://audministrator.wordpress.com/2018/01/08/sharepoint-online-computer-inventory/

I felt the need to check if I could run it in the Chrome Browser as well … ?

Solution :

Step 1. Is to configure Chrome to accept ActiveX Scripts

Open Chrome and go to Settings –> Advanced Options –> Proxy Settings

image

Go to the Security Tab –> Add you SharePoint Online site to the TRUSTED Sites

Next go to Custom Level –> Change the following ActiveX settings

image

Safe and restart Chrome

Step 2. Is to download IETab Extension for Chrome

image

Once installed is will ask you to run a local exe called ietabhelper.exe

And it will show you the Extension Icon here :

image

Step3. Run it and test the Result

Go to the Hardware Inventory Tool in SharePoint Online and click Get Info

image

As you can see it retrieved all the details, to be saved in the SharePoint Online Cloud using the Chrome Browser

How cool is that Smile Smile


SharePoint – Online access to a Windows Core IoT on RPI3

December 31, 2017

After converting my HW & SW Inventory Tool to SharePoint Online…

https://audministrator.wordpress.com/2013/05/14/sharepoint-computer-hw-sw-inventory/

I guessed why not try this against a Windows IoT on a Raspberry PI3 ?

And indeed it went as expected … so cool not Smile

image

Possibilities are unlimited … I can check to see if the RPI3 is still online (when the button lights up green) where ever I am

Next bonus effect is that I can do a reboot remotely.

Technology :

Technology used behind the scene is just SharePoint and Client Side – JavaScript.

Maybe I will share the scripts, but not for free… Winking smile

Happy New Year …


Windows Server 2008 – Task Schedule Error 2147746323

December 18, 2017

When you schedule a Task you might run into the Error 2147746323.

The code appears after you schedule an Email Action

image

When you convert this error number to a HEX number it will disclose the root cause.

Use this PowerShell script to convert it to HEX

CLS

$Value = 2147746323

"0x"+ ('{0:x}' -f $Value)

It will look like this :

image

Meaning : The transport failed to connect to the Email server

So you need to investigate where it goes wrong in connecting to the server.

For more codes see here  :

https://msdn.microsoft.com/en-us/library/windows/desktop/aa383604(v=vs.85).aspx

Enjoy!


Windows Server 2016 – Event ID 7000 & 7009

November 8, 2017

More Event ID Errors, it does not seem to stop … ?

Event ID 7000 and 7009 relating to a Service not starting at reboot.

image

The WseMgmtSvc service failed to start due to the following error:
The service did not respond to the start or control request in a timely fashion.

SOLUTION :

Go to Services and find Windows Server Essentials Management Service

image

Change the startup to Automatic – Delayed Start

image