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

some help on Event 540

WMI Repository 4GB limit - Win 2003 Ent Question

Event ID 1302 (error 1307) DFS replication service encountered an error while writing to the debug log file