Skip to content

VRPC.COM

Virtual Reality Powered Computer

  • Home
  • Apple
  • Apps
  • Mobile Devices
    • Jailbreak
  • Network
  • Servers
  • Windows
  • Hackintosh

Category: Apple

Add mac computer to MDM server after initial setup

Posted on October 23, 2020 - October 23, 2020 by vrpc

This solution works currently on mac OSx Catalina 10.15.x.

If you need to add mac which didn’t get added during first run to MDM server or was added to MDM server after the initial configuration and you want to add it without having to re-install operating system:

Open terminal and run this command:
sudo profiles renew -type enrollment

Posted in AppleTagged apple, MDM

Trigger DEP enrolement on mac OS Mojave

Posted on August 2, 2019 - October 23, 2020 by vrpc


mac OS 10.14.6
sudo profiles renew -type enrollment
older mac OS version:
sudo /usr/libexec/mdmclient dep na

Mac OS Sierra:
sudo rm /var/db/.AppleSetupDone
sudo rm -rf /var/db/ConfigurationProfiles/
sudo rm /Library/Keychains/apsd.keychain


Reference:

https://www.jamf.com/jamf-nation/discussions/24292/trigger-dep-enrollment-pop-up-notification

Posted in Apple, MDMTagged apple, DEP, Mojave

AD user on encrypted MAC

Posted on June 25, 2018 by vrpc

using terminal:

sudo fdesetup add -usertoadd username -usertoadd username -keychain

and or:

  1. Login as Local Admin
  2. Add AD User to Filevault(you will need user to input AD Password)- Skip this step if you already added and rebooted and not seeing the AD User.
  3. Log the Local Admin account out (Do not restart or shut down- just logout).
  4. Now you should see the AD User(or Users list if multiple had signed in)
  5. Login as AD USER. Then Log out(do not restart or shur down- just logout).
  6. from the Login screen now reboot.
  7. AD Users should now show up as an option to login in.

reference:

https://www.jamf.com/jamf-nation/discussions/25692/high-sierra-10-13-encrypted-users-not-showing-at-filevault-login-screen

 

Posted in AppleTagged AD, FileVault

Compress folder on macOS Sierra and windows 10

Posted on October 5, 2017 by vrpc

macOS Sierra:

1. Create folder and place all the files you want to compress in it.

2. Right click on the folder and click on Compress.

 

Windows 10:

  1. Create folder and place all the files you want to compress in it.
  2. Right click on the folder and select Send to > Compressed (zipped) folder.

Posted in Apple, WindowsTagged compressed

Spotlight not indexing after Sierra upgrade

Posted on September 22, 2017 - September 22, 2017 by vrpc

