Waclaw Chrabaszcz
... there is no spoon ...

Server 2008

CMD – how to install apps from UNC path

There is a very old and useful command: pushd. Take a look how to use it.

pushd \\fileserver\AppShare\Installers\Software
change user /install
15186-AdbeRdr11000_en_US.exe /sPB /rs
"Firefox Setup 16.0.1.exe" -ms
change user /execute
popd



Shared resources and stopped services

A hypervisor is like a bank. It is offering inexistent CPU cycles and HDD I/Os up to 150% of real capacity. In normal situation VMs consumes about 20% of declared (maximum) RAM, CPU and disk IO, and business is running perfectly … until … Until everyone will come to bank and ask "I want my money back". Good example, short power outage or unexpected hypervisor reboot. Once the hypervisor will start it will try to power on all VM guests, and every of them will want "his money back". As a result we ......

SCCM 2012 SP1 – How to install Remote Desktop Service role within a Task Sequence

It is very simple: use the standard command line: and the command line will be: … but there must be one more thing …. and it is … ServerManagerCMD exit codes: Message Exit code Text string Success, no need to restart0Success: Installation succeeded.Success: Removal succeeded.Success, restart is required3010Success: Installation succeeded. A restart is required.Success: Removal succeeded. A restart is required.Argument not valid4ArgumentNotValid: Argument not valid {argument}ArgumentNotValid: Missing ......

A Windows 7 looking Terminal Server

Last time I posted as an old-school admin. You know what is wrong with old-schoolers ? Not old-schooled but rather outdated way of thinking. Many of us are still living in 80-thies and trying to develop Terminal Services environments in two colors and the highest possible compression level. What is another way of performance tuning? Let disable and remove everything, let will be nothing. Do you need a proof? Ask yourself did you remove the clock from the taskbar. If the answer is yes, you know what ......

How to install and configure DHCP server

Today I needed to create DHCP server ASAP in my LAB. Maybe this code is not so pretty … but it works. start /w ocsetup DHCPServersc config dhcpserver start= autonet start dhcpservernetsh dhcp add server %hostname% 192.168.1.100netsh dhcp server 192.168.1.100 add scope 192.168.1.0 255.255.255.0 Scope1 Scopevlan1netsh dhcp server 192.168.1.100 scope 192.168.1.0 add iprange 192.168.1.1 192.168.1.254netsh dhcp server 192.168.1.100 scope 192.168.1.0 add excluderange 192.168.1.100 192.168.1.150netsh dhcp ......

How to promote pure Server 2008 to Domain Controller

Yesterday I found something nice, but not obvious for me. You don't need to install and prepare anything just run: netsh interface ip set address "Local Area Connection" static 192.168.1.100 255.255.255.0 192.168.1.1netsh interface ip set dns "Local Area Connection" static 192.168.1.1dcpromo /answer:CREATE-TESTDOMAIN.txt and server will Install AD role, promote himself to DC, reboot and your domain is ready ! Sample answer file: [DCINSTALL]ReplicaOrNewDoma... ......

How to install Windows Server 2008/2012 roles/features using PowerShell

Let's make it faster … A simple PowerShell script Import-Module Servermanager Add-WindowsFeature Application-Server,Hyper-V,WAS -norestart And of course shutdown –r at the end List of roles and features: Role/Service or Main Feature R/S/F Name Installatiom command DHCP Server DHCP Server DHCP Print Services Print Server Print-Services Internet Printing Print-Internet LPD Service Print-LPD-Service Terminal Services Terminal Services Terminal-Services Terminal Server TS-Terminal-Server TS Licensing ......