Thursday, 9 October 2014

"This theme can't be applied to the desktop"

I'm currently configuring a new Windows Server 2012 R2 RDS environment for my customer to migrate to from their existing Windows Server 2008 R2 TS farm and this error message had been bothering me for quite some time: "This theme can't be applied to the desktop"

The error message appeared every time a user tried to start a RemoteApp program from the new RDS environment. The investigation concluded that a new user which had never logged in to the old TS environment did not get the error message, only users with an existing profile. Users were logging in from Windows 7 workstations/laptops. After some testing with various GPO settings under User Configuration\Administrative Templates\Control Panel\Personalization I discovered that forcing all users to use the Aero Theme solved the problem.

Under User Configuration\Administrative Templates\Control Panel\Personalization configure the setting "Load a specific theme" with "%windir%\Resources\Themes\aero.theme"

Monday, 10 March 2014

CAU - Target name resolution error

If removal of the CAU for a Windows Server 2012 R2 Failover Cluster has failed or if anyone has tried manually clean up the CAU, the following error might appear in Server Manager.


 
 
A look in the logs shows...:
 
Log Name: System
Source: DistributedCom
Event ID: 10028
Level: Error
User:
OpCode: Info
More Information: Event Log Online Help
Logged:
Task Category: None
Keywords: Classic
Computer:
 
"DCOM was unable to communicate with the computer CAU-name.domain.local using any of the configured protocols; requested by PID b54 (C:\Windows\system32\ServerManager.exe)."
 
 

....and/or:
 
Log Name: System
Source: FailoverClustering
Event ID: 1228
Level: Error
User: System
OpCode: Info
More Information: Event Log Online Help
Logged:
Task Category: Network Name Resource
Keywords:
Computer:
 
"Cluster network name resource "CAU-name" encountered an error enabling the network name on this node. The reason for the failure was:
"Unable to obtain a logon token"
 
The error code was "1326".
 
You may take the network name resource offline and online again to retry."
 
 
If you do not see any trace of CAU but still see these error messages is probably the reason that CAU's Distributed Network Name is left lying around in the Failover Cluster. CAU's Distributed Network Name will be added up automatically during configuration of CAU but does not appear in the Failover Cluster Manager, but is hidden. Use PowerShell to list Cluster Resources and you will see the CAU's Distributed Network Name.
 
  1. Open an elevated Powershell window
  2. Specify Get-ClusterResource -Cluster "Cluster Name"
  3. Remove-ClusterResource "Name"
 


Monday, 3 March 2014

How to disable Cluster Aware Updating (CAU)

Have you ever wanted to disable Cluster Aware Updating perhaps just for a while or even permanently? The problem is that you might get recurring an Kerberos Security error in Server Manager on one of your cluster nodes.


The error message below will appear in the system log:


"The Kerberos client received a KRB_AP_ERR_MODIFIED error from the server "server name". The target name used was HTTP/server_name.domain.local. This indicates that the server failed to decrypt the ticket provided by the client. This can occur when the target server principal name (SPN) is registered on an account other than the account the target server is using. Ensure that the target SPN is only registered on the account used by the server. This error can also happen if the target service account password is different than what is configured on the Kerberos Key Distribution Center for that target service. Ensure that the service on the server and the KDC are both configured to use the same password. If the server name is not fully qualified, and the target domain "domain.local" is different from the client domain "domain.local" check if there are identically named server accounts in these two domains, or use the fully-qualified name to identify the server."

The solution is quite simple but perhaps not obvious even though it's stated in the error message. What you need to do is to add two SPN's to your CAU account.

  1. Open an elevated command prompt
  2. setspn -S http/CAU-account-name CAU-account-name
  3. setspn -S http/CAU-fqdn-account-name CAU-account-name

Monday, 24 February 2014

Unblock IPAM access to a DC

To roll out the Windows Server 2012 IPAM feature should be "a walk in the park" and it normally is but a while ago I was really struggling helping a customer out with this. I had made the configuration using GPO's and verified my settings several times but I kept getting the error "Unblock IPAM Access":



