Mark Mintoff My superpower is common sense

26Oct/120

C# Programmatic Active Directory Impersonation

Recently, a requirement involving shared folders forced me to dabble into Active Directory account impersonation.

The following is what I ended up doing:

Usage is pretty simple:

And you're good to go. I managed to browse through the shared folder programmatically and copy over the files needed for my ETL.

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.