PROTECT IP / SOPA Breaks The Internet from Fight for the Future on Vimeo.
Why should I run server core?
It is a minimal Windows Installation that can run specific server roles. This reduces the attack surface on the server. Windows 2008 and 2008 R2 core consumes less memory and CPU than a “regular” Windows 2008 installation does. And yes you can install antivirus software and other programs as long as you can install them silent.
How do I configure the server?
In 2008 R2 you can use the command sconfig to do basic configuration. This is the easiest way to configure the server.

In the 2008 version of server core you need to configure the server using script or third party software.
I like Core Configuration Console (CCC) that can be downloaded from http://www.nullsession.com/downloads
If you don’t want to use CCC you have some commands below to configure your server.
Configure Static IP address:
The following command configures the interface named Local Area Connection with the static IP address 192.168.0.19, the subnet mask of 255.255.255.0, and a default gateway of 192.168.0.1:
“Local Area Connection” is the name of the network connection that you want to configure.
To find the name of your connection you can use ipconfig.
netsh interface ipv4 set address name=”Local Area Connection” static 192.168.0.19 255.255.255.0 192.168.0.1
netsh interface ipv4 add dnsserver name=”Local Area Connection” address=192.168.0.11
netsh interface ipv4 add dnsserver name=”Local Area Connection” address=192.168.0.19 index=2
Disable Firewall:
netsh advfirewall set AllProfiles state off
Rename Server:
To find the current name of your server type hostname.
netdom renamecomputer server_name /newname:dc02
Restart Server:
shutdown /r /t 0
Join domain:
netdom join /d:compit.local dc02 /ud:compit\administrator /pd:password
Now when you have configured your server it’s time to start adding roles that you want on your server.
This script is good when you want to know who is using a specific computer and the model of the computer. The description is updated every time a user logs on to a computer.
To use the script create a new GPO or use an existing GPO and add the VB script as a logon script.
Link the GPO to the computers OU.
For the users to be able to update the description field you need to delegate the control to the users to do so. Follow the guide below.
You can download the script from this link.
http://www.compit.se/download/script/SetCompDesc.zip
Delegate control to users to write in the computer description field
Right click on the OU that you want to give the users the right to update the description field.
Choose the Delegate Control…





Now you have Delegated the rights to the users to update the description field in the OU that you selected.
Everybody that is working with deployment loves drivers and new computer models.
One good thing is that more and more PC manufacture is making it easier to handle drivers for their models.
To manage drivers for HP you can use HP SoftPaq Download Manager and HP System Software Manager.
* SoftPaqs = Applications and Drivers for HP Computers and Servers.
How does SDM and SSM work together?
HP SoftPaq Download Manager (SDM) – Lets you easy download drivers from HP.
http://www.hp.com/go/SDM

HP System Software Manager (SSM)– Installs the drivers on your computer during the Task Sequences.
http://www.hp.com/go/SSM

Configure SSM.
To run and setup SSM in admin mode, perform the following steps:
Configure SSM for use with a Task Sequences.



When HP SSM is executed it will check in the drivers folder for missing drivers and applications for the machine.
For more information you can read the following white papers from HP.
http://www.compit.se/download/deployment/system_software_mgr.pdf
http://www.compit.se/download/deployment/HP_drivers_MDT_SDM_SSM.pdf
I know that ISA 2004 is a really old but still there is a lot of them out there.
I came to a customer that had problems to get the compression from their webserver
to work.
They had a web publishing rule that published their web pages to the internet.
The web server was configured to use compression but it never did.
The reason for that is that the webserver doesn’t receives the accept-encoding header
from the browser and assumes that the browser doesn’t support compression.
To get this to work you have to change the web publishing rule to send accept encoding header
this is set to false by default in ISA 2004 and you can’t change this in the GUI.
If you change this to TRUE it will work for you. The way to change it is buy using a script below.
ruleName = WScript.Arguments(0)
Set FW = CreateObject (“FPC.Root”)
Set myRule = FW.GetContainingArray.ArrayPolicy.PolicyRules.Item (ruleName)
myRule.WebPublishingProperties.SendAcceptEncodingHeader = True
myRule.Save
WScript.Echo “Settings changed for ” & ruleName
Run it from the commandline:
WScript yourScriptName.vbs YourRule-Name

