Thursday, November 10, 2016

Fixing NIC teaming which was created by onboard NICs after replace a motherboard

Symptom
After replacing a motherboard with same model,  when you check the current NIC teaming configuration on Server Manager. The NIC teaming is "Fault" status.



When you click properties, you got the "stopping working" windows.


Cause
The virtual NICs of blade server were changed. The NIC teaming doesn't know you changed the hardware.

Before

After




Resolution
1. Launch PowerShell to remove the current NIC teaming.


2. Update the VMSwitch to point to this new NIC teaming by performing Set-VMSwitch.

This posting is provided “AS IS” with no warranties, and confers no rights!

Change the PowerShell prompt

The PowerShell prompt can be modified by function prompt.


For example, perform Function prompt {'PS terrytlslau.tls1.cc'} to change the PowerShell as the following.


To restore to original, we can perform Function prompt {'PS ' + $pwd + '>'}



This posting is provided “AS IS” with no warranties, and confers no rights!

SYSTEM account and Invoke-Command in a schedule task

Can we perform Invoke-Command in a PowerShell script performed by SYSTEM account of the "Task Scheduler"?

Yes, please add your computer accounts as local administrator group of the destination computer.

Source computer: OPSDC02
Target computer: OPSWS01

1. Add the OPSDC02 computer account into the local administrator group of OPSWS01 as the following.


2. Now, the SYSTEM account can run the PowerShell script that with Invoke-Command -ComputerName on the destination computer, OPSWS01. 



This posting is provided “AS IS” with no warranties, and confers no rights!

Monday, October 31, 2016

Check and update tcp dynamic port range

To check the TCP dynamic port range of Windows, we can perform netsh int ipv4 show dynamicportrange tcp to show how many ports for dynamic ports.


Why do we need to care about the TCP dynamic port range?
If the dynamic network ports are exhausted, it will not be able to establish any outbound network connection.

How do we check the dynamic port exhaustion?
We can perform netstat -ano -p tcp to check the port exhaustion by which process.


To check the port range, we can perform netsh int ipv4 set dynamicport tcp start=10000 num=55535 to update the dynamic port range. The Windows take the updated dynamic port range immediately and It is required to reboot.


To change to default, we can perform netsh int ipv4 set dynamicport tcp start=49152 num=16384 to update it.


Ref:


This posting is provided “AS IS” with no warranties, and confers no rights!

Wednesday, April 27, 2016

Get the Windows Server 2016 and System Center 2016 from TechNet Evaluation Center

Today, Microsoft released technical preview 5 of Windows Server and System Center 2016. Now, you can download these products from TechNet Evaluation Center.

For more information about Windows Server 2016 Technical Preview 5. Please read What's new in Windows Server 2016 Technical Preview 5.

This posting is provided “AS IS” with no warranties, and confers no rights!

Tuesday, April 12, 2016

Hybrid IT Management course from Microsoft Virtual Academy (MVA)

There is a series on Microsoft Virtual Academy (MVA) to talk about Hybrid IT Management. There are 2 parts with 20 sessions in it. These are the following will be covered in Part 1 and Part 2.

Part 1
1. Introducing Hybrid IT Management
2. Getting Started
3. Deployment Options
4. Solutions
5. Logs and Near Real-Time Performance Data Collection
6. Search and Customizations
7. Security Analytics
8. Recommended Resources and Next Steps

Part 2
1. Introducing Hybrid IT Management
2. Introducing Azure Backup
3. IaaS Backup
4. Hybrid Cloud Backup with Microsoft Azure Backup Server
5. Integrating System Center Data Protection Manager and Azure Backup
6. System Center Data Protection Manager Overview
7. Introduction to Azure Site Recovery
8. VMware and Physical to Azure
9. Hyper-V to Azure
10. Site-to-Site DR with Azure Site Recovery and Hyper-V Replica
11. Site-to-Site DR with Azure Site Recovery and SAN Replication
12. Site-to-Site DR for VMware with Azure Site Recovery
13. Workload Support and Capacity Planning
14. Summary and Resources

Please go to the following web sites to watch these series.


This posting is provided “AS IS” with no warranties, and confers no rights!

Sunday, April 3, 2016

Linux Bash will be available on coming Windows 10 Insider build

In Build 2016, Microsoft announced that the user mode of Ubuntu bash will be available on the coming Windows 10 Insider preview for public to test and experience. One of recorded video of Build 2016 to talk and do some demo about Linux bash shell on Windows 10. Please watch Running Bash on Ubuntu on Windows! for more information.


This posting is provided “AS IS” with no warranties, and confers no rights!

Saturday, March 26, 2016

Reschedule - Deploying Windows 10: Automating Deploying by Using System Center Configuration Manager from Microsoft Virtual Academy

This live event is rescheduled on Microsoft Virtual Academy on 13-Apr-2016 to talk about deploying Windows 10 by System Center Configuration Manager (SCCM). This event is hosted by Aaron Czechowski, Senior Program Manager, Microsoft Enterprise Client Management, and Wally Mead, Principal Program Manager, Cireson. Don't miss it If you plan to deploy Windows 10 to your environment by SCCM.


E-book related to this event.

This posting is provided “AS IS” with no warranties, and confers no rights!

Tuesday, March 22, 2016

Using Get-Unique to filter duplicated result

We can use Get-Unique to filter duplicate data from a result from a list in PowerShell. This cmdlet is available on PowerShell 2.0 or later.

How can we use it?
For example, there is a file with duplicate data.


We can perform "Get-Content <a file name> | Get-Unique


The duplicate date was filtered on the PowerShell result.

One more example, I'd like to filter out AD User from AD groups.

"Get-ADGroupMember <AD Group name> | where objectclass -eq group | Select Name"


Get AD user from these groups by performing "Get-ADGroupMember <The root AD Group name> | where objectclass -eq group | Get-ADGroupMember | where objectclass -eq User | Select name,SID


There are 2 AD users are the member of Group1 and Group2. To unique the result, perform "Get-ADGroupMember <The root AD Group name> | where objectclass -eq group | Get-ADGroupMember | where objectclass -eq User | Sort name | Get-Unique | Select Name,SID"


The duplicate AD users were removed from the result.

This posting is provided “AS IS” with no warranties, and confers no rights!

Thursday, March 17, 2016

Microsoft IPv6 from Microsoft Virtual Academy

Microsoft Virtual Academy (MVA) will be held a live event on 29-Mar, 2016 to talk about IPv6. This live event will be held by Ed Horley, Groupware Technology Practice Manager for Cloud Solutions and the Practice Lead for IPv6, and Joe Davies, Microsoft Senior Content Developer. Registry this live event and find out how to apply IPv6 to Microsoft environment.


This posting is provided “AS IS” with no warranties, and confers no rights!