This file contains 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
Function Test-ADAuthentication { | |
param($username,$password) | |
(new-object directoryservices.directoryentry "",$username,$password).psbase.name -ne $null | |
} | |
Test-ADAuthentication "DOMAIN\username" "password" |
This file contains 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
#!/bin/bash | |
#dotnet | |
sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list' | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893 | |
apt-get update | |
apt-get install dotnet-dev-1.0.0-preview2.1-003177 | |
#vscode | |
wget "https://go.microsoft.com/fwlink/?LinkID=760868" -qO /tmp/vscode.deb && dpkg -i /tmp/vscode.deb |