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
@echo off | |
rem | |
rem **************************************************************************** | |
rem | |
rem Copyright (c) Microsoft Corporation. All rights reserved. | |
rem This code is licensed under the Microsoft Public License. | |
rem THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF | |
rem ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY | |
rem IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR | |
rem PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. |
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
@echo off | |
setlocal | |
CD /d "%~dp0" | |
::Test If script has Admin Privileges/is elevated | |
REG QUERY "HKU\S-1-5-19" | |
IF %ERRORLEVEL% NEQ 0 ( | |
ECHO Please run this script as an administrator | |
pause | |
EXIT /B 1 |
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
$scriptDir = (split-path $myinvocation.mycommand.path -parent) | |
Set-Location $scriptDir | |
#check if the snapin was registered... | |
if ((Get-PSSnapin -Registered | ?{$_.Name -eq "MySnapin"}) -eq $null) { | |
Write-Host "SnapIn not installed." -ForegroundColor Red | |
return | |
} | |
if ((Get-PSSnapin | ?{$_.Name -eq "MySnapin"}) -eq $null) { |
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
REM http://msdn.microsoft.com/en-us/library/windowsazure/gg185932.aspx | |
REM MakeCert.exe -r -pe -n "CN=<service_namespace_name>.accesscontrol.windows.net" -sky exchange -ss my -len 2048 –e <1 year from today> | |
MakeCert.exe -r -pe -n "CN=<service_namespace_name>.accesscontrol.windows.net" -sky exchange -ss my -len 2048 |
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
$navOpenInBackgroundTab = 0x1000; | |
$ie = new-object -com InternetExplorer.Application | |
$ie.Navigate2("http://www.microsoft.com"); | |
$ie.Navigate2("http://www.google.com", $navOpenInBackgroundTab); | |
$ie.Visible = $true; |
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
write-host "========= Resetting Azure Comoute Emulator & Dev Storage... =========" | |
$CSRunFile = "C:\Program Files\Microsoft SDKs\Windows Azure\Emulator\csrun.exe" | |
$DSInitFile = "C:\Program Files\Microsoft SDKs\Windows Azure\Emulator\devstore\DSInit.exe" | |
& $CSRunFile @("/devstore:shutdown") | |
& $CSRunFile @("/devfabric:shutdown") | |
Start-Process $DSInitFile @("/ForceCreate", "/silent") -Wait | |
& $CSRunFile @("/devfabric:shutdown") | |
& $CSRunFile @("/devfabric:clean") | |
& $CSRunFile @("/devfabric:start") |
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
@echo off | |
REM Replace 'git pull –all' with your desired command and run this in the folder where you have all the TK repositories located. | |
for /f "delims=" %%d in ('dir /ad/b') do if exist %%d\.git ( | |
cd %%d | |
git pull --all | |
cd.. | |
) | |
pause |
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
@echo off | |
setlocal | |
CD /d "%~dp0" | |
SET SiteName=%1 | |
SET WebSitePath=%2 | |
SET SSLPort=%3 | |
"%ProgramFiles%\IIS Express\appcmd" add site /name:"%SiteName%" /physicalPath:"%WebSitePath%" /bindings:https/*:%SSLPort%:localhost |
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
@ECHO OFF | |
setlocal | |
cd /D %~dp0 | |
SET WebSiteProjectFilePath=%1 | |
SET WebSiteProdPath=C:\inetpub\%2 | |
SET IISAppPool=%2 | |
SET IISBinding=%3 | |
SET IISSiteName=%4 | |
SET SqlServer=%5 |
OlderNewer