powershell command
hello all,
this photo add command.. , did 1 user
$photo = [byte[]](get-content " c:\users\xxx\desktop\1.jpg" -encoding byte)
set-aduser ntid -replace @{thumbnailphoto=$photo},
but want remove photo couldn't find command please me in this.
thanks
amit
hello amit,
i can't test here, setting value predefined value $null (nothing) should work:
set-aduser ntid -replace @{thumbnailphoto=$null}
olaf helper
* cogito ergo sum * errare humanum est * quote erat demonstrandum *
wenn ich denke, ist das ein fehler und das beweise ich täglich
blog xing
Windows Server > Windows PowerShell
Comments
Post a Comment