Sprawdzenie wersji schematu Active Directory

Powershell: Dsquery: AdsiEdit.msc: Wersje: Windows Server AD Version Schema objectVersion Value Windows Server 2022 88 Windows Server 2019 88 Windows Server 2016 87 Windows Server 2012 R2 69 Windows Server 2012 56 Windows Server 2008 R2 47 Windows Server 2008 44 Windows Server 2003 R2 31 Windows Server 2003 30 Windows Server 2000 13

Czytaj dalej

Add a user to the local Administrators group

In local computer $user = „ComputerName/Morgan”; $group = „Administrators”; $groupObj =[ADSI]”WinNT://./$group,group” $userObj = [ADSI]”WinNT://$user,user” $groupObj.Add($userObj.Path) Add a domain user account to the local Administrators group on a Remote computer

Czytaj dalej

Jak zainstalować MySQL na CentOS

Po instalacji wystartowanie serwisu: Sprawdzenie statusu: Włączenie aby MySQL startował po bootowaniu: Dodatkowe czynności: Zabezpieczanie MySQL: Securing the MySQL server deployment. Connecting to MySQL using a blank password. VALIDATE PASSWORD COMPONENT can be used to test passwords and improve security. It checks the strength of password and allows the users to set only those passwords…

Czytaj dalej

Ostatni BootTime serwerów

$servers=Get-ADComputer -Filter {name -like „server*”} | Select-Object name foreach( $s in $servers){ Get-WmiObject -ComputerName $s.name win32_operatingsystem | select csname, @{LABEL=’OstatniBootTime’ ;EXPRESSION={$_.ConverttoDateTime($_.lastbootuptime)}} }

Czytaj dalej