Looks like this helped me:

  1. first I removed all selections under System Preferences/ Spotlight/ search results
  2. restart
  3. use terminal:
    sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
    wait 20s
    sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
    sudo mdutil -E /Volumes/*
    you should get a message indicating that indexing is enabled.

 

 

resources:

https://discussions.apple.com/thread/7684120?start=0&tstart=0

https://discussions.apple.com/thread/5004598?start=0&tstart=0

 

Posted in AppleTagged fixit, spotlight, terminal

mac OS Sierra remove parental control using terminal

Posted on September 11, 2017 by vrpc

for some reason I had parental control enabled on network user with local admin rights.

it wasn’t possible to remove them using system preferences.

to remove it I used terminal command:

sudo dscl . -mcxdelete /Users/username
sudo rm -rf /Library/Managed\ Preferences/username
Posted in AppleTagged parental control, terminal

DeployStudio workflow with auto-join Active Directory

Posted on August 31, 2017 - August 31, 2017 by vrpc

After creating master image create workflow with these steps:

1:

restore HDD from MacBookAir2017.hfs.dmg disk image.

 

2:

Rename computer:

 

3:

Prompt for computer name during setup

 

4:

auto join computer to MS Active Directory.

 

5:

auto join computer to Open Directory Server.

Posted in Apple, Servers, ToolsTagged AD, DeployStudio, MAC

Disable background updates on MAC

Posted on August 17, 2017 by vrpc

terminal command:

sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -boolean FALSE

https://support.apple.com/en-us/HT207251

Posted in Apple, ToolsTagged apple, updates

DEP re-enrollment without wipe

Posted on August 16, 2017 by vrpc

This could help if you need to add already configured apple cumputer (DEP purchased) to Meraki or JAMF MDM management.

sudo rm /var/db/.AppleSetupDone
sudo rm -rf /var/db/ConfigurationProfiles/
sudo rm /Library/Keychains/apsd.keychain

after running these commands restart your computer and the default apple setup assistant will start. (no lost of personal data)

 

Posted in AppleTagged DEP, JAMF, MDM, Meraki

Disable iCloud and siri prompt when new user login

Posted on May 31, 2017 by vrpc

After setting up clean install of macOS Sierra in a multi-user environment (computer lab) it is useful to disable iCloud and siri prompt at the first login.

Here is the original link with instructions and a script to disable iCloud promt:

https://derflounder.wordpress.com/2013/10/27/disabling-the-icloud-sign-in-pop-up-message-on-lion-and-later/

the script is:

#!/bin/sh

# Determine OS version
osvers=$(sw_vers -productVersion | awk -F. '{print $2}')
sw_vers=$(sw_vers -productVersion)

# Checks first to see if the Mac is running 10.7.0 or higher. 
# If so, the script checks the system default user template
# for the presence of the Library/Preferences directory.
#
# If the directory is not found, it is created and then the
# iCloud pop-up settings are set to be disabled.

if [[ ${osvers} -ge 7 ]]; then

 for USER_TEMPLATE in "/System/Library/User Template"/*
  do
    defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant DidSeeCloudSetup -bool TRUE
    defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant GestureMovieSeen none
    defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant LastSeenCloudProductVersion "${sw_vers}"
  done

 # Checks first to see if the Mac is running 10.7.0 or higher.
 # If so, the script checks the existing user folders in /Users
 # for the presence of the Library/Preferences directory.
 #
 # If the directory is not found, it is created and then the
 # iCloud pop-up settings are set to be disabled.

 for USER_HOME in /Users/*
  do
    USER_UID=`basename "${USER_HOME}"`
    if [ ! "${USER_UID}" = "Shared" ] 
    then 
      if [ ! -d "${USER_HOME}"/Library/Preferences ]
      then
        mkdir -p "${USER_HOME}"/Library/Preferences
        chown "${USER_UID}" "${USER_HOME}"/Library
        chown "${USER_UID}" "${USER_HOME}"/Library/Preferences
      fi
      if [ -d "${USER_HOME}"/Library/Preferences ]
      then
        defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant DidSeeCloudSetup -bool TRUE
        defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant GestureMovieSeen none
        defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant LastSeenCloudProductVersion "${sw_vers}"
        chown "${USER_UID}" "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant.plist
      fi
    fi
  done
fi

 

 

And here is the original link with information on how to disable siri:

https://derflounder.wordpress.com/2016/09/20/supressing-siri-pop-up-windows-on-macos-sierra/

and here is the script

#!/bin/bash

# Determine OS version
osvers=$(sw_vers -productVersion | awk -F. '{print $2}')
sw_vers=$(sw_vers -productVersion)

# Determine OS build number

sw_build=$(sw_vers -buildVersion)

# Checks first to see if the Mac is running 10.7.0 or higher. 
# If so, the script checks the system default user template
# for the presence of the Library/Preferences directory. Once
# found, the iCloud, Diagnostic and Siri pop-up settings are set 
# to be disabled.

if [[ ${osvers} -ge 7 ]]; then

 for USER_TEMPLATE in "/System/Library/User Template"/*
  do
    /usr/bin/defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant DidSeeCloudSetup -bool TRUE
    /usr/bin/defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant GestureMovieSeen none
    /usr/bin/defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant LastSeenCloudProductVersion "${sw_vers}"
    /usr/bin/defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant LastSeenBuddyBuildVersion "${sw_build}"
    /usr/bin/defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant DidSeeSiriSetup -bool TRUE      
  done
  
 # Checks first to see if the Mac is running 10.7.0 or higher.
 # If so, the script checks the existing user folders in /Users
 # for the presence of the Library/Preferences directory.
 #
 # If the directory is not found, it is created and then the
 # iCloud, Diagnostic and Siri pop-up settings are set to be disabled.

 for USER_HOME in /Users/*
  do
    USER_UID=`basename "${USER_HOME}"`
    if [ ! "${USER_UID}" = "Shared" ]; then
      if [ ! -d "${USER_HOME}"/Library/Preferences ]; then
        /bin/mkdir -p "${USER_HOME}"/Library/Preferences
        /usr/sbin/chown "${USER_UID}" "${USER_HOME}"/Library
        /usr/sbin/chown "${USER_UID}" "${USER_HOME}"/Library/Preferences
      fi
      if [ -d "${USER_HOME}"/Library/Preferences ]; then
        /usr/bin/defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant DidSeeCloudSetup -bool TRUE
        /usr/bin/defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant GestureMovieSeen none
        /usr/bin/defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant LastSeenCloudProductVersion "${sw_vers}"
        /usr/bin/defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant LastSeenBuddyBuildVersion "${sw_build}"
        /usr/bin/defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant DidSeeSiriSetup -bool TRUE
        /usr/sbin/chown "${USER_UID}" "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant.plist
      fi
    fi
  done
fi

exit 0

 

Posted in AppleTagged iCloud, login, siri

Posts navigation

Older posts

Categories

Recent Posts

  • TLS 1.0
  • Add mac computer to MDM server after initial setup
  • MX-100 1:many NAT not working as expected
  • Splashtop on Windows computer name update
  • G-Suite add a native printer

Tags

64K AD apple apps backup BOOT chromebook DEP DeployStudio driver DVD EMS exchange 2010 Exchange 2016 Exhange 2010 export FileVault Firefox Firewall fixit G-Suite Google+ Group Policy iphone jailbreak JAMF Linux MAC management error MDM Meraki Mojave Outlook 2016 parental control printer PXE Server Splashtop terminal updates VEEAM vmware WiFi windows 10 windows update 1803

RSS iClarified – Apple News and Tutorials

  • Download the WWDC 2023 Wallpaper Here
  • Big Discounts on HDs, SSDs, Memory Cards for World Backup Day [Deal]
  • Apple TV App and Apple TV+ Now Available on DIRECTV STREAM Device
  • GM to Drop Apple CarPlay and Android Auto for Future EVs
  • Solid State Buttons on iPhone 15 Pro Will Purportedly Work With Gloves and Cases
  • Apple Releases Xcode 14.3 With Swift 5.8 and SDKs for iOS 16.4, iPadOS 16.4, More
  • Apple Updates Pages, Numbers, Keynote With Support for Apple Pencil Hover
Proudly powered by WordPress | Theme: micro, developed by DevriX.
 

Loading Comments...