CSV файл:

GivenName,Surname,Name,SamAccountNAme,UserPrincipalName,Department,Path,Enabled,Password,PasswordNeverExpires
User,Test1,UserTest1,UserTest1,UserTest1@domain.exonix.ru,IT,"OU=Test,DC=DOMAIN,DC=EXONIX,DC=RU",$True,P@ssw0rd,$True

Import-Csv C:\Users\user\Desktop\users.csv | % {New-ADUser -GivenName $_.GivenName -Surname $_.Surname -Name $_.Name -SamAccountName $_.SamAccountName -UserPrincipalName $_.UserPrincipalName -Department $_.Department -Path $_.Path -Enabled $True -AccountPassword (ConvertTo-SecureString $_.Password -AsPlainText -force) -PasswordNeverExpires $True}

 Аудит входа по RDP:

Get-WinEvent -FilterHashtable @{Logname="Security";starttime="2017-05-31";id=4624} | where {$_.Properties[17].Value -eq "C:\Windows\System32\winlogon.exe"} | Foreach {$_.TimeCreated,$_.Properties[5].Value,$_.Properties[18].Value}
Add-KdsRootKey –EffectiveImmediately
New-ADServiceAccount –Name TestSQLMSA -RestrictToSingleComputer
Add-ADComputerServiceAccount -Identity SCCM1 -ServiceAccount TestSQLMSA

Install-ADServiceAccount TestSQLMSA