From 582729be81dc2bb67a640ed7e6dd26702dbf16b7 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 12 Jul 2012 12:30:53 +0200 Subject: [PATCH] Script de session pour la config du nom d'utilisateur dans Office --- .../files/shares/tools/files/scripts/session/012setOfficeName.bat | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 root/home/e-smith/files/shares/tools/files/scripts/session/012setOfficeName.bat diff --git a/root/home/e-smith/files/shares/tools/files/scripts/session/012setOfficeName.bat b/root/home/e-smith/files/shares/tools/files/scripts/session/012setOfficeName.bat new file mode 100644 index 0000000..b38c0c8 --- /dev/null +++ b/root/home/e-smith/files/shares/tools/files/scripts/session/012setOfficeName.bat @@ -0,0 +1,3 @@ +REM Configuration du nom de l'utilisateur dans Office +for /f "Tokens=2*" %%m in ('net user %USERNAME% /domain ^| find "Nom complet"') do SET FULLNAME=%%n +reg add "HKCU\Software\Microsoft\Office\Common\UserInfo" /v "UserName" /d "%FULLNAME%" /t REG_SZ /f"