The solution was actually ridiculously simple. Editing the problem server in the IPAM Server Inventory panel to untick DNS - OK - then reticked DNS fixed it.

Thursday, 13 February 2014

AD DS operation failed - Dcpromo error - FSMO role broken

I was about to remove a domain controller of a customer so many times before when the error below appeared.

Active Directory Domain Services Installation Wizard
---------------------------
The operation failed because:

Active Directory Domain Services could not transfer the remaining data in directory partition DC=ForestDnsZones,DC=company,DC=com to
Active Directory Domain Controller \\DC.company.com.

"The directory service is missing mandatory configuration information, and is unable to determine the ownership of floating single-master operation roles."


Very strange considering that running "netdom query fsmo" gives the result that one of the other domain controllers owns all FSMO roles. The Event Viewer is in this case your best friend.

Log Name:      Directory Service
Source:        Microsoft-Windows-ActiveDirectory_DomainService
Date:          2014-02-01 14:44:13
Event ID:      2091
Task Category: Replication
Level:         Warning
Keywords:      Classic
User:          ANONYMOUS LOGON
Computer:      DC.COMPANY.COM
Description:
Ownership of the following FSMO role is set to a server which is deleted or does not exist. 
   

The DC mentioned in the Event Viewer warning was an old Windows Server DC removed more than 5 years ago!

Let's move on, make sure to open ADSIEdit on the affected FSMO Role owner and make the necessary changes there.


How to obtain the correct setting:
  1. On the affected role owner open ADSIEdit.
  2. Click on Default Naming Context [DC.Company.Com].
  3. Click on DC=Company,DC=Com.
  4. Double click on CN=Infrastructure at the bottom of the list of folders.
  5. Locate the fSMORoleOwner attribute and click on it.
  6. Click the Edit button.
  7. CTRL+C to copy the contents of the attribute.
  8. Click CANCEL twice.

  1. Correct the problematic settings:
    1. Right click the ADSI Edit root and click on Connect to…
    2. Use the following connection point:
      1. DC=DomainDNSZones,DC=Company,DC=Com
    3. Click on Default Naming Context [DC.Company.Com] to populate it.
    4. Click on DC=DomainDNSZones,DC=Company,DC=Com folder.
    5. Double click on CN=Infrastructure.
    6. Locate the fSMORoleOwner attribute and click on it.
    7. Click the Edit button.
    8. CTRL+V to paste the correct setting.
    9. Click OK and then Apply.
    10. Repeat steps 2.1-2.9 to correct DC=ForestDNSZones,DC=Comapny,DC=Com.

Once the above steps were completed on the FSMO Role owner for Infrastructure I was able to properly demote the DC.

Monday, 27 January 2014

Windows Server 2012 R2 - Virtual hard disk sharing limitations

There is quite a lot written about how good the new "virtual harddisk sharing" feature is in Windows Server 2012 R2, and I agree that it is very good feature but there is not as much written about the limitations. When you enable the function it says "Some virtual machine and virtual hard disk features will be disabled when this setting is enabled". Already known limititations and already published on other blogs are:
  • You cannot do host-level backups of the guest cluster.  This is the same as it always was.  You will have to install backup agents in the guest cluster nodes and back them up as if they were physical machines.
  • You cannot perform a hot-resize of the shared VHDX.  But you can hot-add more shared VHDX files to the clustered VMs.
  • You cannot Storage Live Migrate the shared VHDX file.  You can move the other VM files and perform normal Live Migration

There are also some limitations for virtual machines managed by VMM:
  • You cannot create a checkpoint on a virtual machine that has shared virtual hard disks.



  • You cannot change properties of a virtual machine with shared virtual hard disks.


However you can change properties of a virtual machine managed by VMM with powershell.

Monday, 20 January 2014

KMS server "STATUS_SUCCESS" error

The error message below has to be one of the most funnier in a long time ...



So did I succeed or not? It says "Success" but at the same time it's an error. Confusing is surely the least one can say ;)

So what was I doing then? Well, I was about to move / re-install a KMS server on Windows Server 2012 R2 and when I got to the last page and clicked "commit", I got the error message.

The cause of the error and also visible in the picture below is that the wizard does not enter the right "KMS TCP listening port" automatically. The port should be 1688 and if you enter this the wizard goes through.




Wednesday, 15 January 2014

Empty "Add Storage Devices Wizard" in SCVMM 2012 R2

The other day, I would configure an SMI-S connection from SCVMM 2012 R2 to the customer's HP P2000 G3 MSA SAN. I could run through the "Add Storage Devices Wizard" and added the SAN without any problem but it could not find neither vDisk's or any LUN's. I verified the following:

• SMI-S was enabled in the SAN
• The Run As account had SMI-S access to the SAN

The solution: To connect using Telnet to the SAN and run the command "reset SMIS-configuration" for both controllers. Next, the wizard could find vDisk's and LUN's in the SAN.

Monday, 28 October 2013

Event ID 12339 and 12344: File Server Resource Manager failed to find claim list

Problem: You are running a Windows Server 2012 file server and you see the error messages in your logs every 15 minutes or so.

1) Event ID: 12339
File Server Resource  Manager failed to find the claim list 'Global Resource Property List' in Active Directory (ADsPath: LDAP://dc1.domain.local/CN=Global Resource Property List,CN=Resource Property Lists,CN=Claims Configuration,CN=Services,CN=Configuration,DC=domain,DC=local).  Please check that the claims list configured for this machine in Group Policy exists in Active Directory.
 2) Event ID: 12344
File Server Resource  Manager finished syncing claims from Active Directory and encountered errors during the sync (0x80072030, There is no such object on the server.) Please check previous event logs for details.

Solution: You can either upgrade the Active Directory schema to version 56 (Windows Server 2012) or safely ignore the error messages.

If you can update the schema of your domain. Follow these steps:

1)
 log on to Windows Server 2012 as Administrator of your domain
2)
 Copy from "support \adprep" in the media of Windows Server 2012 to "c:\"
3)
run this command
 c:\adprep\adprep.exe /forestprep

Monday, 21 October 2013

Event ID 12306 FSRM SMTP cannot send email

File Server Resource Manager  Windows Server 2012 - SMTP cannot send email to Exchange Server 2007
 
Problem:
Event ID: 12306
Event Source: SRMSVC
 
Event Viewer Application logs:
A File Server Resource Manager Service email action could not be run.
 
Error-specific details:
Error: IFsrmEmailExternal::SendMail, 0x8004531c, Mailbox unavailable. The server response was: 5.7.1 Client does not have permissions to send as this sender.
 
Solution:
The problem is that your file server does not have the rights to authenticate against an Exchange Server using the computer account (domain\computername$ format) account of the server.  This computer account must be granted send as permissions on the mailbox that you are trying to send as, or it will fail with this error. What you need to do is to run the command below on the mailbox you would like to send as, on your Exchange server.


 Add-ADPermission -Identity "Mailbox Display Name" -user "Domain\ServerName$" -extendedrights "Send-as"

Monday, 14 October 2013

Remove character from folder name

Have you ever needed to remove a character from a bunch of folders? This Powershell script does the trick.


Get-ChildItem -name | ForEach-Object { Move-Item $_ $_.replace("character to remove", "") }

Monday, 7 October 2013

Unable to delete a DC - dcpromo error

Deleting a DC is most of the time a rather straightforward procedure but a few weeks ago i received the error message below trying to uninstall a customers DC.

"The operation failed because: the attempt at remote directory server serverx.customerdomain.local to remove directory server CN=ServerX,CN=Servers,CN=customerdomain,CN=Sites,CN=Configuration...
was unsuccessful. "Access is denied"

The account which i was running dcpromo with was both Domain Admin and Enterprise Admin, i could ping the other DC's, i checked with ADSI edit that my account had the rights to delete the DC. Everything seemed ok.

So what was the problem? I had a look in Sites and Services and found the solution to my problem. The DC had the checkbox "Protect object from accidental deletion" ticked. I unchecked the tickbox and could then run the dcpromo without any problems.

Friday, 4 October 2013

Windows Server 2008 R2 DHCP problem "The parameter is incorrect"

