Author Topic: GPO and lote files  (Read 1541 times)

donlazaro

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
GPO and lote files
« on: July 14, 2014, 10:49:30 pm »
Recently installed Zentyal 3.5 and already have win7 machines logging into the domain.
I'm having trouble in making some scripts. Bat work, for example, change the wallpaper.
Following example:

call: quiet> nul 2​​> & 1
goto: EOF
: quiet

net time \ \ ip_server / set / yes

@ net use P: / del
@ net use P: \ \ server \ Operacao

Configure :: Wallpaper
xcopy "\ \ home \ Operacao \ logo.bmp" "% USERPROFILE%" / C / Y / D
REG ADD "HKCU \ Control Panel \ Desktop" / V Wallpaper / T REG_SZ / F / D "% USERPROFILE% \ logo.bmp"
REG ADD "HKCU \ Control Panel \ Desktop" / V WallpaperStyle / T REG_SZ / F / D 2
REG ADD "HKCU \ Control Panel \ Desktop" / V TileWallpaper / T REG_SZ / F / D 0
:: For the changes to take effect immediately
% SystemRoot% \ System32 \ RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters

Sorry for my english and thanks for all

DonLazaro