# Configuration profile to remove Shut Down option from Apple menu on Mac

Admins may often initiate time-consuming actions that require the device to remain turned on throughout the entirety of its execution. There may also be instances wherein the device has a faulty power-on button, so an unintended shutdown could turn the device off, preventing the user from turning it back on. In such scenarios, when a user shutting down their macOS device is not favored, admins can hide the shutdown option from the Apple menu by [deploying a custom configuration profile](https://www.hexnode.com/mobile-device-management/help/how-to-deploy-custom-configuration-profiles-to-macos-devices/) from the Hexnode UEM portal.

 Disclaimer: 
The configuration profile provided below is adapted from a third-party open-source site.

 

Hide Shut Down option from Apple Menu
-------------------------------------

Configuration profile to remove Shut Down option on Mac

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>PayloadContent</key> <array> <dict> <key>PayloadContent</key> <dict> <key>com.apple.loginwindow</key> <dict> <key>Forced</key> <array> <dict> <key>mcx\_preference\_settings</key> <dict> <key>ShutDownDisabledWhileLoggedIn</key> <true/> </dict> </dict> </array> </dict> </dict> <key>PayloadEnabled</key> <true/> <key>PayloadIdentifier</key> <string>MCXToProfile.c9e435e9-b507-418f-9420-b1453e2678a8.alacarte.customsettings.48e05061-5822-412b-a3f9-96c8715d364e</string> <key>PayloadType</key> <string>com.apple.ManagedClient.preferences</string> <key>PayloadUUID</key> <string>48e05061-5822-412b-a3f9-96c8715d364e</string> <key>PayloadVersion</key> <integer>1</integer> </dict> </array> <key>PayloadDescription</key> <string>Included custom settings: com.apple.loginwindow Git revision: 5aefeaf7eb</string> <key>PayloadDisplayName</key> <string>MCXToProfile: com.apple.loginwindow</string> <key>PayloadIdentifier</key> <string>ShutdownRemovedFromAppleMenu</string> <key>PayloadOrganization</key> <string></string> <key>PayloadRemovalDisallowed</key> <true/> <key>PayloadScope</key> <string>System</string> <key>PayloadType</key> <string>Configuration</string> <key>PayloadUUID</key> <string>c9e435e9-b507-418f-9420-b1453e2678a8</string> <key>PayloadVersion</key> <integer>1</integer> </dict> </plist>

   1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

  <?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

 <key>PayloadContent</key>

 <array>

 <dict>

 <key>PayloadContent</key>

 <dict>

 <key>com.apple.loginwindow</key>

 <dict>

 <key>Forced</key>

 <array>

 <dict>

 <key>mcx\_preference\_settings</key>

 <dict>

 <key>ShutDownDisabledWhileLoggedIn</key>

 <true/>

 </dict>

 </dict>

 </array>

 </dict>

 </dict>

 <key>PayloadEnabled</key>

 <true/>

 <key>PayloadIdentifier</key>

 <string>MCXToProfile.c9e435e9-b507-418f-9420-b1453e2678a8.alacarte.customsettings.48e05061-5822-412b-a3f9-96c8715d364e</string>

 <key>PayloadType</key>

 <string>com.apple.ManagedClient.preferences</string>

 <key>PayloadUUID</key>

 <string>48e05061-5822-412b-a3f9-96c8715d364e</string>

 <key>PayloadVersion</key>

 <integer>1</integer>

 </dict>

 </array>

 <key>PayloadDescription</key>

 <string>Included custom settings:

com.apple.loginwindow

Git revision: 5aefeaf7eb</string>

 <key>PayloadDisplayName</key>

 <string>MCXToProfile: com.apple.loginwindow</string>

 <key>PayloadIdentifier</key>

 <string>ShutdownRemovedFromAppleMenu</string>

 <key>PayloadOrganization</key>

 <string></string>

 <key>PayloadRemovalDisallowed</key>

 <true/>

 <key>PayloadScope</key>

 <string>System</string>

 <key>PayloadType</key>

 <string>Configuration</string>

 <key>PayloadUUID</key>

 <string>c9e435e9-b507-418f-9420-b1453e2678a8</string>

 <key>PayloadVersion</key>

 <integer>1</integer>

</dict>

</plist>

   

 

  

What happens at the device end? 
--------------------------------

Once the configuration profile is deployed, the Shut Down option will be removed from the Apple menu.

![Shutdown option hidden in Apple menu](https:2023/09/Shutdown-option-removed-from-apple-menu.png "Shutdown option removed from apple menu")

 Notes:- To create and customize configuration profiles, you can use tools like Apple Configurator, Profile Manager or manually create them using text editors.
- Use non-encrypted .mobileconfig, .xml, or plist files to deploy profiles across macOS devices.
- Ensure that you do not associate conflicting configurations with the devices.
- Use wildcards to fetch key values from the portal.
- It is recommended to manually validate the configuration profile execution on a system before executing the action in bulk.
- Hexnode will not be responsible for any damage/loss to the system on the behavior of the configuration profile.