First we will make sure that the data are replicated to all global catalog servers
1. Execute the command: “Regsvr32 schmmgmt.dll” from a command prompt.
2. Open an MMC console (mmc.exe) and add the Active Directory Schema snap-in to the console.
3. In the Active Directory Schema snap-in, expand the Attributes node, and then locate the thumbnailPhoto attribute.
4. In the Properties page, select “Replicate this attribute to the Global Catalog“, and click OK
Replication might already be select. Otherwise, select it and click OK.
Import image using PowerShell cmdlet
You can use the script example below to import a picture for each user to Active Directory.
Import-RecipientDataProperty -Identity "Thomas Nielsen" -Picture -FileData ([Byte[]]$(Get-Content -Path "C:\pics\thomas.jpg" -Encoding Byte -ReadCount 0))
1. Execute the command: “Regsvr32 schmmgmt.dll” from a command prompt.
2. Open an MMC console (mmc.exe) and add the Active Directory Schema snap-in to the console.
3. In the Active Directory Schema snap-in, expand the Attributes node, and then locate the thumbnailPhoto attribute.
4. In the Properties page, select “Replicate this attribute to the Global Catalog“, and click OK
Replication might already be select. Otherwise, select it and click OK.
Import image using PowerShell cmdlet
You can use the script example below to import a picture for each user to Active Directory.
Import-RecipientDataProperty -Identity "Thomas Nielsen" -Picture -FileData ([Byte[]]$(Get-Content -Path "C:\pics\thomas.jpg" -Encoding Byte -ReadCount 0))
For more from the XpertCrewTM team please follow us on Twitter @Techvedic or
our Facebook Page-
or contact us at
U.S. +855-859-0057 (http://www.techvedic.com/ )
U.K. +800-635-0716 (http://www.techvedic.co.uk/ )
CA 1-855-749-5861 (http://www.techvedic.ca/ )
AU 1-800-197-298 (http://www.techvedic.com.au/ )
And yes, we are eagerly waiting for your valuable feedback. Do write us back. We would be more than happy to help you. We are available 24/7.
For more from the XpertCrewTM team please follow us on Twitter @Techvedic or
our Facebook Page-
or contact us at
U.S. +855-859-0057 (http://www.techvedic.com/ )
U.K. +800-635-0716 (http://www.techvedic.co.uk/ )
CA 1-855-749-5861 (http://www.techvedic.ca/ )
AU 1-800-197-298 (http://www.techvedic.com.au/ )
And yes, we are eagerly waiting for your valuable feedback. Do write us back. We would be more than happy to help you. We are available 24/7.
0 comments:
Post a Comment