Languages

OS X Server: How to reset Profile Manager to its original state

If you have migrated from another version of OS X Server but want to start over, you can reset Profile Manager.

OS X Mavericks

Resetting Profile Manager to its original state in Mavericks removes all profiles, devices, and device groups.

  • If your server was upgraded from a previous version of OS X, previous data is re-migrated. If you don’t want to re-migrate your previous data, see the section of this article titled, "To reset Profile Manager and clear all data."
  • You should only reset Profile Manager if your original migration did not work, or if you want to set your server to a pre-OS X upgrade state.
  • After resetting, post-migration device settings may be reverted after pushing changes out to the device, or if the profile is manually installed on the device.
  • Certificates are not removed.

To reset Profile Manager data (with re-migration if available) on Mavericks

Use this Terminal command as an administrator to reset Profile Manager. Enter an administrator password when prompted.

sudo /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/wipeDB.sh

If this was a upgrade or migration, Profile Manager should be ready. If this wasn't an upgrade or migration, use these steps.

  1. Open Server.app and click on Profile Manager. Profile Manager should be be off, and Device Management should be disabled. You may need to wait a few moments for the status of these settings to update.
  2. Click on Configure and continue with setup.
  3. Turn Profile Manager on.

To reset Profile Manager and clear all data on Mavericks

If you don’t want to re-migrate your previous Profile Manager data, use these Terminal commands. Only use these commands once. After the commands are run, migration data is erased and re-migration is no longer an option. 

Use these commands while logged in as an administrator:

sudo serveradmin stop devicemgr
sudo serverctl disable service=com.apple.DeviceManagement.devicemgrd
sudo serverctl disable service=com.apple.DeviceManagement.postgres
sudo mv /Library/Server/ProfileManager/Config/ServiceData/Data/PostgreSQL ~/.Trash
sudo mv /Library/Server/ProfileManager/Config/ServiceData/Data/backup ~/.Trash
sudo /Applications/Server.app/Contents/ServerRoot/System/Library/ServerSetup/CommonExtras/80-devicemgrcommon.sh

After using the Terminal commands, follow these steps:

  1. Open Server.app and click on Profile Manager. Profile Manager should be be off, and Device Management should be disabled. You may need to wait a few moments for the status of these settings to update.
  2. Click on Configure.
  3. Complete the setup, then turn Profile Manager on.

OS X Lion and Mountain Lion

For Lion and Mountain Lion, resetting Profile Manager to its original state removes all profiles, devices, and device groups.

  • Only do this if you want to start over with Profile Manager, without reinstalling OS X Server.
  • Any devices that have profiles installed from this server no longer receive updates, and you won't be able to manage these devices unless they re-enroll.
  • Certificates are not removed.

To reset Profile Manager on Lion or Mountain Lion

When you reset Profile Manager, any devices that have profiles installed from your server no longer receive updates. You can't manage these devices unless they re-enroll. The profiles should be deleted from the devices.

  1. Quit Server.app if it's open.
  2. Log in as an administrator.
  3. Use the Terminal command for your OS version. Enter your administrator password when prompted.

    For OS X Mountain Lion
    sudo /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/wipeDB.sh
    For OS X Lion
    sudo /usr/share/devicemgr/backend/wipeDB.sh
  4. Open Server.app and click Service, then click Profile Manager. Note that Profile Manager is on and Device Management is Disabled.
  5. Turn Profile Manager off.
  6. In Profile Manager click Device Management.
  7. Click Configure, then click Next.
  8. Enter the Organization Name and administrator email address.
  9. Click Next.

 

Last Modified: Jul 22, 2014
Helpful?
Yes
No
  • Last Modified: Jul 22, 2014
  • Article: HT5349
  • Views:

    422
  • Rating:
    • 20.0

    (1 Responses)

Additional Product Support Information

Start a Discussion
in Apple Support Communities
See all questions on this article See all questions I have asked