profiles

Black wallpaper (background)

Posted by robd on November 12, 2014
Windows 7 / No Comments

So further to my post about roaming profiles going screwy i.e.

When a roaming user logs off their profile isnt fully deleted meaning when they log on they get a second profile on the computer called Username.Domain.

This second profile results in a black background because the following registry key: HKEY\Current User\Control\Desktop\Wallpaper\ points at their orgininal profile which is half deleted.

To fix this you need to ensure the profile is deleted so I’d recommend a policy to turn off the PC’s off in the evening with a shutdown script to run Delprof2.exe.  If this still doesnt work then you can cheat a little and change the registry to point at the roaming profile:

Key: HKEY\Current User\Control\Desktop\Wallpaper\
Value: REG_SZ
Value: \\ProfileServer\Staff_profiles_Share\%username%.v2\appdata\roaming\microsoft\windows\themes\TranscodedWallpaper.jpg
Although if your sensible you would have a mandory wallpaper and wouldnt have this issue (we’re not as users like pictures of their kids).

Tags: , , , , , , ,

Find AD users using Profile Paths (roaming profiles)

Posted by robd on May 08, 2014
powershell / 1 Comment

So today due to a server migration I needed a list of all the users who have roaming profiles, found this useful Powershell script:

Please note you need to ammed this line of code to suite your site: “OU=VI2,OU=Students,OU=Users,OU=Monmouth School,DC=Monmouth,DC=local”

Get-ChildItem -Filter "(&(objectclass=user)(objectcategory=user)(profilepath=*))" `
 -Path Ad:\"OU=DEPARTMENT,OU=Users,OU=SITE,DC=DOMAIN,DC=local" -Recurse |             
foreach {             
 $user = [adsi]"LDAP://$($_.DistinguishedName)"            
 $user | select @{N="Name"; E={$_.name}},             
 @{N="DistinguishedName"; E={$_.distinguishedname}},            
 @{N="ProfilePath"; E={$_.profilepath}}            
} | export-csv txt.csv  

Tags: , , , , , , ,