A few weeks ago I was decommissioning a domain controller which had the DHCP server role installed. When I tried to unauthorize the server I received the following error:

"The parameter is incorrect"














  • I verified that the server was authorized in Active Directory
  • I verified that I had sufficient rights to unauthorize the server

These are the steps that solved the problem:
  1. Stop DHCP service
  2. Delete the DHCP server object from the DHCP console
  3. Re-add the DHCP server to the DHCP console
  4. Start the DHCP service
  5. Try again to unauthorize the DHCP server

Tuesday, 28 August 2012

Are Vmware afraid of Hyper-V 3.0?

For some odd reason skips now Vmware their yelled at pricing model, just as Microsoft releases Windows Server 2012. Interesting... :) (article in Swedish)

http://www.idg.se/2.1085/1.462441/vmware-slopar-utskalld-prismodell

Monday, 21 May 2012

5 seconds of fame

A nice series of articles about System Center 2012 where i have a comment about news and enhanced integration in SCVMM 2012. (article in Swedish)

http://techworld.idg.se/2.2524/1.448493/system-center-skolan-lektion-2-en-narmare-titt

Tuesday, 21 February 2012

How to route between internal networks in Hyper-V

If you have a Hyper-V lab environment and want to make it a little more like a corporate network then you might want to set up multiple networks and routing between them. But how would you accomplish that? There are different ways to solve it as a Vyatta router (or any other small Linux firewall) or perhaps a Forefront TMG. The way that I chose and that's very simple, you can read about on the following page.

http://www.infotechguyz.com/server2008/hypervrouting.html

Monday, 20 February 2012

How to configure NTP server for Windows Server 2008 R2

To configure the NTP server in Windows is not exactly complicated, but because you get various different suggestions when googling I thought I would just write a short tutorial that I know works. Instruction is verified on Windows Server 2008 R2. What is needed is essentially three short lines:

w32tm /config /manualpeerlist:pool.ntp.org,0x8 /syncfromflags:MANUAL
net stop w32time
net start w32time

Don't forget to disable time sync if you have virtual server.

Which NTP Server should you choose? Or should you choose several? Yes, redundancy is never wrong, and considering how easy it is to set up several, it is preferred. SP Technical Research Institute provides a free time sync service.

So, tell me. Give me an example. Coming below ...
Run the following in a elevated command prompt:

w32tm /config /manualpeerlist:"ntp1.sp.se,0x8 ntp2.sp.se,0x8" /syncfromflags:MANUAL
net stop w32time
net start w32time


P.S. One tip is of course to check the system log afterwards to see that the time sync seems to work.

Thursday, 15 September 2011

How to export a list of users from an Active Directory group

Every now and then you will come across these little annoying problems while working with Active Directory, which should be easy to solve but requires special tools, for example, that there is no way to export all members of a group in Active Directory Users & Computers . That's when "dsquery" and "dsget" comes into the picture. Here is how to list all members of a particular group.

List all members of the group "MYGROUP":

dsquery group -name MYGROUP | DSGET group -members

You can always send the results to a text file by adding  "> mygroup-members.txt" in the end.

Tuesday, 22 March 2011

Shortcut key for new folder

Something that I have always missed in Windows Explorer, and today found out is that there is now a shortcut to create a new folder!

  •  CTRL + Shift + N: Creates a new folder in Windows Explorer
Requires at least Windows Server 2008 R2 or Windows 7.

Thursday, 17 March 2011

Hidden computers in WSUS

Client machines created from an image with a duplicate client ID appears only once in the WSUS admin console. Each client must have a unique ID generated for each individual installation. WSUS admin console will display only one client for each unique ID. If you have multiple clients created from an image that share the same ID, only one appears in the WSUS admin console. All clients will check in and receive updates, but only one will appear and display the status in the WSUS admin console. In cases where clients do not check in, and they were created from an image, the following steps will restore the existing duplicate client ID.


a. Run regedit and go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate
b. Delete the PingID, SUSClientID and the AccountDomainSID values
c. Stop and start the Wuauserv Service
d. From the command prompt run: wuauclt /resetauthorization /detectnow