搜尋此網誌

2017年4月7日 星期五

如何防止outlook 2010email中的網頁圖檔(internet image)在轉寄時被內嵌至本文中。

至https://www.howto-outlook.com/faq/imagesignature.htm
截錄

How can I prevent an Internet image from being embedded in the message?

After creating a signature with a link to an Internet image, you might experience that the image still gets embedded in the message itself.
Outlook has an option to control to what should happen with linked images; they can either stay linked or Outlook can embed them in the message upon sending.
In Outlook 2003 you can find the option under;
Tools-> Options…-> tab Mail Format-> button Internet Format-> disable the option:
"When an HTML message contains pictures located on the Internet, send a copy of the pictures instead of the reference to the location."
In Outlook 2007 and Outlook 2010, this option can only be modified via the Registry;
Key Outlook 2007:
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Options\Mail
Key Outlook 2010:
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Options\Mail
Value name; Send Pictures With Document
Value: 0
With a value of 1 or if the value name is missing, you’ll include the picture with the message instead of as a link.
If the value is set to 0 you’ll send a link.
Note: The value name contains spaces and capital letters; you must include these as well.

2017年3月8日 星期三

批次修改AD上的用戶密碼 (利用指令一次改多個AD user password)

如果要一次大量更改設定AD user密碼,可以使用下列方法一次設定。

需設定一個text file 命名為 set_password.csv,內容只有帳號,密碼
例如:
user_a,Vx22503
user_b,password2

另設一個text file命名為batchsetpassword.cmd,內容如下:

  • 要注意黃色標示處的路徑位置及檔案名稱,如果不對是不會成功的。
  • 以這個列子來說請將兩個檔案都放到AD server D:\中,run cmd(開啟DOS視窗)後keyin batchsetpassword.cmd ENTER就會直執行。


CLS
@ECHO Off
COLOR 70
MODE CON COLS=65 LINES=40
setlocal EnableDelayedExpansion
ECHO ----------------------------------------------------------------
ECHO     正在自動設定密碼....
ECHO ----------------------------------------------------------------
for /F "tokens=1,2 delims=, " %%i in (D:\set_password.csv) do (
set username=%%i&set password=%%j
echo     正在設定 !username! 帳號之密碼為 !password!...
start /wait net user !username! !password! /domain
echo     設定完畢...
echo.
)
pause
exit

以上內容參考下列網址:

http://ithelp.ithome.com.tw/questions/10016008
https://ss64.com/nt/delayedexpansion.html