Simple but useful, you will find below the steps on how to change the MySQL datadir. It is based on the following information (you have to adapt them according to your environment) : current datadir : /var/lib/mysql new datadir :
Configure proFTPd with TLS and IP address restriction
Secure your WordPress updates
Automatic pictures resizing with Imagemagick
Remove group membership from multiple domain
The Powershell cmdlet Remove-ADGroupMember have a problem to remove group membership in this case : user account from Domain1.domain.local group from Domain2.domain.local If you run the command : Remove-ADGroupMember -Identity “CN=GroupName,OU=Groups,DC=Domain2,DC=domain,DC=local” -Members “CN=UserName,OU=Users,DC=Domain1,DC=domain,DC=local” -confirm:$false -server “dc01.Domain1.domain.local” You will have the
Show top IP addresses Accessing, Spamming or DoSing your website
Windows : Can’t delete a folder with a trailing space
Remove all group memberships from a user
This script can remove all group memberships from an Active Directory user, except the “Domain Users” group import-module activedirectory $DistinguishedName = “cn=youruseraccount,ou=users,dc=domain,dc=local” (Get-ADUser $DistinguishedName -Properties MemberOf | Select-Object MemberOf).MemberOf | % { Remove-ADGroupMember -Identity $_ -Members $DistinguishedName -confirm:$false } My
Set a random password to an Active Directory user
This script use the function GET-Temppassword to set a random password to a user account. You can customize this function with your own criteria import-module activedirectory Function GET-Temppassword() { $chars_min = [Char[]]”abcdefghijklmnopqrstuvwxyz” $chars_maj = [Char[]]”ABCDEFGHIJKLMNOPQRSTUVWXYZ” $chars_num = [Char[]]”0123456789″ $x_min =