07 October 2017
Upgrade HPE Storage 3PAR to v3.3.1 - Upgrade Service Processor to v5.0
SP5 Release Notes:
https://h20564.www2.hpe.com/hpsc/doc/public/display?docId=emr_na-a00002915fr_fr
3PAR 3.3.1 Relase Notes:
https://h20564.www2.hpe.com/hpsc/doc/public/display?docId=emr_na-a00017203en_us
Service Processor 5.0 is completely new and there is only one way to upgrade. Lets find out how.
07 July 2017
Changing SQL Server Collation After Installation and in Production
In some scenarios we can find different SQL Server collations between the server instance and its databases. Sometimes the collation is fixed in some table columns or inside stored procedures to solve some of relationship problems with columns that have different collations. The most common technique to have a consistent collation for the instance and all it databases has a lot of steps and can sometimes be problematic.
A classic example is that when you want to reuse a SQL Server for System Center components and the Collation is not SQL_Latin1_General_CP1_CI_AS (required for the installation)
To correct the collations in a few steps is outlined in this Post. It is recommended to create a backup of all databases (including system databases) before take administrative actions on a SQL Server instance. It is important to ensure that there is no fixed collation logic in columns or inside stored procedures, triggers, etc., otherwise the command below may report problems.
In this post I will change "Latin1_General_CI_AS" collation to "SQL_Latin1_General_CP1_CI_AI"
In this post I will change "Latin1_General_CI_AS" collation to "SQL_Latin1_General_CP1_CI_AI"
24 June 2017
Automation Azure - Script to Change Virtual Machines Size ARM & ASM
In this post I'll show you how to resize automatically azure virtual machines.
Microsoft Azure offers some cheap low spec virtual machines. But as we all know, the prices can go up pretty quickly as the specs go up. But we need large VMs to support today’s modern day workloads. The downside is that most of these workloads are only present during business hours but you end up running and paying for these large VMs even during non-business hours and on weekends.
The solution here is to have an azure automation script that resizes the VMs to the lowest possible size during non-business hours and have another automation script to resize the VMs to their original size just before start of business.
Because Azure has two portals (for now..), I'll show you the scripts from both (since threre are many differences).
- Old Portal - Azure ASM (Azure Service Manager)
- New Portal - Azure ARM (Azure Resource Manager)
Let's see how to do it!
Etiquetas:
Automation,
Azure,
Microsoft,
Powershell,
Virtual Machines
07 June 2017
Upgrade In-Place SCCM 2012 R2 - WIndows Server 2008 R2 to 2012 R2
Today, in the post I will show you how to migrate SCCM operating system from Windows Server 2008 R2 to Windows Server 2012 R2 in-place. I had some problems and that is what I will try to describe in more detail. You can do a in-place upgrade from:
- Windows Server 2012 R2 to Windows Server 2016
- Windows Server 2012 to Windows Server 2012 R2
- Windows Server 2008 R2 to Windows Server 2012 R2 (SCCM 1602 or higher)
You cannot go from Server 2008 R2 to Server 2016, Windows Server 2008 to Windows Server 2012 or Windows Server 2008 R2 to Windows Server 2012!
The key reason for this change is that most installations of SCCM 2012 R2 are based on Windows Server 2008 R2. And if the SCCM evolves, the operating system also has to evolve. Another possible approach would be to install a Windows Server 2012 R2 from scratch and do a restore of the SCCM and database (keeping the same name and IP). I think the first approach is simpler and I will describe it.
Etiquetas:
Powershell,
Regedit,
Reporting Services,
SCCM 2012,
SQL Server,
Updates,
Windows,
WSUS
28 May 2017
Terminal Server. Windows cannot connect to the printer. Error 0x00000002
A few days ago I had a customer with a problem that was as follows:
- In a RDS Farm (Terminal Server) some users cannot print to any printer
- It was only happening in one server of the Farm
- some users logged in on the same server had no problem at all and could print to their preferred printer. The error was 0x00000002
- Some users reported that they didn’t get their printer(s) mapped by Script when they logged in to that specific RDS server
- The Terminal Servers were in Windows Server 2008 x86
Etiquetas:
Microsoft,
Printers,
RDS,
Remote Desktop,
Terminal Servers,
Windows
24 May 2017
Migrate Azure Portal ASM to Resource Manager ARM - Powershell & MigAZ
Today I will show you how to migrate your Azure Service Management (ASM) virtual machines to the ARM (Azure Resource Manager) environment. In this new structure the IAAS service has become more complete and malleable in creation, you can create a virtual machine with two network cards and move that same network card to another machine without having to create everything again. This freedom of movement of resources between virtual machines has made the Azure administration service much easier.
So, let's Start!
Etiquetas:
Azure,
Microsoft,
MigAZ,
Powershell,
Windows
24 January 2017
Exchange 2010 Inter-Organizations Migration – Remote Move
The migration scenario:
- Two different forests;
- Exchange 2007 in one forest and Exchange 2010 in the other;
- Exchange 2007 with SP2 installed.
Requirements:
- Create a DNS Conditional Forwarding on the source domain for the destination domain;
- Create a DNS Conditional Forwarding on the destination domain for the source domain;
- Before starting the migration itself, you need to trust between the two domains and deactivate SID Filtering:
- Netdom trust destination.local /domain:source.local / quarantine: No / usero: destination\user / passwordo: *******
- Netdom trust source.local /domain:destination.local / quarantine: No / usero: source\user / passwordo: ********
This way, when migrating with ADMT, users' SIDs remain the same (Filtering Disabled), thus ensuring the same permissions on files and groups in the target domain.
With ADMT installed on a server machine in the target domain, migrate the users/groups from the source to the destination (need to install the password exporter on a Domain Controller at the source, so we can guarantee the passwords are the same in both domains)
O In this document I will not go ahead with the ADMT settings.
Etiquetas:
Active Directory,
Exchange 2007,
Exchange 2010,
Microsoft,
Windows
11 October 2016
Redirecting Webmail (OWA) URLs in IIS for All Exchange Versions
In this post I will show you how to redirect all OWA requests to the correct HTTPS address. It works not only with OWA, but with EWS and/or ECP.
I’ve been doing this for as long as I can remember in Exchange 2007/2010/2013 so that requests go automatically to https://owa.customer.com/owa (or /exchange). So, if someone goes to http://owa.customer.com or https://owa.customer.com, they get redirected to the correct (secure) URL.
Etiquetas:
Exchange 2007,
Exchange 2010,
Exchange 2013,
Microsoft,
Windows
07 September 2016
Windows 10 Anniversary Update vs Bitlocker. Error 0xc00000bd
Yesterday I decided to make some Updates and one of them was the Windows 10 Anniversary Update. I heard that there are many problems, but I decided to risk. Basically the news of this Update are these: https://www.microsoft.com/en-us/windows/features
The installation went smoothly and the Windows version went from 1511 to 1607. Only one reboot ahead... oh.. did I said that my computar had bitlocker configured? So, after restart it I put my bitlocker PIN and then, for the first time, I had to enter the Bitlocker Recovery key (yes, that key that we must save in the USB stick or print. If you have Bitlocker, please keep in mind that this key is very important and should always be present. I have mine in a Cloud service. I think it is a good option).
Then, after I entered the numerical key, a BSOD appeared (Blue Screen of Death) with 0xc00000bd.
Something like this:
Recovery
Your PC/Device needs to be repaired
A required device isn't connected or can't be accessed.
Error code: 0xc00000bd
You'll need to use recovery tools. If you don't have any installation media (like a disc or USB
device), contact your PC administrator or PC/Device manufacturer.
Press Enter to try again Press F8 for Startup Settings
In short, I lost access to my disk drive and Windows could not start up. I could not put a DVD to repair, because the system could not recognize the Drive. Let's see how to solve this situation without loosing data.
29 August 2016
Working with NLB - RDP Not Working with Black Screen. Some Considerations
Windows Network Load Balancing (NLB) is a feature that distributes network traffic among multiple servers or virtual machines within a cluster to avoid overloading any hosts and improve performance. The Network Load Balancing feature uses the TCP/IP networking protocol to route traffic to different hosts based on a user's settings and a proprietary Microsoft distribution algorithm. The feature is available in Microsoft Windows Server 2008, 2008 R2, 2012 and 2012 R2 operating systems.
Network Load Balancing can also ensure network traffic is re-routed to remaining hosts if one or more hosts within the cluster fail unexpectedly. A Network Load Balancing cluster can scale up to 32 servers/nodes.
We can use NLB when configuring Terminal Servers High Availability. Let's take for instance the picture below:
All the Internal Users and possible External Users can use the VIP Address of the NLB to reach one of the Terminal Servers. If one Server is Down, the NLB automatically redirects all the requests to the remaining one. The same happens with WebServers.
Let's see some of the most common problems and considerations:
Etiquetas:
Microsoft,
Networking,
NLB,
Remote Desktop,
Routing,
Windows
24 August 2016
Root Access Technicolor Router
I noticed that my public IP was pingable from the outside, but I never had the chance to disable this option. Yesterday, I spent some time and I found that this option is only visible by command line and we need to have ROOT on the device (WTH). By default, the ISP only provides us the Administrator user to do some "basic" tasks. So, I had to have root access :)
The router in question is a Technicolor TG784n.v3 but it might work with other versions.
Let's see how to do it!
23 August 2016
Windows Time Server Configuration
Usually when I install a new Windows domain or want to change the time server, I have to perform some steps. The settings are as follows:
Etiquetas:
Active Directory,
NTP,
Powershell,
Regedit,
Windows
19 July 2016
Prevent Cryptolocker Ransomware
UPDATED!
Increasingly this subject have an extreme importance, especially in business and where the data is more sensitive.
For those who are unaware, this type of ransomware (after the user access any site and/or click on an executable file that is usually sent by email) encrypts all data that the user has access, including mapped drives. After this encryption the user is prompted to pay a certain amount (usually 500 euros/dollars) to have access to the decryption key. There is no solution! Only prevention.
In this Post I will show you nine ways of prevention!
Etiquetas:
Active Directory,
Group Policy,
Petya,
Ransomware,
WannaCry,
Windows
12 July 2016
Migrate Exchange 2007-2010 Public Folders to Exchange 2013
In this Post I wil show you how to migrate Public folders from an earlier Exchange to Exchange 2013 (The process is the same in Exchange 2007 and 2010). It will not work with Exchange 2003.
First of all, the requirements:
- The user that will do the migration must belong to Organization Management and Recipient Management groups (Active Directory);
- All the mailboxes must already be in Exchange 2013 (All Mailboxes migrated). I will not cover in this Post how to migrate Mailboxes;
- The Public Folders migration must be planned (because there is a downtime);
- Before the migration, do a Full Backup of the legacy Exchange Server and Public Folders.
The Migration process:
- Download the migration Scripts;
- Prepare the Migration;
- Generate the CSV files;
- Create the Public Folders Mailboxes in Exchange 2013;
- Start the Migration;
- Lock the Public Folders to Finalize the migration (requires downtime);
- Finalize the Migration;
- Unlock and Test the Public Folders.
Side Notes:
- Can not exist Public Folders in Exchange 2013 before the migration;
- All DNS Records must "point" to Exchange 2013 (like webmail, autodiscover, etc.);
- For some reason, if there are any Mailbox in Exchange Legacy, the public folder will be pointing to the Exchange Legacy;
- If there are Public Folders already created in Exchange 2013, all Migrated Mailboxes will automatically be pointing to the Exchange 2013 Public Folder instead of Exchange Legacy.
Ok, now that we have all the requirements, let's start!
Etiquetas:
Active Directory,
Exchange 2007,
Exchange 2010,
Exchange 2013,
Microsoft,
Powershell
28 June 2016
VMware Package Tools
Sometimes when we install a virtual machine with applications and drivers that are not standard, we have difficulty installing VMware Tools. So, in this post I will provide you a link where you can find all the drivers from all VMware versions. With this you can install a single driver or you can troubleshoot a spcific issue.
The page looks like this:
14 June 2016
How to Recreate Active Directory Default Domain Policy GPO
A few months ago, I had a problem in a costumer where the Default GPOs ("Default Domain Policy"or/and the "Default Domain Controller Policy") were corrupted. I think the error was 0xc00ce509 and this will usually show up in the Group Policy management console.
If you have this errors, then your GPOs are not being applied at all.
The solution is simple!
Etiquetas:
Active Directory,
Microsoft,
Windows
07 June 2016
Publishing Exchange 2010 Services in ISA 2006 or TMG 2010 with Certificates
In this Post I will show you how to Publish all of the Exchange Services in Firewall Rules (with certificates) so you can access it through Webmail, ActiveSync and/or Outlook Anywhere.
This will work with Microsoft Exchange 2007/2010 and Microsoft ISA 2006 and TMG 2010. Other versions of Exchange will work, but you will need to change some of the paths in the Firewall.
The Steps are:
- Create and Import the Certificates;
- Configure the Exchange Server;
- Create the Web Listener in the Firewall;
- Configure of the Publishing Rules
- WebMail (OWA)
- Outlook Anywhere
- ActiveSync
- Troubleshooting
So, let's begin!
Etiquetas:
Certificate Authority,
Certificates,
Exchange 2007,
Exchange 2010,
Firewall,
ISA,
Microsoft,
TMG,
Windows
25 May 2016
Remotely Enable Remote Desktop in Windows
- Open ports in the Windows firewall
- Start the Remote Registry service
- Change a registry setting to enable Remote Desktop
- Start the Remote Desktop service
04 May 2016
How to Get Rid of the Notification Upgrade to Windows 10
- Uninstall KB3035583 which is responsible for these notifications:
- Control panel, windows update, installed updates, sort by name, "Update for Microsoft Windows KB3035583" (not a Security Update) and uninstall;
- Reboot.
An alternative method is to open a command promp and enter the following:
- wusa /uninstall /KB:3035583
When you're offered the same Update again via Windows Update remember to hide it. If you are using some kind of central patching like WSUS, remember to not Approve this Update.
03 May 2016
SCCM 2012 Error 0x8007000F & 0x80070490
I have installed several SCCM (2007, 2012) and in all of them I have to troubleshoot something :) Yeah! In this case it was an error 0x8007000F \ 0x80070490 when I deployed an image to some Computers that already had an image deployed previously.
Subscribe to:
Posts (Atom)





















