How to enable telnet client using PowerShell

Telnet is a quite useful connecitivity verification tool, especially during the system set up or troubleshooting. For some reason, mostly security concern, this feature is disabled since Windows Server 2008. But when you want a quick check, it’s really a pain to open the Server Manager and click, click, click… Fortunately we have PowerShell. So here is the one-line command to turn it on:

Add-WindowsFeature telnet-client

And another command to turn it off, before you log-off:

Remove-WindowsFeature telnet-client

Very cool!

Advertisements

Windows 2012 R2 Preview Web Application Proxy – Exchange 2013 Publishing Tests

Need a close look, either continue to use MS technology, or switch to others after Forefront phase out.

Kloud Blog

==================
Updated: 10 September 2013

==================
Updated: 15 July 2013

  • I have heard from a member of the Web Application Proxy product group who said there is a bug in the Preview version that prevents Outlook Anywhere from working. They say it will be fixed in the RTM version
  • Lync 2013 and  Office Web Apps 2013 have been tested and work with some configuration changes. See http://blog.kloud.com.au/2013/07/15/publish-lync-2013-with-2012-r2-preview-web-application-proxy/ 
  • ActiveSync does not support SNI so a default binding needs to be set on the Web Application Proxy as per the post above to make it work
  • Clarification about ADFS being a hard requirement for the Web Application Proxy, even if only doing pass-through
  • Clarification about modifying published applications
  • Clarification about case sensitivity

==================

View original post 2,382 more words

RDS 2012: Profile Disks and Temp Profiles

Still need to find out how to clean up the uvhd files.

||-- Anand, the Architect --||

The huge pain with using Profile Disks in Windows Server 2012 RDS is to dealing with TEMP profiles. When the user’s profile corrupts and started creating TEMP user profiles, Admins has to deal with fixing the issue and it’s NOT easy. But if you want to know how to fix it, here it is.

1. Delete User’s profile disk (.VHDX). To find the user’s correct profile disk, you have to check the NTFS security tab in properties of the xxxxx.vhdx file.

image

2. Check all Remote Desktop Session Host servers C:Users folder to check which server has the corrupt user profile. (hint: check sessionhostc$users from your computer)

3. Once you find the server, Remote desktop to that server. You will see the following event log message on that server in System Logs.

Remote Desktop Services could not apply a user desktop for a user account with a SID of <GUID>. A…

View original post 85 more words

Microsoft Azure Architecture Blueprints & Free Visio Symbols

Build Azure

AzureBlueprintThumb2

Microsoft distributes some really nice looking Azure architecture diagrams / blueprints (like the one on the right) in various materials and even includes them in keynotes, presentations and other places. These really seem like they must be created with Photoshop by a graphic designer. However, this is not the case.

These architecture diagrams are created using Visio! If you have Visio, you too can get your hands on the various assets necessary to create your own awesome architecture diagrams like these!

View original post 152 more words

Use Netstat to check if a port is listening

I should have put this handy long time ago.  There is situation that we need to know if a special port on a server is listening, then we can see if need to open firewall, etc.  So the command netstat is our friend.

Simple way to use netstat is:

>netstat –ano | more

It will show all the listening ports in numerical form, and the process ID that is listening.

Another way is use find:

>netstat –an | find “:3389”
TCP    0.0.0.0:1367           0.0.0.0:0              LISTENING

I will add some Linux command later.

Web Role v.s. Worker Role

Azure Cloud Service Role is classic, old style, one of those you won’t see updated counterpart in new Azure Resource Manager (ARM).  In Azure, a Cloud Service Role is a collection of managed, load-balanced, Platform-as-a-Service (PaaS) virtual machines that work together to perform common tasks. Cloud Service Roles are managed by Azure fabric controller and provide the ultimate combination of scalability, control, and customization.

Web Role and Worker Role are under Cloud services (classic).

cs_diagram

Web Role is a Cloud Service role in Azure that is configured and customized to run web applications developed on programming languages / technologies that are supported by Internet Information Services (IIS), such as ASP.NET, PHP, Windows Communication Foundation and Fast CGI.

Worker Role is any role in Azure that runs applications and services level tasks, which generally do not require IIS. In Worker Roles, IIS is not installed by default. They are mainly used to perform supporting background processes along with Web Roles and do tasks such as automatically compressing uploaded images, run scripts when something changes in database, get new messages from queue and process and more.

Differences between Web and Worker Roles – The main difference between the two is that a Web Role support and runs Internet Information Services (IIS), while an instance of a Worker Role does not.

References:
https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-choose-me
http://cloudmonix.com/blog/what-is-web-and-worker-role-in-microsoft-azure/

BlackBerry Q20’s file system

Have the new BlackBerry Classic, a.k.a. Q20, for almost four months.  It has personal space and work space, quite isolated to each other.  The trouble I discovered earlier is that all screenshots go to work space so they are not easy to share in the social media apps, which can only install in the personal space.

Since last week, I saw a more serious problem.  When it connected to a Windows machine, the flash drive that used to connect to and could be seen in Windows no longer worked.  Windows could briefly show the used and free space of it, but no folder can be opened.  Neither my home desktop or work laptop was working, so I tried not to think this is some restriction put on from BES recently.  Even worse, this morning I found none of the MP3 music in BlackBerry was working – the player could not recognize the file format although it knew the suffix of the files.

One thing I tried and it worked is the very old trick – Reboot.

Mobile device also need to reboot once a while, even BlackBerry 10 or Apple iOS.  Lesson learned.

Error “The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license” !!

This workaround using the PowerShell, seems fancier than the dozens of click I just did.

One of our clients had recently configured Remote Desktop Services on a Windows Server 2012 R2 OS. Since it was a small infrastructure, all the remote desktop roles were installed on the single ser…

Source: Error “The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license” !!