powershell command


you cannot vote on own post
0

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

Popular posts from this blog

Round Robin is killing performance on our network

WMI Repository 4GB limit - Win 2003 Ent Question

Change home folder default permission?