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.


Monday, August 28, 2017

Exchange 2010 export user mailbox

 using this simple exchange powershell command:

New-MailboxExportRequest -Mailbox username -FilePath “\\server\share\username.pst”

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)

boot to PXE server on DELL Latitude 5480

 It is important to disable safe boot and enable legacy boot.

F2 key is to enter bios

F12 key is for one time boot menu

Tuesday, July 25, 2017

Find email address on exchange 2010 server

 

  1. Get-Recipient -Identity user@domain.com
    you can use this to find user associated with a specific email address 
  2. Get-Recipient -ANR user
    or by using -ANR (Ambiguous Name Resolution) to find using part of a user name

Friday, July 21, 2017

Purge disconnected mailbox on exchange 2010

One option is to wait for the mailbox to be purged automatically (default 30 days)

or to use Cmdlet:

Remove-StoreMailbox -Database <mailboxDatabaseName> -Identity <DisplayName> -Mailbox

Wednesday, June 28, 2017

Format HDD for exchange 2016 using ReFS

windows disk management:

  1. Initialize,GPT
  2. Format ReFS, 64K, Quick format
  3. assign drive letter: R

PowerShell: (to disable integrity streams)

  1. Format-Volume -DriveLetter r -FileSystem ReFS -AllocationUnitSize 65536 -SetIntegrityStreams $false

 

Links:
http://www.careexchange.in/creating-refs-volumes-for-exchange-20132016/

https://www.veeam.com/blog/advanced-refs-integration-coming-veeam-availability-suite.html

https://www.vladan.fr/veeam-and-refs-best-practices-and-benefits/

Tuesday, June 27, 2017

vSphere shrink hard drive on windows OS

  1. shrink HDD using windows disk management.
  2. connect to host using SSH
  3. turn off windows computer
  4. cd /vmfs/volumes/<datastore name>/<VM foldername>
  5. use cat “VM name.vmdk” (not the flat one) to make a note of the RW number#
  6. calculate new size 128GB= 128 * 1024 * 1024 * 1024 /512 = 268435456
  7. vi “VM name.vmdk” replace RW with the new number
  8. vi edit shift I is to edit text; ESC to end editing; exit and save changes shift :x; shift:q! is to exit without changes
  9. use vSphere to migrate or move VM to a temporary host (this will resize the HDD to the new size)
  10. be patient depending on the HDD size it can take some time
  11. verify size in temporary location using vSphere
  12. move back to original location

 

Links:

https://www.experts-exchange.com/articles/12938/HOW-TO-Shrink-a-VMware-Virtual-Machine-Disk-VMDK-in-15-minutes.html

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 ...