Windows 10 system Restore Error 0x80070091

April 24, 2017

When you encounter a Windows 10 System Restore Error 0x80070091

image

This is the work around to fix it :

1. Boot into safe mode.

2. Right click on the start button, left click on Command Prompt (Admin) Window will appear with a Command Prompt ending with >

3. takeown /f “C:\Program Files\WindowsApps”
/r /d Y

Press Enter. Wait for it to finish and go back to Command Prompt>

4. icacls “C:\Program Files\WindowsApps”
/grant “%USERDOMAIN%\%USERNAME%”:(F) /t

Press Enter. You will get a message:  Successfully processed xxxxx files: Failed to process 0 files

5. rd /s “C:\Program Files\Windows Apps”

Press Enter. It will ask you to confirm.  Yes. This will delete
the folder. 

6. Now Reboot your computer and System Restore should work.

More Fix Options you can find here :

http://borncity.com/win/2017/02/22/windows10-version-1607-system-restore-error-0x80070091/


How to change the Library position in the File Explorer in Windows 10

April 6, 2017

One of the most enervating things I ran into in Windows 10 compare to prior versions, was the position of where the Libraries was in the Windows File Explorer

Before it was on top above “This PC”, now you find in at the bottom Sad smile

image

This makes you click and scroll like hell !

SOLUTION :

Open REGET and go for HKEY_CLASSES_ROOT\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}

image

Change the SORT ORDER form 84 Decimal to 56

image

 

Enjoy !


How to install Mono on Windows 10 Bash / Ubuntu

January 14, 2017

To get going first go here :

http://www.mono-project.com/docs/getting-started/install/windows/

Next read the steps to install it :

https://github.com/mono/website/issues/199

1. Installing the Mono Framework

image

image

image

image

After installation the Mono Framework is located in :

image

/usr/lib/mono/xxx

image

 

2. Testing the DotNet Framework

Once installed you can test it using the Hello Mono World Example :

http://www.mono-project.com/docs/getting-started/mono-basics/

First copy the Hello.cs to the Root folder (keep in mind that File Names are CASE SENSITIVE in Linux)

image

You can as well build GUI applications, but run it make sure you have the Xserver running first.

image

Otherwise you will see this error appearing.

image

 

So now we know there is a DotNet Framework installed on Linux, we can start scripting Winking smile

Enjoy !


Developing a Console App for running on a Raspberry PI3 using Windows Core IoT – Without Visual Studio

December 31, 2016

I was wondering wondering If we could create an App for running on our Rasberry PI3, where Windows 10 Core IoT is installed.

As you might know regular EXE files don’t run on this windows version, because a RPI3 uses an ARM Architecture.

While a normal Windows is based on x86 or x64 Architecture.

 

Solution : 

Some years back I created a wrapper for the DotNet Compiler and called it Visual Studio Light

I modified this version that was created in AU3 to compile for ARM architecture.

(Just added the PLATFORM Switch for ARM)

 

So next I compiled this simple Console Application :

class HelloCsharp
{
       static void Main()
       {
            System.Console.WriteLine (“Hello World from C#. on ARM Architecture like Raspberry PI3 running Windows 10 Core IoT”);
       }
}


 

image

 

There where some errors popping up, but they seem to be normal.

Because I compiled the exe on a x64 Machine, and the EXE was compiled for and ARM Archtecture.

So it started complaining about this, but don’t worry  Winking smile

Next I copied the EXE for ARM to my RPI3.

image

Logged into a PS session on the RPI3, and it ran without any problems Smile

 

image

 

Enjoy!


Windows 7 – High CPU & Memory Usage : svchost & wuauserv

November 24, 2016

At some point in time you might get to the point where you notice that you PC is getting warm and the ventilator is running continuously ?

image

If you start to investigate it using the Task Manager, you will see that the CPU runs high on the svchost.exe  process?

But what does it mean ?

image

If you right click the svchost.exe you can select Go to Services …

image

It jumps to the services Tab. And highlights all related services linked to this process …

image

Once of them will be the wuauserv Service which is running.

Stop the Service and you will see the CPU drops immediately.

image

Next use the steps below to resolve the root cause of the issue.

http://superuser.com/questions/821032/svchost-exe-high-memory-usage-wuauserv

Run as Administrator
net stop wuauserv

net stop bits

rd /s /q %windir%\softwaredistribution

net start bits

net start wuauserv

wuauclt.exe /detectnow

If this does not help install the once below :

https://support.microsoft.com/en-us/kb/3050265

https://support.microsoft.com/en-us/kb/3102810

I tried many other things, but no success … Sad smile

image

Finally this one did the trick ?

KB3172605

https://support.microsoft.com/en-us/kb/3172605

After installing and reboot it got stuck on this ? Sad smile

image

Solution :

Do a hard stop (press the power key to shut down) and restart in SAFE MODE

image

Once restarted I logged on again, and ‘voila’ Smile

image

The updates started coming in Smile Smile

See Also :

Win 7 Convenience Rollup Update

http://www.howtogeek.com/255435/how-to-update-windows-7-all-at-once-with-microsofts-convenience-rollup/

http://catalog.update.microsoft.com/v7/site/Install.aspx?q=3125574&referringpage=Search.aspx

More interesting tips here :

http://superuser.com/questions/944574/windows-update-doesnt-work-and-consumes-100-of-cpu-win7-sp1/997067#997067

http://www.infoworld.com/article/3086811/microsoft-windows/microsoft-releases-kb-3161647-kb-3161608-to-fix-slow-windows-7-update-scans.html


Unlocking the Local Security Policy on a Computer

November 24, 2016

When a PC is part of a Domain, you can run into the problem that the settings are locked out.

Because of the Domain Sec. Policy is overruling the local Policy Sad smile

Solution :

Read here : https://blogs.msdn.microsoft.com/muaddib/2006/11/04/unlocking-the-local-security-policy-on-a-computer/

