DEMOTE ActiveDirectory
Powershell

Demote Active Directory using PowerShell

Quick guide: How to demote domain controller by Powershell commands: The first step is to import module: import-module ActiveDirectory Uninstall -ADDSDomainController -ForceRemoval -DemoteOperationMasterRole   We have to confirm with Y and then the server will […]

Powersherll
Powershell

Export to CSV all servers in Domain

Powershell commands: Using this article you will be able to export all servers on your domain. I will use the following attributes: 1.OperatingSystem 2.OperatingSystemHotfix 3.OperatingSystemServicePack 4.OperatingSystemVersion The query script is: Get-ADComputer -Filter * -properties | Format-list […]

Powersherll
Powershell

Useful PowerShell commands

Basic powershell commands: Create new User:  new-aduser (name User) -path (details server and OU/CN) Create new Ou: New-ADorganizationalUnit (Name Ou) Create a new computer:   New-ADcomputer (name) Export information to CSV:  get-aduser -Filter * -properties * | export-csv […]