Server 2012 PowerShell Commands

Proxy setzen

netsh winhttp set proxy proxy-server=”sta0394:8080″

Datei aus Internet herunterladen

$wc = New-Object System.Net.WebClient
$wc.DownloadFile($source, $destination)

Dism /get-wiminfo /wimfile::sources\install.wim

Dism /mount-wim /WimFile::\sources\install.wim /Index: /MountDir:c:\mountdir /readonly

Install GUI for Server Core

On a non-core installation, all the source files to add Roles and Features are copied to C:\Windows\winsxs where Windows automatically can access the files when you add Roles or Features. On a

Sources findet man auch in der ISO / CD im Unterordner \sources\sxs.

Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart –Source \\server\share\sources\sxs Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s