bestand kopieëren

Status
Niet open voor verdere reacties.

test1000

Gebruiker
Lid geworden
7 jul 2017
Berichten
277
Hoi,

Ik heb een aanpassing gedaan in het Word normal.dotm bestand.
Dit bestand bevindt zich op de terminal server met verschillende gebruikers.
C:\Users\XXX\AppData\Roaming\Microsoft\Sjablonen\normal.dotm

XXX zijn de gebruikers

Bestaat er een script om het bestand normal.dotm te kopieëren naar de gebruikers folder en automatisch overschrijven als het al bestaat ?

Vb c:\normal.dotm (het aangepast bestand) kopieren naar :

C:\Users\ANN\AppData\Roaming\Microsoft\Sjablonen\normal.dotm
C:\Users\JEF\AppData\Roaming\Microsoft\Sjablonen\normal.dotm
C:\Users\PIET\AppData\Roaming\Microsoft\Sjablonen\normal.dotm
C:\Users\LOUIS\AppData\Roaming\Microsoft\Sjablonen\normal.dotm

Thx
 
Gebruik: COPY /Y
Code:
COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/L] [/A | /B ] source [/A | /B]
     [+ source [/A | /B] [+ ...]] [destination [/A | /B]]

  source       Specifies the file or files to be copied.
  /A           Indicates an ASCII text file.
  /B           Indicates a binary file.
  /D           Allow the destination file to be created decrypted
  destination  Specifies the directory and/or filename for the new file(s).
  /V           Verifies that new files are written correctly.
  /N           Uses short filename, if available, when copying a file with a
               non-8dot3 name.
  /Y           Suppresses prompting to confirm you want to overwrite an
               existing destination file.
  /-Y          Causes prompting to confirm you want to overwrite an
               existing destination file.
  /Z           Copies networked files in restartable mode.
  /L           If the source is a symbolic link, copy the link to the target
               instead of the actual file the source link points to.
 
Maar bestaat er ook een script dat alle users eerst gaat 'uitlezen' en dan automatisch het bestand kopieert naar de folder ?
Nu moet je het bestand per gebruiker kopiëren.
Hebben ongeveer 100 gebruikers.
(verdeelt over twee terminal servers)

Thx
 
Zet dat sjabloon op een vaste plek en kopieer deze tijdens het inloggen van de gebruiker.
Je kan in de AD aangeven wat de login.bat is en waar deze staat.
Dan hoef je maar 1 copy opdracht uit te voeren.

Kopieer deze dan naar:
Code:
%appdata%\Microsoft\Sjablonen\normal.dotm
 
Laatst bewerkt:
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan