From Windows 2012 Server GUI to Core

Run following command in powershell:
#Uninstall-WindowsFeature Server-GUI-Mgmt-Infra, Server-Gui-Shell –restart

No Comments »

admin on January 22nd 2013 in IT, Windows Server

From Windows 2012 Server Core to GUI

By default Windows 2012 Server is installed without a GUI (Graphic User Interface). But compared to Windows 2008 R2, it can be added later with following command:
#Install-WindowsFeature Server-Gui-Mgmt-Infra, Server-Gui-Shell

Unfortunately this command did not work for me because it can’t find the source. So you need to put/mount Windows 2012 Server CD first and after that run following commands:
1. Create a folder to mount Server WIM.
#mkdir C:\MountWim\
2.  Get the index number of the GUI Server image.
#dism /get-wiminfo /wimfile:d:\sources\install.wim
3. Mount the WIM for the installed Server with GUI. In my case it was DataCenter GUI which had the index number 4.
#dism /mount-wim /wimfile: d:\sources\install.wim /Index:4 /mountdir:C:\MountWim\ /readonly
4. Run powershell:
5. Start Installation:
#Install-WindowsFeature Server-Gui-Mgmt-Infra, Server-Gui-Shell –restart –source C:\MountWim\Windows\WinSxS

Or you can mount straight away the Wim-File:
1. #Install-WindowsFeature Server-Gui-Mgmt-Infra, Server-Gui-Shell –restart –source wim:d\sources\install.wim:4

No Comments »

admin on January 22nd 2013 in IT, Windows Server

How can I determine SQL Server INstance Name?

Check in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names

No Comments »

admin on November 28th 2012 in IT, MSSQL

How to get the Windows 7 GPO settings on a Windows 2008 Server

It is actually very easy to get Windows 7 GPO Settings on a Windows 2008 Server. You just need to copy the %systemroot%\PolicyDefinitions from your Windows 7 machine into \\YOURSERVER\C$\Windows\SYSVOL\YOURDOMAIN\Policies\PolicyDefinitions on your server. After that you start your policy editor and you will find it under the section administrative templates.

No Comments »

admin on June 24th 2010 in Windows Server

Create a user with Windows PowerShell

Windows PowerShell is a new feature which comes with Windows 2008 server. It need to have the .Net Framework installed and can also be installed on Windows 2003 Server, Windows XP-Vista.

Create a textfile “NewUser.ps1” with following content:

$objUser = $objOU.Create("user", "CN=Test1 User")
$objUser.Put("sAMAccountName", "Test1.User")

$objUser = $objOU.Create("user", "CN=Test2 User")
$objUser.Put("sAMAccountName", "Test2.User")

Important: To run this scripts in PowerShell you need to first active it:
set-executionpolicy remotesigned

Go into the directory where the script is located and run it like this:

Get users samid:
dsquery user -name "*User" | dsget user -samid

No Comments »

admin on June 5th 2009 in Windows Server

Active Directory Commands

dsadd Creates and object in the directory
dsget Gets the attributes of an object
dsmod Changes the attributes of an object
dsmove Moves and object
dsrm Removes and object or container with all objects
dsquery Runs a query
csvde Import/Export Objects from/into a csv file
ldifde Import/Export (Lightweight Directory Access Data Interchange Format)
dsa.msc Active Directory Console

dsadd user “cn=Todd Test,ou=Users,dc=mist,dc=com” –samid ttest –upn
dsadd group “CN=Marketing,OU-Groups,DC=mist,DC=com” –samid Marketing –secgrp yes –scope g
dsget group “CN=Marketing,OU-Groups,DC=mist,DC=com” –members -expand
dsget user “cn=Todd Test,ou=Users,dc=mist,dc=com”
dsrm “cn=Todd Test,ou=Users,dc=mist,dc=com”
csvde –i –f NewUsers.txt
ldifde -i -f NewUsers.ldf

No Comments »

admin on June 4th 2009 in Windows Server

Check if WSUS GPO is applied

The easiest way to find out if the group policy is applied and really changed the right settings you can check it in registry.

Go to: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate

No Comments »

admin on May 28th 2009 in Windows Server

Install VMWare Tools on Windows 2008 Server Core

I just installed Win2k8 Core on WMWare and tried to install VMWare as usual from the menu: VM\Install VMWare Tools… but nothing happened.

So I goggled and the solution is actually very easy:
1. Filemenu: “VM\Install VMWare Tools”
2. Command prompt run: “D:\Setup.exe”

That’s it…. have fun.

No Comments »

admin on January 22nd 2009 in Windows Server

Win2k8 – Relaunch Initial Configuration Task

After a fresh installation of Windows 2008 Server you have the handy “Initial Configurations Task” Wizard. If you have chosen “Do not show this window at logon” it won’t appear anymore. So how can you relaunch it?

Just run “oobe” from the prompt.

No Comments »

admin on January 22nd 2009 in Windows Server

Check out new movies online website. Download and buy movies now.