Create Bootable USB Stick

If you really need speed to install a couple of Windows Server 2008 boxes I recommend placing the installation files on a high-speed USB Stick.

 

Hard drives are usually connected to one Host device and USB channels are connected to another host device chip on your motherboard. Installing from an USB device therefor won’t hog the host devices for your hard drives (like when using an image) and won’t lag like a normal DVD player would do while spinning up and spinning down. When you choose to use an USB flash drive (called an USB stick around here) instead of an USB hard disk (slower)  you can achieve lightning speeds. To make your bootable USB device, simply type the following commands on a system with the image mounted or physical DVD copy in the drive and the USB device plugged in:

1. Open diskpart through cmd.

diskpart

2. DISKPART> list disk

3. Select the USB device from the list and substitute the disk number below             when necessary.

4.Execute the following commands.. 

DISKPART> select disk 1
DISKPART> clean
DISKPART> create partition primary
DISKPART> select partition 1
DISKPART> active
DISKPART> format fs=fat32
** it is also possible to quickformat the disk. Through explorer rightclick the device select format and mark quickformat,followed by apply. It will go even faster.**
DISKPART> assign
DISKPART> exit

5. Run in an command prompt the following: xcopy X:\*.* /s/e/f Y:\
where X:\ is your mounted image or physical DVD and Y:\ is your USB  device.

Now all you need to do is plug the device into your target box’ USB slot and boot it.    (The target system will need to have USB slots and be able to boot from USB devices)

When you send information to the Internet, it might be possible for other

When you send information to the Internet, it might be possible for others to see that information

Users keep recieving the rather annoying message

When you send information to the Internet, it might be possible for other
sto see that information

This message can be prevented via a Group policy setting or a registry poke.

Group Policy
To control the sending of non encypted traffic in IE use the policy setting under
Computer config\Windows components\Internet Explorer\Internet control Panel\Security Page\Internet zone\Submit non-encypted form data

If you make sure it is twice enabled.

Example:

Group-policy Submit non-encrypted form data

Registry Poke
HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\x

Key : 1601 Type :REG_DWORD Value : 0

Where x is the relevant Site Zone
3 = Being Internet

The 1601 value equates to the setting “Miscellaneous: Submit non-encrypted form data”

How to Deploy .Net Framework 4.0 Full with startup script

How to Deploy Microsoft .NET Framework 4 with Group Policy with Startup Script

To deploy .NET Framework 4 to your network you must use a startup script. No longer can you push .NET Framework out via an MSI file as with earlier versions such as .NET Framework 1.1.I wrote a script that your welcome to copy it to push the .NET framework to all x86 and x64 windows based PC’s on your network.

Save the following as a “.bat” file.

setlocal

REM *********************************************************************
REM Environment customization begins here. Modify variables below.
REM *********************************************************************

REM Enter the Product Name.
set ProductName=Microsoft .NET Framework 4 Client Profile

REM Set DeployServer to a network-accessible location containing the Office source files.
set DeployServer=\\kbomb.local\netlogon\software

REM Set LogLocation to a central directory to collect log files.
set LogLocation=C:\Windows\Logs

REM *********************************************************************
REM Deployment code begins here. Do not modify anything below this line.
REM *********************************************************************

IF NOT “%ProgramFiles(x86)%”==”” (goto ARP64) else (goto ARP86)

REM Operating system is X64. Check for 32 bit Office in emulated Wow6432 uninstall key
:ARP64
reg query “HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432NODE\Microsoft\Windows\CurrentVersion\Uninstall\%ProductName%”
if NOT %errorlevel%==1 (goto End)

REM Check for 32 and 64 bit versions of Office 2010 in regular uninstall key.(Office 64bit would also appear here on a 64bit OS)
:ARP86
reg query “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%ProductName%”
if %errorlevel%==1 (goto DeployOffice) else (goto End)

REM If 1 returned, the product was not found. Run setup here.
:DeployOffice
start /wait %DeployServer%\dotNetFx40_Full_x86_x64.exe /passive
echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%\%computername%.txt

REM If 0 or other was returned, the product was found or another error occurred. Do nothing.
:End

Endlocal

Please modify the DeployServer path to fit your environment.

Copy the script into the startup script folder inside the group policy object. Make sure you use a startup script and not a logon script!

Link this group policy object to your computer accounts. When the workstations refresh there group policy they will automatically install .NET Framework v4 on next reboot.

I have tested the script and it works on windows 7

 

Configure NTP Time Server on client through CLI

Time server (NTP) instellen met commandline:
1. Stop the W32Time service: net stop w32time
2. Set de NTP server: w32tm /config /syncfromflags:manual /manualpeerlist:”Serverip”
3. Maak je NTPserver een reliable time source voor de clients: w32tm /config /reliable:yes
4. Start the W32time service: net start w32time
5. Controle: w32tm /query /configuration
6. Resync tijd: w32tm /resync

Server Core commando’s die van belang kunnen zijn tijdens de initiële setup.

To set the server with a static IP address

  1. At a command prompt, type the following:

netsh interface ipv4 show interfaces

  1. Look at the number shown in the Idx column of the output for your network adapter. If your computer has more than one network adapter, make a note of the number corresponding to the network adapter for which you wish to set a static IP address.
  2. At the command prompt, type:

Lees verder