2012-10-25 32 views

回答

2

此腳本正在爲我工​​作。

Get-ADUser -Filter * -Properties thumbnailphoto, EmailAddress | where {$_.thumbnailphoto} | foreach {$_.thumbnailphoto | Set-Content -Path "C:\Downloads\ADPicture\Pictures\$($_.EmailAddress).jpg" -Encoding Byte} 


C:\gam\gam.exe all users update photo C:\Downloads\ADPicture\Pictures\#user#.jpg 
+0

不能等待試試這個。 –

+0

確保編輯腳本中的目錄以反映服務器的文件位置並正確安裝GAM。 –