  1. Log onto the computer with an Administrator account.
  2. Start the Local Security Settings MMC (SECPOL.MSC)
  3. Export the current security settings to an INF file by right clicking the top node in the MMC and selecting Export from the context menu. (for Windows XP see additional information below) and name the file “current.inf” (name is not important)
  4. Open a blank MMC (Start > Run MMC)
  5. Add the Security Configuration and Analysis snap-in.         image
  6. Right-click the top node in Security Configuration and Analysis and select “New Database” and then save the database.
  7. image

  8. When prompted to import a security template use the one exported in step 3 above (current.inf)
  9. Now right click Security Configuration and Analysis and select “Analyze Computer Now”.
  10. Now browse to the setting you want to modify.  You will notice the database setting and computer settings are the same in all cases.  Double-click the setting and make changes.  Repeat for each setting you want to modify.
  11. When you are finished making changes, right-click top node and select “Configure Computer Now” and you changes will be applied.

Works like a charm Smile

Enjoy !


Windows 10 – DNS Configuration

November 13, 2016

Ones I was totally amazed to see that once I connected a Windows 10 machine in the network. Everyone started shouting that they could not reach the internet ?

The phone was red ringing complaints Call me

After a long time I saw the connection between the new machine and the incident ?

 

Investigating and a bit of internet search delivered me the following :

 

Windows 10 Configuration settings (DNS issues on network)

Solution :

http://social.technet.microsoft.com/wiki/contents/articles/3336.event-id-1014-microsoft-windows-dns-client.aspx

 

User Action

Method one: Disable RSS, Autotuning, and Taskoffload

1.   Run the following command in an elevated command prompt in Windows 7:

netsh interface tcp set global rss=disabled

netsh interface tcp set global autotuninglevel=disabled

netsh int ip set global taskoffload=disabled

 

2.  Disable the Scalable Networking Pack (SNP) in Windows 7 by changing the registry settings as follows:

Perform a full-system backup before you disable the SNP.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]

EnableTCPChimney=dword:00000000
EnableTCPA=dword:00000000
EnableRSS=dword:00000000
If the registry keys do not exist, create them, and then assign the previous values.

 

Method two : Disable TCP/IP v6

To disable TCP/IP v6

1.  Click Start, click Control Panel, click Network and Internet, and then click
View network status and tasks.

2.  In the left pane, click Manage Network Connections.

3.  Right-click Local Area Connection, and then click Properties.

4.  In the pop-up box, clear the Internet Protocol Version 6 (TCP/IPv6) check box.
5.  Click OK, and then restart your computer.

 

To enable TCP/IP v6

1.  Follow steps 1 through 3 in the previous procedure.

2.  In the pop-up box, select the Internet Protocol Version 6 (TCP/IPv6) check box.

3.  Click OK, and then restart your computer.

 

Method three: Enable the spanning tree portfast setting in your router

This action varies depending on your infrastructure router. Consult your manufacturer for further details.

 

Method four: Set you router and PC to communicate on same channel and standard manualy

1. Go to your router admin page which should be 192.168.1.1 (confirm with router manufacturer).
2. Navigate to WiFi settings and choose a channel which should comply with your location, for ex: 11. Save.
3. Choose Standard to broadcast WiFi signal as G only not abgn, bgn, gn (If your router is N capable and any PC in your home/office is only G ready). Save.
4. Go to your PC Network and Sharing Center (Windows 7) and Click on Change Adapter Settings, select you WiFi adapter, right click and choose Properties.
5. In pop up window select Configure, in next window click on Advance tab and browse settings there and choose same channel you choose in you router for ex: 11 and the same standard as G not abgn, bgn or gn. Save and Exit.

 

Method 1 solved the network issues. Smile

Enjoy!