Programas
git config --global user.name "Tu nombre"
git config --global user.email "Tu correo"
$configSection = Get-IISConfigSection -SectionPath "system.applicationHost/sites" | |
$state = Get-IISConfigCollection $configSection | Get-IISConfigCollectionElement -ConfigAttribute @{"Name"="Default Web Site"} | Get-IISConfigAttributeValue -AttributeName "State" | |
if($state -eq "Started") | |
{ | |
Write-Host "Default Web Site esta iniciado" -ForegroundColor Green | |
}else | |
{ | |
Write-Host "Default Web Site no esta iniciado" -ForegroundColor Red | |
} |
$goodmodules = @( | |
"Web-Server", | |
"Web-WebServer", | |
"Web-Common-Http", | |
"Web-Default-Doc", | |
"Web-Default-Doc" | |
) | |
$badmodules = @( | |
"Web-DAV-Publishing", |
Write-Host "Instalacion IIS Server Script V1" | |
Import-Module servermanager | |
Remove-WindowsFeature Web-ASP, Web-CGI,Web-Ftp-Server | |
Add-WindowsFeature Web-WebServer, Web-Common-Http, Web-Asp-Net45, Web-Static-Content |
@echo off | |
REM Install IIS-WebServer | |
dism /online /get-featureinfo /featurename:IIS-WebServer | find "Deshabilitado" > nul | |
if %ERRORLEVEL% == 0 ( | |
echo "IIS Web Server no esta instalado. Instalando..." | |
dism /online /enable-feature /featurename:IIS-WebServer /all | |
) | |
REM Install IIS-ASPNET45 |
@echo off | |
dism /online /get-featureinfo /featurename:IIS-WebServer | find "Deshabilitado" > nul | |
if %ERRORLEVEL% == 0 ( | |
echo "IIS Web Server no esta instalado. Deberia ser instalado." | |
dism /online /enable-feature /featurename:IIS-WebServer /all | |
) |
public class Bootstrapper | |
{ | |
private IUnityContainer unityContainer; | |
public Bootstrapper() | |
{ | |
unityContainer = new UnityContainer(); | |
unityContainer.RegisterType<IPasswordCipher, Pbkdf2PasswordCipher>(new ContainerControlledLifetimeManager()); | |
unityContainer.RegisterType<IPasswordCipherFactory, Pbkdf2PasswordCipherFactory>(new ContainerControlledLifetimeManager()); | |
var cipherPassword = unityContainer.Resolve<IPasswordCipher>(); | |
var cipherPasswordFactory = unityContainer.Resolve<IPasswordCipherFactory>(); |