The appointment of Moin completes a double change in the running of the team after Javed Miandad took over as coach from Intikhab Alam on the eve of the current third and final Test against Sri Lanka on Saturday.
''Moin has been appointed captain until July 13,'' Pakistan Cricket Board (PCB) chairman Tauqir Zia said. ''Inzamam-ul-Haq will be his deputy.''
Pakistan are about to start an intense four-month period during which they will make tours of Sharjah, West Indies and Sri Lanka.
Zia said last on Sunday that Anwar would continue as captain for these assignments, but newspaper reports said the PCB was disappointed with the recent results against Sri Lanka and blamed Anwar for the failures.
"Anwar will retain his place in the team if he is fit," Zia said here on the second day of the third Test, from which Anwar is absent because of neck and nose injuries.
If Anwar had kept the captaincy, it would have put him in a close working relationship with Miandad, who resigned last April after a previous spell as coach following disagreements with a number of players, including Anwar.
Opening batsman Anwar had taken over as captain from Wasim Akram, who stepped down after a disastrous 1999-2000 tour of Australia where Pakistan lost three Tests and six out of ten one-day internationals.
Pakistan's squad for a triangular series against India and South Africa in Sharjah is to be named later on Monday, but Zia confirmed Akram was not being considered.
In the last 11 months, Pakistan has had four cricket board chiefs, six coaches and three captains.