Wednesday, June 21, 2017

Change desktop wallpaper to all client computer

1. open group policy management


2. Right click and edit on the Default Domain Policy


3. Select User configuration - Policies - Administrative templates - Desktop - Desktop


4. Double click Desktop wallpaper on the right pane
 

5. Place your background image file on a shared folder.


6. [I don't know this command is necessary or not] Run : gpupdate /force

7. Logoff and login again (Or restart) on the client computer



My environment :
Server : windows server 2008 (domain controller)
Client : windows XP (join domain)

Friday, April 21, 2017

Setup PHP with PostgreSQL connection in Windows

On a Windows server, configured with Apache, adding the following line to httpd.conf to load libpq.dll can save you a lot of time :

LoadFile "C:/Program Files/PostgreSQL/9.1/bin/libpq.dll"

Then edit the php.ini file (in folder : C:\xampp\php). Enable this lines:
extension=php_pdo_pgsql.dll
extension=php_pgsql.dll


Environment:

  • Windows 7
  • XAMPP
  • XAMPP Control panel v3.2.1
  • PostgreSQL 9.1


Reference: