Category: Windows

Windows: How to change the network from Public to Private?

On my Windows 10, I found the network is set to Public network. That means you can’t share anything to/from other computers. When you connect to a new network, Windows gives you an option to share files with another computer on the network. If you check that box, the network is flagged as Private. If you missed it, the network is flagged as Public. It looks like this:


I tried to change that network back to the Private network. For some reason, Windows 10 didn’t give me any to option to change the network type anywhere in GUI settings.

But I found how to do it in PowerShell. If you want to change the network type, open the PowerShell with Administrative Privileges (Right click on PowerShell, Run as Administrator) and run these commands:

Run this command and note down “InterfaceAlias” of the network you want to change.


Store the Network connection profile of the network to a variable (enter the interface alias you noted down from the previous command) :

$netprofile = Get-NetConnectionProfile -InterfaceAlias <Interface Alias name>

Change the Network Category to “Private” or “Public” in the object stored in $netprofile:

$netprofile.NetworkCategory = "Private"

Set the network profile with the modified object:

Set-NetConnectionProfile -InputObject $netprofile

You can close the PowerShell now. Check your network, it should be changed now.


Group Policy is failed to update on Windows 10 computer

On my Windows 10 computer, I found Group Policy is not being applied anymore. If I ran group policy update on a administrative command shell, I get this:

PS C:\WINDOWS\system32> gpupdate /force
Updating policy…
Computer Policy update has completed successfully.
User Policy could not be updated successfully. The following errors were encountered:

The processing of Group Policy failed. Windows could not determine if the user and computer accounts are in the same forest. Ensure the user domain name matches the name of a trusted domain that resides in the same forest as the computer account.

To diagnose the failure, review the event log or run GPRESULT /H GPReport.html from the command line to access information about Group Policy results.

So after some research I found the issue and fixed it. The solution is

Make the freaking NETLOGON service to start automatically and start the service.

Did this solution helped you? leave me a reply here.

How to Create a bootable Windows 2012 R2 USB Disk? (applies to Windows 8.1 also)

Pre-requisites: 7-Zip software (Download it from here:, Windows 2012 (R2) ISO (or Windows 8.1 ISO), 8GB or more USB disk

  • Open Command Prompt in elevated mode (Run as Administrator)
  • Type diskpart and press Enter
  • Type list disk and press Enter. Note the list of existing disks.
  • Insert the USB Disk
  • Type list disk and press enter again. Note the new disk showed up which is our USB disk. I assume the new disk is 2 for example purpose.
  • Type select disk X where X is your USB disk. E.g., select disk 2. Press Enter.
  • Type clean and press enter.
  • Type create partition primary and press enter to create primary partition 1.
  • Type select partition 1 and press enter.
  • Type active and press enter to make the partition 1 active
  • Type format fs=ntfs and press enter. This will format the partition 1 as NTFS volume.
  • Type assign and press enter to assign the USB disk to a drive letter.


  • Now right click on Windows Server 2012 R2 or Windows 8.1 ISO file, select 7-Zip –> Extract Files…
  • Select your USB disk to extract the ISO contents to the USB disk

That’s all. Boot the server or computer using the bootable USB disk.

Did it help you? Leave me a Thanks.

Outlook 2013 (&2010): Pictures in Signature–How to?

In Outlook 2013 (& 2010) if you paste or insert an picture (e.g., Logo) in Signature Editor, it is not resizable. You are stuck and not able to do a correct sized picture in Logo. But No worries. There is an very simple trick that you can make the signature however you want.

  • Click New E-mail in Outlook 2013 (or 2010)
  • Type and insert the picture and make the signature that way you want.


  • Now Copy the whole thing in the compose window.
  • Click Insert –> Signature –> Signatures..
  • Click New and type a name, click OK.
  • Paste the copied signature

That’s it. Enjoy. Smile

Windows 7: Network Card disconnect on high usage

My computer was keep disconnecting from network, I think it happens when I am doing high network usage. After I remove the network cable and reconnect, it works for while.

System Event log has few of these,

Log Name: System
Source: Microsoft-Windows-DNS-Client
Date: 4/19/2011 6:23:00 PM
Event ID: 1014
Task Category: None
Level: Warning
Name resolution for the name timed out after none of the configured DNS servers responded.

I found this FORUM POST with few solutions.  The one worked for me is to disable Receive Side Scaling in network card advanced properties.  I hope this helps if anyone suffers from this nagging issue.


Windows 2008 R2 on VMWare: “Unable to contact IP driver. General failure”

I have cloned (Deployed) new image from a template in VMWare of Windows Server 2008 R2 server. And joined to a domain (and domain controller is another VM deployed from same template). Then this frigging error message creped up in Command Prompt whenever I try any network commands (ping, ipconfig, etc.,): “Unable to contact IP driver. General failure”

After spent few minutes on Bing, I found the solution myself. It’s frigging duplicate SID. Usually duplicate SID is not an issue (according to Microsoft). But in my case, the domain controller and standalone server has same SID (deployed from same VM image template).  My solution is to run SysPrep to generate a new SID and it’s resolved the issue for me.

  1. Open Command Prompt in elevated mode (right click and select “Run as Administrator”)
  2. Change your path to C:\Windows\System32\SysPrep
  3. Type SysPrep and select the defaults.
  4. Reboot the VM and re-join to the domain.

There. If that resolved your issue, leave me a comment. Smile

Windows 7: Auto Login to Domain Account and lock the desktop right away

I saw this blog post in Life Hacker (Make Windows load your desktop before you log in) and see the interesting idea which I used to do few years ago. That Life hacker post is for home users. It doesn’t apply to the domain computers, obviously. So I decided to explain how to auto logon with Domain account and lock your desktop on start up. Here it is.

  1. Open Registry Editor (Start Orb –> type Regedit.exe)
  2. Browse to this location: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogon
  3. Edit DefaultUserName key and type your domain user name
  4. If doesn’t exist, Create DefaultDomainName (string or REG_SZ) key and edit it with your domain name
  5. If doesn’t exist, create DefaultPassword (string or REG_SZ) key and edit it with your password
  6. If doesn’t exist, create AutoAdminLogon (string or REG_SZ) key and edit with “1”.
  7. Close Registry Editor
  8. Open Notepad
  9. Type this: WScript.CreateObject("WScript.Shell").Run("rundll32 user32.dll,LockWorkStation")
  10. Save it as “LockDesktop.vbs” (NOTE: you have to type script name in double quotes, or it will save it with “.txt” in the end) to a known location (would say Documentsscripts in your profile)
  11. Click Start –> All Programs. Right click on Startup and select Open.
  12. On Startup Folder, right click on empty space and select New –> Shortcut.
  13. Select your script (LockDesktop.vbs) on your saved location and create a shortcut.
  14. That’s it. Reboot your computer and watch your computer auto login with your account and locks the desktop right away.

Make sure have a plan to change the password when your password expires in the registry (DefaultPassword key). I would create a local user account and have it handy just in case. Enjoy!