[THIN] Re: WMI expert out there??? Profiles Not Unloading from Memory

Would using UPHCLEAN be inappropriate in this situation...? Seem like that's 
what it is designed to do (close open Registry keyes when a profile is 
unloading...)

http://www.microsoft.com/downloads/details.aspx?FamilyID=1b286e6d-8912-4e18-b570-42470e2f3582&displaylang=en

On 5/10/05, Joe Shonk <joe.shonk@xxxxxxxxx> wrote:
> 
> What if you used:
> 
> Set WshShell = CreateObject("WScript.Shell")
> strLogonServer = WshShell.ExpandEnvironmentStrings("%LOGONSERVER%")
> 
> -----Original Message-----
> From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On 
> Behalf
> Of Stratton, Doug MSER:EX
> Sent: Tuesday, May 10, 2005 10:01 AM
> To: 'thin@xxxxxxxxxxxxx'
> Subject: [THIN] WMI expert out there??? Profiles Not Unloading from Memory
> 
> Old story, new twist.
> 
> We are getting profiles not unloading and getting
> 
> Event Type: Information
> Event Source: Userenv
> Event Category: None
> Event ID: 1516
> Date: 2005-05-09
> Time: 3:19:09 PM
> User: NT AUTHORITY\SYSTEM
> Computer: SERVER
> Description:
> Windows unloaded user DIR\DSTRAO registry when it received a notification
> that no other applications or services were using the profile.
> 
> Installed UPHClean to get around it
> 
> Event Type: Information
> Event Source: UPHClean
> Event Category: None
> Event ID: 1201
> Date: 2005-05-09
> Time: 4:37:12 PM
> User: DIR\dstrao
> Computer: SERVER
> Description:
> The following handles in user profile hive DIR\dstrao
> (S-1-5-21-2002034099-1741304011-708699545-XXXXx) have been closed because
> they were preventing the profile from unloading successfully:
> wmiprvse.exe (1428)
> HKCU (0x1dc)
> 
> What I found out was that if our logon script fails the profiles unload.
> 
> Did some further looking around and found that a little section of WMI 
> calls
> result in failure to unload.
> 
> We don't really have any WMI experts here. But what I think is going on is
> we are not "cleaning up" correctly after doing our calls and this is
> resulting in the profile being locked.
> 
> This is one section that we do some calls.
> 
> Set objReg =
> 
> GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdReg
> Prov")
> ' determine the logon server
> objReg.GetStringValue HKEY_CURRENT_USER, "Volatile Environment",
> "logonserver", strLogonServer
> ' "\\" prefix needs to be removed
> 
> Anyone know what we should do after this to free up the HCKU hive?
> 
> thanks
> 
> _______________________________________________
> Doug Stratton
> CITS
> Technology Development Analyst
> Work: 250-704-1861
> doug.m.stratton@xxxxxxxxx
> _______________________________________________
> 
> ********************************************************
> This Weeks Sponsor: ThinPrint GmbH
> Now available: The new version .print Engine 6.2 with SSL encryption
> and certificate management.
> http://www.thinprint.com
> **********************************************************
> Useful Thin Client Computing Links are available at:
> http://thin.net/links.cfm
> ThinWiki community - Excellent SBC Search Capabilities!
> http://www.thinwiki.com
> ***********************************************************
> For Archives, to Unsubscribe, Subscribe or
> set Digest or Vacation mode use the below link:
> http://thin.net/citrixlist.cfm
> 
> ********************************************************
> This Weeks Sponsor: ThinPrint GmbH
> Now available: The new version .print Engine 6.2 with SSL encryption
> and certificate management.
> http://www.thinprint.com
> **********************************************************
> Useful Thin Client Computing Links are available at:
> http://thin.net/links.cfm
> ThinWiki community - Excellent SBC Search Capabilities!
> http://www.thinwiki.com
> ***********************************************************
> For Archives, to Unsubscribe, Subscribe or
> set Digest or Vacation mode use the below link:
> http://thin.net/citrixlist.cfm
> 



-- 
--------------
Give a man a match, and he'll be warm for a minute.
But set a man on fire, and he'll be warm for the rest of his life.

Other related posts: