Benutzer-Werkzeuge

Webseiten-Werkzeuge


windows:installation

**Dies ist eine alte Version des Dokuments!**

Was sollte ich alles machen, wenn ich Windows neu installiere?

Programme installieren

Erstellt einen Installer, der automatisch die neusten Versionen der ausgewählten Programme erzeugt: http://ninite.com/

Windows

  • Microsoft Management Console 3.0 (schon enthalten in SP3)
    • Verknüpfung posh zur PowerShell anlegen
    • WindowsPowerShell\profile.ps1 unter "Eigene Dateien" anlegen
      Function prompt 
      {
      	$windowsIdentity = [System.Security.Principal.WindowsIdentity]::GetCurrent()
      	$windowsPrincipal = new-object 'System.Security.Principal.WindowsPrincipal' $windowsIdentity
      	$windowTitle = "$(get-location) - $env:Username - PowerShell"
      	[bool] $isAdministrator = $windowsPrincipal.IsInRole("Administratoren") -eq 1
      	if ($windowTitle -ne $host.ui.rawui.windowtitle) 
      	{
      		if ($isAdministrator) 
      		{
      			$host.UI.RawUI.WindowTitle = $windowTitle + " [ADMINISTRATOR]"
      		} 
      		else 
      		{
      			$host.UI.RawUI.WindowTitle = $windowTitle
      		}
      	}
      	
      	write-host
      	Write-Host "$([DateTime]::Now.ToString('HH:mm:ss'))" -nonewline  
      	Write-Host ' ' -nonewline
      	Write-Host ("$(get-location)")
      	
      	'> '
      }
      
      Function Display-EnvironmentVariable {
      	Get-ChildItem ENV: | sort-object -property Name | format-table -autosize
      }
      
      Function RAlias {
      	param([string] $command = $(throw 'Enter the command to search the alias for'))
      	alias | where {$_.Definition -eq "$command"}
      }
      
      set-alias dev Display-EnvironmentVariable
      set-alias l ls
      set-location c:\
    • PowerShell-SpeedUp
      Set-Alias ngen (Join-Path ([System.Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory()) ngen.exe)
      [AppDomain]::CurrentDomain.GetAssemblies() |
          sort {Split-path $_.location -leaf} |
          %{
              $Name = (Split-Path $_.location -leaf)
              if ([System.Runtime.InteropServices.RuntimeEnvironment]::FromGlobalAccessCache($_))
              {
                  Write-Host "Already GACed: $Name"
              }else
              {
                  Write-Host -ForegroundColor Yellow "NGENing      : $Name"
                  ngen $_.location | %{"`t$_"}
               }
            }

Basis-Tools

Sicherheit

Netzwerk / Internet

windows/installation.1333571905.txt.gz · Zuletzt geändert: 2014-04-05 11:42 (Externe Bearbeitung)