Skip to main content

Posts

Showing posts from 2024

Verification of outbound replicaton failed. Error reading the NTDS settings on replication source domain

  DC userAccountControl 0x81000 Cả bài viết dài, chỉ cần quan tâm đúng 1 dòng highlight dưới cùng là tháo gỡ nút thắt cả hệ thống Got a question from a friend about a weird problem when trying to promote a 2012R2 Domain Controller. The error is in the prereq test before promoting: Verification of outbound replicaton failed. Error reading the NTDS settings on replication source domain controller 2k3dc.secid.local. Domain Controller data not found for the specified Active Directory domain controller. And I also got the info that the 2k3DC only was a member of the Domain Users group. That’s not easy to change in the ADUC tool, Member Of Tab in the computer object. Something weird was going on. From DCDIAG.EXE I got the following info: Starting test: MachineAccount The account 2K3DC is not a DC account.  It cannot replicate. Warning:  Attribute userAccountControl of 2K3DC is: 0x81000 = ( UF_WORKSTATION_TRUST_ACCOUNT | UF_TRUSTED_FOR_DELEGATION ) Typical se...

REMOVE EMAIL SPAM HÀNG LOẠT

  REMOVE SPAM EMAIL TRONG MAILBOX CỦA USER Source: https://community.spiceworks.com/t/deleting-an-email-from-mailboxes-via-powershell/787336 New-ComplianceSearch -Name Remove Spam Mail" -ExchangeLocation all -ContentMatchQuery "ABC@XYZ.COM" Start-ComplianceSearch -Identity Remove Spam Mail" -verbose New-ComplianceSearchAction -SearchName "TTT Remove Spam Mail" -Purge -PurgeType SoftDelete -Force -Confirm:$false -Verbose

PSEXEC RUN LOCAL SCRIPT ON REMOTE COMPUTER

SOURCE: https://theitbros.com/using-psexec-to-run-commands-remotely/  The   -c   parameter allows you to specify the name of a local file you want to copy and run on a remote computer. For example: psexec \\lon-srv01 -c c:\ps\myscript.bat C:\>.\psexec \\acco11 -c c:\changekavserver.bat PsExec allows you to run the command on multiple remote computers simultaneously. You can specify the list of remote computers separated by commas: psexec \\PC1,PC2,PC3,PC33 "ipconfig /all" Or save a list of computers to a text file (one hostname on each line), and then specify the path to that file: psexec @c:\ps\computer_list.txt ipconfig To redirect the results of running commands on remote computers to a text log file: PsExec @C:\Tools\computer_list.txt CMD /C "hostname & ipconfig" >> C:\Tools\log2.txt

CÀI ĐẶT DOCSGPT

 https://dev.to/rutamhere/deploying-docsgpt-on-digitalocean-droplet-50ea Deploying DocsGPT Now you need to follow the steps given below to successfully deploy DocsGPT on your cloud instance. Step 1:  Clone the DocsGPT repository to your instance. Use the command given below to do so. git clone https://github.com/arc53/DocsGPT.git Step 2:  Update the package indexes of your Ubuntu system with the command given below. sudo apt update Step 3:  DocsGPT needs containerization tools like  docker  and  docker-compose  to run. You can install them with the commands given below. Press  Y  when prompted to proceed with the installation. sudo apt install docker docker-compose Step 4:  The  .env  variables for DocsGPT need to be set. You can do so by going to the DocsGPT folder and adding a  .env  file. cd DocsGPT/ nano .env Save the following values in the  .env  file. LLM_NAME = DocsGPT-7b ( You can choose any a...