Archive for August, 2017

Depending on the information stored for the users in the AD, there is two ways this can be accomplished: 1.Set email field and default email in ProxyAddresses according to UserPrincipalName: $users = Get-ADUser -Filter * -properties EmailAddress -SearchBase "ou=Test,ou=Departments,dc=DOMAIN,dc=COM" foreach ($user in $users) { $useremail = $user.UserPrincipalName Set-ADUser $user -Add @{'ProxyAddresses' = ("SMTP:"+$useremail )} -EmailAddress $useremail } 2. Set default email in ProxyAddresses Read more [...]

bash: wp: command not found

| August 4th, 2017

After installing WP-CLI as in here: http://wp-cli.org/

executing wp gives the error:

bash: wp: command not found

For me the problem was that the system didn’t have the directory /usr/local/bin in the PATH, to add it:

 

PATH=$PATH:/usr/local/bin

export PATH

 

wp should work now if installed correctly