New customer New problem do I need to say more?
Starting test: MachineAccount
Warning: Attribute userAccountControl of DC01 is:
0×82020 = ( PASSWD_NOTREQD | SERVER_TRUST_ACCOUNT | TRUSTED_FOR_DELEGATION )
Typical setting for a DC is
0×82000 = ( SERVER_TRUST_ACCOUNT | TRUSTED_FOR_DELEGATION )
This may be affecting replication?
……………………. DC01 passed test MachineAccount
To change the value to the correct value (532480) open ADSI Edit and go to OU=Domain Controllers and choose Properties on the Domain Controller where you have the problem.

In the Attribute Editor look for userAccountControl and click on Edit. Change the Value to 532480 with is the same as 0×82000 and click OK twice.


Run a new DCdiag to check that the problem is solved.
Starting test: MachineAccount
……………………. DC01 passed test MachineAccount
When running DCdiag on an Windows 2008 server i received the error:
Message 0×621 not found.
Got error while checking LDAP and RPC connectivity. Please check your
firewall settings.
……………………. DC01 failed test Connectivity
After checking my firewall I when ‘t on to Google to ask, I found some suggestions to check the cables, switch and network teaming. After dissolving the network teaming on the server the server passed the connectivity test, another solution could be to update to the latest Nic teaming software.
Testing server: Default-First-Site-Name\DC01
Starting test: Connectivity
……………………. DC01 passed test Connectivity
Microsoft has now released a patch to correct this problem. You can find more info here http://support.microsoft.com/kb/978387
What is the easy way to migrate computers to a new domain? Running around to every single computer or have a computer start up script do the job for you? Since I get enough training on the gym I decided to go with the script.
My mission was to migrate 120 client computers running Windows XP, Windows 7 and Vista. The computers where going to get new computer names and the users was getting new logon names.
The user was going to keep the old profile with the new username.
I used ForensIT User Profile Wizard and a GPO to migrate the computers. You can read more about ForensIT here http://www.forensit.com/domain-migration.html
When I bought it the price was 2$ / PC so it was worth every cent.
After the program is installed you start User Profile Wizard Deployment Kit and just follow the wizard and set the settings that you want to use.









By default the log file is saved on the client computer, I changed it to a server share where all computers have write access. So I could see witch computers was migrated.




When you are done with the wizard there is some tweaks you can do in the profwiz.xml file.
I changed the ProtocolPriority to LDAP otherwise it is using NETBIOS to AD the computer to Active Directory. For more info read the Administration Guide.

Migration flag:
When a computer is successfully migrated the script create a migration flag so you need to delete this flag if you are going to migrate a computer more than one time in you test environment. The flag file is written to C:\Documents and Settings\All Users\Application Data (on XP) if the migration is successful. By default this is called “ForensiTMigrated”
More tools:
You can download sample scripts and other good tools from
http://www.forensit.com/support-downloads.html

A couple of days ago I got a problem with one of my customers Smal Business Server 2003, the mouse, keyboard and nic stopped working. I tried to start the server in safe mode but that did not help.
After searching Google for a while i realized that there was no answer to the question I had. So the only thing left to do was to try.
I booted the server on the Windows Small Business Server 2003 disc 1.
Then:
Good Luck Chris
The problem with Cisco VPN client is that it will not let you install it from a network location.
To solve this problem I used a script to copy the files to the local computer and then installed it from there.
xcopy Ciscovpn “%TEMP%” /E /C /I /Q /H /R /Y /Z
START /WAIT msiexec /i “%TEMP%\vpnclient_setup.msi” /qb!- Reboot=Suppress
If you want you can use make and model to always have it install if it is a laptop.