I would caution about giving the impression that the command can “at will” inspect a Soldiers on or off post housing. The command must have permission of the Soldier or spouse to enter the home.
The command can ask to enter, but if the Soldier says no, they can not force their way in to inspect. Some ways to work this issue is that if the Soldier is living in on base housing, then the command requests the housing authority do an informal inspection of the premises. This is usually in the contract with the housing authority that they can come in and inspect the quarters after giving 24 hour notice.
The command can then accompany the housing authority to the residence.
If the Soldier is living off-base, then the same can be attempted through the rental property management. Most rental managers will support such a request to protect their interests.
If the Soldier is purchasing a residence off-base it is more difficult to inspect if the Soldier will not give permission. Then access has to be for just cause and coordinated through the local authorities/courts.