I’ve had a few instances lately where corrupt profiles have prevented me from logging into with a Windows 7 or Server 2008 R2 machine. At the time of logon, the logon process takes a while and then I get the following error:
Your user profile was not loaded correctly. You have been logged on with a temporary profile. Changes you make to this profile will be lost when you log off. Please see event log for details or contact your administrator.
Also in the Event Viewer (Application) you have an entry for Event ID 1511. Normally this isn’t a big deal because you can log onto the machine with a different admin account and delete the problem profile. Only in this case when you go to remove the profile it doesn’t exist. I came across the following Microsoft article – KB947242 that deals with this issue. If you open regedit and Navigate to:
HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfielList
You will find a list of profiles that are identified by their SID. Locate the SID of the account in question (It will probably be called SID.bak) and delete the entry. Log off of the system and log back in using the problem account.
Saturday, January 26, 2013
Wednesday, January 23, 2013
System Center 2012 SP1 Drops
It’s been just over a week since the official announcement that service pack 1 for System Center Configuration Manager 2012 was released. This is a really important release for the System Center teams as SP1 really drives home the idea of unified device management. Service Pack 1 adds support for Windows Server 2012 and Windows 8, Windows 8 tablet plus added support for Mac OS X, Linux and Unix platforms. This is exciting for our environment because there has always been a gap with managing the subset of machines running Mac OS X or Linux. Can you manage one of these platforms to the level that you can manage the Windows platform? No. However this is a step in the right direction. Admins want a single pane of glass view for managing their environment – SP1 moves System Center in the direction. Some other features of this release are support for Windows Embedded devices, full PowerShell support, Windows Azure based Distribution Points and the ability to subscribe to email alerts.
When you dig a little deeper into the CM 2012 release you’ll find added support for user profile and data management with their new User Environment Virtualization product (MDOP 2012) and real time administrative tasks for endpoint protection, network cost support for application delivery, updates to Bitlocker including TPM and PIN, and the ability to deploy Windows 8 applications.
When you dig a little deeper into the CM 2012 release you’ll find added support for user profile and data management with their new User Environment Virtualization product (MDOP 2012) and real time administrative tasks for endpoint protection, network cost support for application delivery, updates to Bitlocker including TPM and PIN, and the ability to deploy Windows 8 applications.
Labels:
ConfigMgr / SCCM
Sunday, January 20, 2013
Troubleshooting a XenDesktop Issue... What do the Logs Say?
Over the years when working with System Center Configuration Manager you get used to combing logs to resolve issues. ConfigMgr has a log for everything so it was my surprise when I starting working with XenDesktop how limited logging is out of the box. After working through my first major outage, I quickly found out that logging is no good if it is not enabled. It’s not that XenDesktop doesn’t have logging it just doesn’t have enabled by default. I would highly recommend enabling the following logging in XenDesktop – on the VDA, on the DDC and PorrtICA.
Enabling Virtual Desktop Agent (VDA) logging (CTX117452):
Enabling Desktop Delivery Controller (DDC) logging (CTX117452) with XenDesktop 5.6:
Enabling PortICA logging (CTX118837):
There is also a logging tool that Citrix has published as outlined in CTX127492 that can enable more logging however I have solved most of my issues using VDA, DDC and PortICA logging. Regardless of how you setup logging a great utility to help you read them is Trace32.exe from the ConfigMgr toolkit. Download and install the tools and then open your log files with Trace – your eyes will thank you.
Enabling Virtual Desktop Agent (VDA) logging (CTX117452):
- Change your vDisk to Private mode and boot your template machine
- Log in with an admin account
- Navigate to %ProgramFiles%\Citrix\Virtual Desktop Agent
- Backup WorkstationAgent.exe.config
- Open the configuration file with a program such as Notepad
- Locate the following section <appSettings> section (Near the top of the config file) and update as follows:
- <add key=”LogToCDF” value =”1”/>
- <add key="LogFileName" value ="D:\XDLogs\vda_log.log"/>
- <add key="OverwriteLogFile" value ="1"/>
- Save and close the file
- Restart the Citrix Desktop service or reboot your template machine and confirm that the log file gets created
Enabling Desktop Delivery Controller (DDC) logging (CTX117452) with XenDesktop 5.6:
- Log into your DDC with an admin account
- Navigate to %ProgramFiles%\Citrix\Broker\Service
- Backup BrokerService.exe.config
- Open the configuration file with a program such as Notepad
- Locate the following section <appSettings> section (Near the top of the config file) and update as follows:
- <add key="LogToCDF" value ="1"/>
- <add key="LogFileName" value ="D:\XDLogs\controller_log.log"/>
- <add key="OverwriteLogFile" value ="1"/>
- Save and close the file
- With XenDesktop 5.6 I did not have to enable logging for CdsPoolMgr.exe.config as outlined in CTX117452
- Restart the Citrix Broker Service (This will cause any virtual desktops connected to the server to re-register with another controller)
Enabling PortICA logging (CTX118837):
- Change your vDisk to Private mode and boot your template machine
- Log in with an admin account
- Navigate to %ProgramFiles%\Citrix\ICAService\XML (If the XML folder does not exist, create one)
- Create an new XML file called PorticaConfig.XML
- Paste the following into the file: <?xml version="1.0" encoding="utf-8"?>
- Save and close the file
- Restart the Citrix ICA service or reboot your template machine
<Config xmlns="Portica.xsd">
<Portica>
<LogFile>
<LogLevel>5</LogLevel>
</LogFile>
<CdfTrace>
<LogLevel>5</LogLevel>
</CdfTrace>
<FunctionTrace>
<LogLevel>5</LogLevel>
</FunctionTrace>
</Portica>
</Config>
There is also a logging tool that Citrix has published as outlined in CTX127492 that can enable more logging however I have solved most of my issues using VDA, DDC and PortICA logging. Regardless of how you setup logging a great utility to help you read them is Trace32.exe from the ConfigMgr toolkit. Download and install the tools and then open your log files with Trace – your eyes will thank you.
Labels:
XenDesktop
Monday, September 17, 2012
Where can I find that GPO setting?
Is there a policy for that? Would that be a computer based policy or a user based policy? If I can’t set that with a traditional group policy can I do it with a preference? When dealing with Group Policy Objects (GPOs) I find myself asking these types of questions all the time? Wouldn’t it be nice if there was a searchable site of policy settings? Sure you can Google settings and there are great sites such as www.gpanswers.com but I’m talking about a site that allows you to search for group policy settings, identifies where you can set them, explain what they do and most importantly what registry settings they touch. There is. MSDN publishes a site that does this. Group Policy Search is a fantastic resource when dealing with group policies. When you search for setting the tool will provide you with the following information:
- Policy Name
- Category Path (Where you can find it in the console)
- Supported Platforms (What the minimal operating system level required)
- Registry Key
- Value
- Explanation of what the policy does
Labels:
GPO
Tuesday, September 11, 2012
WMI and the ConfigMgr Client
If you still manage Windows XP machines with ConfigMgr I’m sure that you know that 9 out of 10 client health issues are WMI related. Whether it’s the CCM namespace getting corrupt or the entire WMI repository getting corrupt... Windows XP WMI + ConfigMgr = unstable.
Most of the time you can get away with simply deleting the ccm namespace and then reinstalling the ConfigMgr client to correct the problem. (More on that later) However there are times when the fix requires you to rebuild the entire WMI repository – which should be used as a last resort as there could be other applications on the machine that rely on WMI.
After searching around for WMI resources I came across this post which does a great job of detailing different ways to resolve your WMI issues based on your Operating System version. I've used many of these approaches in order to resolve client health issues but I’ve had the most success with the following command:

I find myself using this tool everyday for a variety of reasons.
Most of the time you can get away with simply deleting the ccm namespace and then reinstalling the ConfigMgr client to correct the problem. (More on that later) However there are times when the fix requires you to rebuild the entire WMI repository – which should be used as a last resort as there could be other applications on the machine that rely on WMI.
After searching around for WMI resources I came across this post which does a great job of detailing different ways to resolve your WMI issues based on your Operating System version. I've used many of these approaches in order to resolve client health issues but I’ve had the most success with the following command:
- From a command prompt run rundll32 wbemupgrd, RepairWMISetup
- Open a command prompt and run the following
- net stop winmgmt
- Browse to %windir%\System32\Wbem
- Rename the Repository folder
- Go back to your command prompt and run the following to rebuild your repository
- net start winmgmt
I find myself using this tool everyday for a variety of reasons.
Labels:
ConfigMgr / SCCM,
WMI
Subscribe to:
Posts (Atom)