Enabling PowerShell remoting fails due to Public network connection type

If the network connection type is set to Publicenabling PowerShell remoting might fail because by default, PowerShell expects domain or private connection types.

If you try to enable PowerShell remoting on a PowerShell console with Enable-PSRemoting ‑Force, you will sometimes receive the error message below:

WinRM firewall exception will not work ^

Set-WSManQuickConfig : … WinRM firewall exception will not work since one of the network connection types on this machine is set to Public. Change the network connection type to either Domain or Private and try again. …
The reason is that the computer will allow connections with other devices in the same network if the network connection type is Public. Microsoft considers it as a security risk if you enable PowerShell remoting in a Public network.

You can verify your current connection type settings in the Control Panel: Control Panel\Network and Internet\Network and Sharing Center

Viewing networking connection type in the Control Panel

You can also check your profile settings with the PowerShell cmdlet Get-NetConnectionProfile. The NetworkCategory property corresponds to the network connection type.

Displaying the network connection type with PowerShell

This problem can even occur if your computer is an Active Directory member. If you’ve previously signed on to the member machine, Windows will cache your credentials, and you can log on without an available domain controller. In that case, Windows will automatically set your connection type to Public.

If a domain controller has authenticated you, it will set the network category to DomainAuthenticated:

NetworkCategory is set to DomainAuthenicated

Skipping the network profile check ^

In this case, PowerShell won’t throw an error if you enable remoting. However, if a domain controller hasn’t authenticated your computer, you have two options.

With the SkipNetworkProfileCheck parameter, you can just ignore the warning:

1Enable-PSRemoting -SkipNetworkProfileCheck -Force

The Force parameter avoids the confirmation prompt.

Using the SkipNetworkProfileCheck parameter

Changing the network connection type with PowerShell ^

However, this option poses a security risk because Windows enables network discovery features for your computer. Thus, it is better to change the connection type manually to Private:

1Set-NetConnectionProfile -NetworkCategory Private

Changing the network connection type to private

Notice that you can’t set the NetworkCategory property to DomainAuthenticated. If you try, PowerShell will return an error:

Set-NetConnectionProfile : Unable to set NetworkCategory to ‘DomainAuthenticated’. This NetworkCategory type will be set automatically when authenticated to a domain network.

Notice that if your computer is not a domain member, you have to consider a few other things if you enable PowerShell remoting.

Internet Slow – What to do ?

Got call from customer saying that their Internet is slow and sometime drop out. And wanted to have a check. Well for case like this, I would suggest best to go and approach the ISP (You service provide) as more then 60% is due to the Service provide doing some work on the Exchange end or mis-configuration. And they are able to resolve it in very short time. But by getting us down, we still assist you to liaise with your service provide to resolve the issue. Which in the end you actually pay something extra. Although i charge min for that sometime but still incurred some cost in your monthly expenses. As we can’t go down without a basic fees or do it FOC because of the time spend. So is best to check the ISP and make sure isp acknowledge that nothing is wrong in their end and something is wrong with the PC before giving us a call.

Hickural

Change Ubuntu Server from DHCP to a Static IP Address

Ubuntu Server after installation has set your server to use DHCP. you will need to change to a static IP address so that people can actually use it.

How to you change without using GUI.

  1. 1.Changing this setting without a GUI will require some text editing, but that’s classic linux, right?
  2. Let’s open up the /etc/network/interfaces file. And use vi, but you can choose a different editor

sudo vi /etc/network/interfaces

 

  1. For the primary interface, which is usually eth0, you will see these lines:

auto eth0
iface eth0 inet dhcp

 

  1. It’s using DHCP right now. To change that you need to add a number of options. Obviously you’d customize this to your network.

auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

Now we’ll need to add in the DNS settings by editing the resolv.conf file:

sudo vi /etc/resolv.conf

On the line ‘name server xxx.xxx.xxx.xxx’ replace the x with the IP of your name server. (You can do ifconfig /all to find out what they are)

You need to also remove the dhcp client for this to stick (thanks to Peter for noticing). You might need to remove dhcp-client3 instead.

                      sudo apt-get remove dhcp-client

 

Now we’ll just need to restart the networking components:

sudo /etc/init.d/networking restart

Ping www.google.com. If you get a response, name resolution is working(unless of course if google is in your hosts file).

Article from HowToGeeks

Hukural

How to change the listening port for Remote Desktop

Always wanted to change my default port for remote desktop connection and happen to find a microsoft articles on this.

  1. Start Registry Editor.
  2. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\
    Control\TerminalServer\WinStations\RDP-Tcp\PortNumber
  3. On the Edit menu, click Modify, and then click Decimal.
  4. Type the new port number, and then click OK.
  5. Quit Registry Editor.
  6. Restart the computer.

The orginal article is here

Regards

Hickural

IE and firefox toolbar

Visited one customer, saying that his IE and FireFox are very slow when open, fire up the IE, I was suprise to see so many toolbar install in IE as addons, that is one of the reason why the system goes so slow. Suggest to him to keep just the toolbar he need. Basically Only Google toolbar he wanted. Thus i help him to uninstall the mediabar, inbox bar, utility chest bar, Bearshare toolbar, imesh mediabar, referenceboss toolbar, windows live toolbar and left the Trendmicro Toolbar intact.

Same goes for the firefox when he had a lot of toolbar, he actually think that these are necessary for the system to function properly.

Well there is a better way if you just wanted to reset the IE (Internet Explorer) to default, You can actually goes to Tools -> Internet Option -> Advanced -> Reset

It will reset your Internet explorer into default setting where by all your toolbar will be gone and is just like a fresh installation of the Internet Explorer. But to bear in mind that all your customize setting is also gone. So if you have a special startup page you might wanted to copy it and paste back after you have reset the Internet Explorer.

Regards

Hickural