Skip to content

Instantly share code, notes, and snippets.

@prabirshrestha
Forked from ferventcoder/PcRepave.ps1
Created December 17, 2011 14:50
Show Gist options
  • Save prabirshrestha/1490409 to your computer and use it in GitHub Desktop.
Save prabirshrestha/1490409 to your computer and use it in GitHub Desktop.

Revisions

  1. prabirshrestha revised this gist Dec 19, 2011. 1 changed file with 48 additions and 1 deletion.
    49 changes: 48 additions & 1 deletion PcRepave.ps1
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,51 @@ cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:Win
    # .NET
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:netframework2"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:NETFramework35"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:NETFramework4"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:NETFramework4"

    # IIS
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:IIS7"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:ASPNET"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:BasicAuthentication"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:CGI"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:CustomLogging"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:DefaultDocument"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:DigestAuthentication"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:DirectoryBrowse"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:DynamicContentCompression"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:FTPExtensibility"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:FTPServer"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:HTTPErrors"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:HTTPLogging"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:HTTPRedirection"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:IIS6ManagementConsole"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:IIS6ScriptingTools"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:IIS6WPICompatibility"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:IIS7_ExtensionLessURLs"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:IISClientCertificateMappingAuthentication"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:IISManagementConsole"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:IISManagementScriptsAndTools"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:IPSecurity"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:ISAPIExtensions"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:ISAPIFilters "
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:LoggingTools"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:MetabaseAndIIS6Compatibility"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:NETExtensibility"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:ODBCLogging"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:RequestFiltering "
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:RequestMonitor"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:ServerSideIncludes"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:StaticContent"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:StaticContentCompression"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:Tracing"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:URLAuthorization"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:UrlRewrite2"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:WASConfigurationAPI"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:WASNetFxEnvironment"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:WASProcessModel "
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:WebDAV"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:WindowsAuthentication"

    # IIS Tools
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:RemoteManager"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:SEOToolkit"
  2. prabirshrestha revised this gist Dec 19, 2011. 1 changed file with 1 addition and 26 deletions.
    27 changes: 1 addition & 26 deletions PcRepave.ps1
    Original file line number Diff line number Diff line change
    @@ -4,29 +4,4 @@ cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:Win
    # .NET
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:netframework2"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:NETFramework35"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:NETFramework4"

    # IIS
    cinst IIS7 -source webpi
    cinst ASPNET -source webpi
    cinst BasicAuthentication -source webpi
    cinst DefaultDocument -source webpi
    cinst DigestAuthentication -source webpi
    cinst DirectoryBrowse -source webpi
    cinst HTTPErrors -source webpi
    cinst HTTPLogging -source webpi
    cinst HTTPRedirection -source webpi
    cinst IIS7_ExtensionLessURLs -source webpi
    cinst IISManagementConsole -source webpi
    cinst IPSecurity -source webpi
    cinst ISAPIExtensions -source webpi
    cinst ISAPIFilters -source webpi
    cinst LoggingTools -source webpi
    cinst MetabaseAndIIS6Compatibility -source webpi
    cinst NETExtensibility -source webpi
    cinst RequestFiltering -source webpi
    cinst RequestMonitor -source webpi
    cinst StaticContent -source webpi
    cinst StaticContentCompression -source webpi
    cinst Tracing -source webpi
    cinst WindowsAuthentication -source webpi
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:NETFramework4"
  3. prabirshrestha revised this gist Dec 19, 2011. 1 changed file with 0 additions and 13 deletions.
    13 changes: 0 additions & 13 deletions PcRepave.ps1
    Original file line number Diff line number Diff line change
    @@ -1,24 +1,11 @@
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:WindowsInstaller31"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:WindowsInstaller45"

    # Powershell
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:PowerShell"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:PowerShell2"

    # .NET
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:netframework2"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:NETFramework35"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:NETFramework4"

    # Chocolatey stuff
    iex ((new-object net.webclient).DownloadString("http://bit.ly/psChocInstall"))

    cinst adobereader
    cinst fiddler
    cinst filezilla
    cinst skype
    cinst paint.net

    # IIS
    cinst IIS7 -source webpi
    cinst ASPNET -source webpi
  4. prabirshrestha revised this gist Dec 17, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion PcRepave.ps1
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:Pow
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:PowerShell2"

    # .NET
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:NETFramework2"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:netframework2"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:NETFramework35"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:NETFramework4"

  5. prabirshrestha revised this gist Dec 17, 2011. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions PcRepave.ps1
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,14 @@
    cmd /C "WebpiCmd\WebpiCmd.exe /AcceptEula /SuppressReboot /Products:WindowsInstaller31"
    cmd /C "WebpiCmd\WebpiCmd.exe /AcceptEula /SuppressReboot /Products:WindowsInstaller45"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:WindowsInstaller31"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:WindowsInstaller45"

    # Powershell
    cmd /C "WebpiCmd\WebpiCmd.exe /AcceptEula /SuppressReboot /Products:PowerShell"
    cmd /C "WebpiCmd\WebpiCmd.exe /AcceptEula /SuppressReboot /Products:PowerShell2"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:PowerShell"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:PowerShell2"

    # .NET
    cmd /C "WebpiCmd\WebpiCmd.exe /AcceptEula /SuppressReboot /Products:NETFramework2"
    cmd /C "WebpiCmd\WebpiCmd.exe /AcceptEula /SuppressReboot /Products:NETFramework35"
    cmd /C "WebpiCmd\WebpiCmd.exe /AcceptEula /SuppressReboot /Products:NETFramework4"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:NETFramework2"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:NETFramework35"
    cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:NETFramework4"

    # Chocolatey stuff
    iex ((new-object net.webclient).DownloadString("http://bit.ly/psChocInstall"))
  6. prabirshrestha revised this gist Dec 17, 2011. 1 changed file with 7 additions and 19 deletions.
    26 changes: 7 additions & 19 deletions PcRepave.ps1
    Original file line number Diff line number Diff line change
    @@ -1,35 +1,23 @@
    cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:WindowsInstaller31"
    cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:WindowsInstaller45"
    cmd /C "WebpiCmd\WebpiCmd.exe /AcceptEula /SuppressReboot /Products:WindowsInstaller31"
    cmd /C "WebpiCmd\WebpiCmd.exe /AcceptEula /SuppressReboot /Products:WindowsInstaller45"

    # Powershell
    cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:PowerShell"
    cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:PowerShell2"
    cmd /C "WebpiCmd\WebpiCmd.exe /AcceptEula /SuppressReboot /Products:PowerShell"
    cmd /C "WebpiCmd\WebpiCmd.exe /AcceptEula /SuppressReboot /Products:PowerShell2"

    # .NET
    cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:NETFramework20SP2"
    cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:NETFramework35"
    cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:NETFramework4"
    cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:JUNEAUNETFX4"

    # Ninite stuff
    cmd /C "ninite\ninite.exe"
    cmd /C "WebpiCmd\WebpiCmd.exe /AcceptEula /SuppressReboot /Products:NETFramework2"
    cmd /C "WebpiCmd\WebpiCmd.exe /AcceptEula /SuppressReboot /Products:NETFramework35"
    cmd /C "WebpiCmd\WebpiCmd.exe /AcceptEula /SuppressReboot /Products:NETFramework4"

    # Chocolatey stuff
    iex ((new-object net.webclient).DownloadString("http://bit.ly/psChocInstall"))

    cinst windowstelnet
    cinst virtualclonedrive
    cinst sysinternals
    cinst notepadplusplus
    cinst adobereader
    cinst msysgit
    cinst fiddler
    cinst filezilla
    cinst skype
    cinst paint.net
    cinst ccleaner
    cinst tortoisesvn
    cinst tortoisehg

    # IIS
    cinst IIS7 -source webpi
  7. @ferventcoder ferventcoder renamed this gist Nov 28, 2011. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  8. @ferventcoder ferventcoder created this gist Nov 28, 2011.
    57 changes: 57 additions & 0 deletions ChocolateyRepave.ps1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:WindowsInstaller31"
    cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:WindowsInstaller45"

    # Powershell
    cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:PowerShell"
    cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:PowerShell2"

    # .NET
    cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:NETFramework20SP2"
    cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:NETFramework35"
    cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:NETFramework4"
    cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:JUNEAUNETFX4"

    # Ninite stuff
    cmd /C "ninite\ninite.exe"

    # Chocolatey stuff
    iex ((new-object net.webclient).DownloadString("http://bit.ly/psChocInstall"))

    cinst windowstelnet
    cinst virtualclonedrive
    cinst sysinternals
    cinst notepadplusplus
    cinst adobereader
    cinst msysgit
    cinst fiddler
    cinst filezilla
    cinst skype
    cinst paint.net
    cinst ccleaner
    cinst tortoisesvn
    cinst tortoisehg

    # IIS
    cinst IIS7 -source webpi
    cinst ASPNET -source webpi
    cinst BasicAuthentication -source webpi
    cinst DefaultDocument -source webpi
    cinst DigestAuthentication -source webpi
    cinst DirectoryBrowse -source webpi
    cinst HTTPErrors -source webpi
    cinst HTTPLogging -source webpi
    cinst HTTPRedirection -source webpi
    cinst IIS7_ExtensionLessURLs -source webpi
    cinst IISManagementConsole -source webpi
    cinst IPSecurity -source webpi
    cinst ISAPIExtensions -source webpi
    cinst ISAPIFilters -source webpi
    cinst LoggingTools -source webpi
    cinst MetabaseAndIIS6Compatibility -source webpi
    cinst NETExtensibility -source webpi
    cinst RequestFiltering -source webpi
    cinst RequestMonitor -source webpi
    cinst StaticContent -source webpi
    cinst StaticContentCompression -source webpi
    cinst Tracing -source webpi
    cinst WindowsAuthentication -source webpi