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
$usernameToFind = "ITARI\Administrator" | |
Add-Type -AssemblyName System.DirectoryServices.AccountManagement | |
$contextType = [System.DirectoryServices.AccountManagement.ContextType]::Domain | |
$context = New-Object System.DirectoryServices.AccountManagement.PrincipalContext -argumentlist ($contextType) | |
$user = [System.DirectoryServices.AccountManagement.UserPrincipal]::FindByIdentity($context, $usernameToFind) | |
Write-Output $user |
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
# Raven Export Script | |
# You'll need a copy of Raven.Abstractions.dll, Raven.Client.Lightweight.dll, | |
# Microsoft.CompilerServices.AsyncTargetingPack.Net4.dll, and Raven.Smuggler.exe in a lib folder | |
# under the location of this script. You can find them in the folder where Octopus Deploy is installed. | |
[CmdletBinding()] | |
Param( | |
[Parameter(Mandatory=$false,Position=1)] | |
[string]$exportPath = ".\dump.raven", |