Author: admin

Prompt for a computer asset name & move a computer to a new OU in Active Directory using powershell.

Prompt for a computer asset name & move a computer to a new OU in Active Directory using powershell. Change the AD domain and Local Admins group to your chosen target. $name = Read-Host -Prompt ‘Enter the users asset tag that you want to move in AD’ Get-adcomputer $name | Move-ADObject -TargetPath “OU=Local Admins,OU=Devices,DC=blog-adigraham,DC=co,DC=uk”

Read More →

Reset Mysql root password in Mysql Server 5.7

MySQL 5.7: 0) shut down service mysql57 1) go to C:\ProgramData\MySQL\MySQL Server 5.7, note that ProgramData is a hidden folder 2) looking for file my.ini, open it and add one line skip-grant-tables below [mysqld],save [mysqld] skip-grant-tables 3) start service mysql57 4) by right, you can access the database, run mysql 5) and use the query […]

Read More →
Follow

Get every new post on this blog delivered to your Inbox.

Join other followers: