Showing posts with label Apple. Show all posts
Showing posts with label Apple. Show all posts

Wednesday, February 28, 2024

 

ADSelfService GINA Mac Uninstall

Uninstallation Steps:

Open Terminal

Open /Library/PrivilegedHelperTools/

Del ADSSPLoginAgent

Go to login screen and confirm the changes.

 

Mac OS X Login Agent Installation (manageengine.com)

Friday, October 23, 2020

Add mac computer to MDM server after initial setup

 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

 

Friday, August 2, 2019

Trigger DEP enrolement on mac OS Mojave

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

Monday, June 25, 2018

AD user on encrypted MAC

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 

Thursday, October 5, 2017

Compress folder on macOS Sierra and windows 10

 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.

Friday, September 22, 2017

Spotlight not indexing after Sierra upgrade

 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

Monday, September 11, 2017

mac OS Sierra remove parental control using terminal

 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

Thursday, August 31, 2017

DeployStudio workflow with auto-join Active Directory

 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.


Thursday, August 17, 2017

Disable background updates on MAC

 terminal command:

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

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

Wednesday, August 16, 2017

DEP re-enrollment without wipe

 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)

Wednesday, May 31, 2017

Disable iCloud and siri prompt when new user login

 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

Tuesday, May 9, 2017

Grant printer admin rights on a mac to domain users

 allow administration of printers by domain users:

/usr/sbin/dseditgroup -o edit -n /Local/Default -a ‘Domain Users’ -t group _lpadmin

 

If not part of domain you can grant printer admin rights to everyone:

/usr/sbin/dseditgroup -o edit -n /Local/Default -a everyone -t group _lpadmin

Wednesday, April 26, 2017

WiFi doesn’t work but it did yesterday on my MacBook air

 Many times I get this question. (The user didn’t change the WiFi configuration at home)

Usually the problem is caused by resent OS update.

Many times to fix it is to reset the NVRAM (here is more info about NVRAM: https://support.apple.com/en-us/HT204063)

  1. Shutdown your computer
  2. press the power button and hold these four keys until your computer makes the chaim sound twice.

OptionplusCommandplusPplusR

3. let the computer finish booting and test the WiFi connection

Thursday, June 20, 2013

Hackintosh

 Thumbs Up  Hackintosh

Custom hackintosh based on information from:

http://www.tonymacx86.com/user-builds/89…640-a.html

http://osx86.transformnews.com/how-to-in…-z77-ds3h/

http://www.tonymacx86.com/golden-builds/…850-a.html

My setup: MB: Z77-DS3H / CPU Core i7-3770K / 16GB RAM/ Video Nvidia GT 640/ HDD Samsung SSD 830/ TT case

very important step for upgrades is CC to USB hard drive copy and correct multibeast config.

Tuesday, June 14, 2011

Apple unlocked iPhone 4 in the US

 Apple unlocked iPhone 4 in the US

Will this happen on Wednesday 6/15/11 ?
update: Apple Store
unfortunately it is only GSM phone with the limitations listed below.More and more sources are reporting this info about factory unlocked iPhone.
Already many countries around the world sells unlocked iPhone and the closest one is Canada.The bad news would be high price ~ 600 additionally there is no information indicating if the phone would be both GSM and CDMA as well as no indication about including 1700mhz frequency which is missing for 3G usability on the t-mobile network in the US.The good news would be for the GSM version of the phone there is no need for contract on ATT, usable as a phone around the world without the hustle of software/ hardware unlock.http://www.zdnet.com/blog/btl/unlocked-i…ag=nl.e550
http://www.amazon.com/Apple-16GB-Quadban…769&sr=8-2
http://vrpc.com/att-vs-t-mobile-frequency/

Remove Mac Malware

 Bug  Remove Mac Malware (Fake Defender etc.)

Apples official removal steps: http://support.apple.com/kb/ht4650

Start spotlight (using keyboard “command” key + “space bar” key)
type Activity Monitor and press return.
After the Activity monitor opens only “My Processes” list is displayed and need to be changed to “All Processes” from the drop down menu in the middle/ upper right corner of the Activity monitor window.

Depending on the malware variant name you are removing you need to find it and select it under the “Process Name” column.
Once selected click the red stop sign “Quit Process” button which is located on the upper left corner of the Activity Monitor window and click on “Force Quit”

Open Finder and go to the Applications folder.
Again depending on the malware name locate it in the Applications folder and drag it to the trash. (make sure to empty the trash once done)

Aditionally you should remove the malware from the Login Item list which is located in the user accounts under System Preferences.

Using spotlight type accounts and press return.
Click on the Login Items button.
Select the coresponding malware name you are removing and click on the minus button located below the list of Login Items.

Make sure to install all available updates from the Software Updates under the apple menu.

Consider getting antivirus. Smile

Another good website with removal information: http://blog.macguy.info/2011/05/malware-on-mac.html

Friday, June 10, 2011

One mac many OSes

With a single mac computer there is no need to have multiple machines in order to boot windows, mac and linux.

Good place to start: http://lifehacker.com/5531037/how-to-tri…p-required

This solution is great if native OS is needed in order to use hardware to the full potential or if the software virtualization solution is not sufficient for other reasons.

For the software virtualization solution my choise would be:
1. open source VirtualBox
or paid solution :
2. Parallels

3. VMWARE Fusion

Thursday, June 9, 2011

Mac Antivirus

 Bug  Mac Antivirus

Even the macs get infected with malware.

To protect yourself good antivirus will help.
Here are two options to get you started:

Eset Cybersecurity for Mac
Price: 1 mac/ year 39.99

Sophos Anti-Virus for Mac Home Edition
Price: 1 mac/ year free

ClamXav
Price: 1 mac/ year free

Friday, June 3, 2011

How to Fix ADSelfService Plus SSL Path Errors (GoDaddy P7B Guide)

If you manage ManageEngine ADSelfService Plus on Windows Server 2022 and rely on GoDaddy for your SSL certificates, you have likely run ...