From Windows 2012 Server GUI to Core
Run following command in powershell:
#Uninstall-WindowsFeature Server-GUI-Mgmt-Infra, Server-Gui-Shell –restart
admin on January 22nd 2013 in IT, Windows Server
Run following command in powershell:
#Uninstall-WindowsFeature Server-GUI-Mgmt-Infra, Server-Gui-Shell –restart
admin on January 22nd 2013 in IT, Windows Server
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:
#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
admin on January 22nd 2013 in IT, Windows Server
Check in the registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names
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.
admin on June 24th 2010 in Windows Server
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:
$objOU=[ADSI]LDAP://OU=Users,DC=test,DC=com
$objUser = $objOU.Create("user", "CN=Test1 User")
$objUser.Put("sAMAccountName", "Test1.User")
$objUser.SetInfo()
$objUser = $objOU.Create("user", "CN=Test2 User")
$objUser.Put("sAMAccountName", "Test2.User")
$objUser.SetInfo()
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:
./NewUser.ps1
Get users samid:
dsquery user -name "*User" | dsget user -samid
admin on June 5th 2009 in Windows Server
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 |
Examples:
dsadd user “cn=Todd Test,ou=Users,dc=mist,dc=com” –samid ttest –upn ttest@mist.com
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
admin on June 4th 2009 in Windows Server
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
admin on May 28th 2009 in Windows Server
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.
admin on January 22nd 2009 in Windows Server
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.
admin on January 22nd 2009 in Windows Server