Skip to content

Instantly share code, notes, and snippets.

View JPBlanc's full-sized avatar

JPBlanc JPBlanc

  • Silogix
  • France
View GitHub Profile
中文
英文
日文
static void SlxPatchTeg(bool blAdd)
{
try
{
/* Get the ID of the current user (aka Amin)
*/
WindowsIdentity id = WindowsIdentity.GetCurrent();
/* Add the TakeOwnership Privilege
@JPBlanc
JPBlanc / gist:1082221
Created July 14, 2011 10:13
Retreive the FSMO roles from a Domain Controler usind ADSI
'==========================================================================
'
' NAME: fSMORoleOwner.vbs
'
' AUTHOR: JPB , Silogix
' DATE : 13/07/2011
'
' COMMENT: This script allow to retreive the five FSMO Role Owners
'
'==========================================================================