This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
中文 | |
英文 | |
日文 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void SlxPatchTeg(bool blAdd) | |
{ | |
try | |
{ | |
/* Get the ID of the current user (aka Amin) | |
*/ | |
WindowsIdentity id = WindowsIdentity.GetCurrent(); | |
/* Add the TakeOwnership Privilege |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'========================================================================== | |
' | |
' NAME: fSMORoleOwner.vbs | |
' | |
' AUTHOR: JPB , Silogix | |
' DATE : 13/07/2011 | |
' | |
' COMMENT: This script allow to retreive the five FSMO Role Owners | |
' | |
'========================================================================== |