type
status
date
slug
summary
tags
category
icon
password
Status
Due date
Sep 18, 2023 03:40 AM

RSAT

Remote Server Administration Tool。安裝完成之後不需重開機,Active Directory Module 裡的 Cmdlet 在被使用時會自動被 PowerShell 載入

adsisearcher

Typing [adsiSearcher] in the Windows PowerShell console, and pressing enter tells you the type accelerator is recognized, and that it will work, but it does not create an instance of the class – i.e., there is no constructor. Piping the type accelerator to the format-list cmdlet and asking for all the properties to be returned, supplies lots of cool information about the class, but does not return the information we saw when we used the new-object cmdlet to create the DirectorySearcher class. The details returned via the format-list cmdlet are seen here.

Test-ADUser

Get-ForestDomains

【Full script】Remove user from specific AD group

💡
上述script尚未完整,還需判斷AD ROLE及確認執行的權限

Reference

  • ADSI
  • Enums
  • Pipelined input into function
  • LDAP Filter
  • without ADSI
  • RSAT
  • Accelerators
  • DC Role
  • Activity Directory Server
How to Scan for open portsTryhackme - Blaster