February 20

Macos Mojave Cannot Delete User Account

Solution: Use Terminal command for Directory Services to Delete a User Account

First, Create a new administrator account and log in as the new account, open terminal command.

1 list all users.            $ sudo dscl . list /Users
2 Delete the account command  sudo dscl . -delete /Users/Account_name

After the account is deleted, delete the user’s home folder located at /Macintosh HD/Users directory.

August 29

How to Fix Mac Sierra “network accounts are unavailable”

Problem: A mac computer running mac os sierra can not have domain user log into the system. It displays “Network accounts are unavailable” 

Solutions:

I have tried to follow Timothy’s blog to troubleshoot this problem, but none of them works.

One “trick way” to get this problem fixed is to manually create mobile account.

1  follow Timothy’s steps to rebind macs to Active Directory first.

2 open terminal, run the following command:

Sudo  /System/Library/CoreServices/ManagedClient.app/Contents/Resources/createmobileaccount –v –p samplpassword –n sampledomainusername

Here is more info about this command.

3 reboot Mac, this will fix the”network account are unavailable” problem. I tried this method on two macs, it all worked.

This command above doesn’t work  anymore. 

Here are the new steps,

1  rebind macs to Active Directory first.

2  log in as test1 user and create a mobile  account by press “create” button as show in the picture below.

Here is the link from apple

Please let me know if you find a working solution.

 

 

If none of above works, a temporary way to fix this issue (only if one user is logged into the Mac) is to

1 create a local account with the same domain user name and password.

2 a warning window will pop up, choose “use existing folder”

Since the new local account uses the domain user folder,  the domain user profiles (doc, pic, music,etc,)will be transferred  to this local account. When the domain user logs into this account, he/she is actually logging into the local account.

August 29

Create Mac Computer Mobile Account Manually

Open Terminal

Sudo /System/Library/CoreServices/ManagedClient.app/Contents/Resources/createmobileaccount –v –P –n networkusername

usage: createmobileaccount -n username [-h homepath] [-P | [-p password]] [-e] [-q] [[-x] | [-X]] [[-s] | [-S]] [-u syncURL] [-t urlPath] [-d] [-v]
-n username : user record name.
-h homepath : user home path; Default is “/Users/<username>”.
-p password : user password.
-P : prompt for user password. A user password is required to create a FileVault home.
-e encrypt : encrypt new home with FileVault.
-q quota : max size in bytes of FileVault home.
-x : create as external account on non-boot volumes. Default.
-X : create as mobile account account non-boot volumes.
-d : disable external account creation.
-s : set home sync on if home created.
-S : set home sync off if home created. Default.
-u syncURL : server target of home synchronization.
-t urlPath : additional path after syncURL.
-v : verbose output.
Examples:
createmobileaccount -n testname
createmobileaccount -v -P -n testname
createmobileaccount -vsxn jsmith -h /Volumes/HD3/jhome
createmobileaccount -vsxn jsmith -h /Volumes/HD3/jhome -u nfs:/server.apple.com/bigs/homes -t myusers/macos/jhome
Notes:
– createmobileaccount must run as root.
– If you do not specify a password, the account’s cached password will be created during the account’s first log in.

Category: MAC | LEAVE A COMMENT
July 6

Change a hijacked Safari Settings

Problems: A hijacked Safari, it opens pop-up windows, you can not close it.

Solution:

Quit the application. Force quit if necessary.

Open it by holding down the shift key and clicking its icon in the Dock. From the menu bar, select

Safari ▹ Preferences… ▹ Privacy ▹ Remove All Website Data

You might want to run a virus scan on the infected mac.

Category: MAC | LEAVE A COMMENT
August 31

PaperCut Install Steps for Mac Lab

  1. Make a master image
  2. Install the papercut client and printer drivers and delete all the printers
  3. Colone Image
  4. Delete Superduper!
  5. Rename Computer
  6. Disable WiFi Settings   (Go to System Preferences → Network, select your Wi-Fi service and click Advanced…. Enable Require administrator authorization to: Change networks.
  7. Join to Domain
  8. Add Printers
  9. Remove the default user account only keep Mac user account

For Mobile users, laptop users

Go to system preferences -> open Directory Utility -> make sure “create mobile account at login” is checked.

Category: MAC | LEAVE A COMMENT
August 30

Install PaperCut User Client on Mac OS X

Here is the original link

 

To install the User Client on a multi-user system:

  1. Start and log in to the Mac computer.Ensure the Mac computer is connected to the network.
  2. Open the Finder.
  3. From the Go menu, select Connect to Server
  4. Enter the pcclient share’s connection details, for example, smb://server_name/pcclient
  5. Enter password information if requested.
  6. Drag the PCClient (or legacy/PCClient on OS X 10.6 or lower) package to the local hard disk’s Applications folder. The copy process begins.
  7. In the Applications directory, Control+click the newly copied PCClient application.
  8. Select Open Package Contents.
  9. Navigate to Contents/Resources/.
  10. Double-click the install-login-hook.command script.
  11. Restart the system and verify the client starts on login.
Category: MAC | LEAVE A COMMENT