Exchange 2010 – Benutzer- und Kontaktverwaltung

Create a new AD user with a mailbox

[PS] C:\MyPath>$password = Read-Host “Enter password” -AsSecureString
[PS] C:\MyPath>New-Mailbox -Name ‘Devel One’ -Alias ‘devone’
-OrganizationalUnit ‘dev-dom.halli.me/Devel/Domusers’
-PrimarySmtpAddress ‘devel.one@dev-dom.halli.me’
-UserPrincipalName ‘devone@dev-dom.halli.me’
-SamAccountName ‘devone’
-FirstName ‘Devel’
-Initials ‘DO’
-LastName ‘One’
-Password $password
-ResetPasswordOnNextLogon $true
-Database ‘Support’

Name                      Alias                ServerName       ProhibitSendQuota
—-                      —–                ———-       —————–
Devel One                 devone               mail             unlimited

[PS] C:\MyPath>

Posted in MS Exchange | Tagged , , | Comments Off

Windows 2008 R2 – Server Core – Domain Controller Setup

Configure a static IP address

list the interfaces

netsh interface ipv4 show interfaces

3     5          1500     connected    Local Area Connection

1    50    4294967295     connected    Loopback Pseudo-Interface 1

 

netsh interface ipv4 set address “Local Area Connection” static 10.10.10.2 255.255.255.0 10.10.10.1 1

to add DNS Server

netsh interface ipv4 add dnsserver “Local Area Connection” 10.10.10.1 index=1

verify the config & determine the current hostname

ipconfig /all

rename it

netdom renamecomputer <CurrentName> /NewName:ad01

restart it

shutdown /r /t 0

enable remote managment using a MMC

netsh advfirewall firewall set rule group=”Remote Administration” new enable=yes

IPv6 – disable it or use it !!

regedit

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\

add the DWORD-32Bit (even in 64Bit W2K8) –> DisabledComponents with Hex 0xFFFFFFFF

In Windows 2008 R2 you can use Sconfig.cmd to to all this “a easy way”.

add a product key

slmgr.vbs -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

a poput let you know if the key is successfuly added !


activate the server

slmgr.vbs -ato

If activation is successful, no message will return in the cmd

Setup the first DC in a new Forest

enable features we need

Dism /online /enable-feature /featurename:NetFx2-ServerCore
Dism /online /enable-feature /featurename:NetFx3-ServerCore
Dism /online /enable-feature /featurename:DirectoryServices-DomainController-ServerFoundation

Promote the first DC in a new forest

create an unattend file on C: named dc1_una.txt

C:\Users\Administrator> notepad c:\dc1_una.txt

[DCInstall]
ReplicaOrNewDomain=Domain
NewDomain=Forest
NewDomainDNSName=halli.local
DNSOnNetwork=No
ForestLevel=4
DomainLevel=4
DomainNetbiosName=HALLI
ConfirmGc=Yes
InstallDNS=Yes
SafeModeAdminPassword=securePa$$2008
DatabasePath=C:\Windows\NTDS
LogPath=C:\Windows\NTDS
SYSVOLPath=C:\Windows\SYSVOL
RebootOnCompletion=Yes

start the promotion

C:\Users\Administrator> dcpromo /unattend:c:\dc1_una.txt

Posted in MS Windows Server | Tagged , , , , | Comments Off

compiling AirOS 5.3.3 – SDK 5.3.3 – NanoStation M2

Setting up build environment for compiling AirOS 5.3.3 SDK

SDK available @ http://www.ubnt.com/support/sdk.php

[halli@centos software]$ tar xzvf SDK.UBNT.v5.3.3.tar.gz
[halli@centos software]$ cd SDK.UBNT.v5.3.3/openwrt
[halli@centos openwrt]$ cd package/
[halli@centos package]$ cd ubnt-base-files/files/

[halli@centos files]$ ls
bin  etc  init  lib  sbin  usr

[halli@centos files]$ cd usr/etc/

[halli@centos etc]$ ls
cardlist.txt    hotplug.d   protocols     system-3g.cfg    system-e6c2.cfg
ethertypes      init.d      rc.d          system.cfg       system-soho.cfg
fstab           inittab     server.crt    system-e402.cfg  system-wsoho.cfg
group           lighttpd    server.key    system-e4a2.cfg  udhcpc
host.conf       login.defs  services      system-e4b2.cfg  udhcpc_services
hosts           passwd      shells        system-e6a2.cfg
hotplug2.rules  profile     startup.list  system-e6b2.cfg

[halli@centos software]$ cd ~/software/SDK.UBNT.v5.3.3/openwrt
[halli@centos openwrt]$ make
Checking 'working-make'... ok.
Checking 'case-sensitive-fs'... ok.
Checking 'getopt'... ok.
Checking 'fileutils'... ok.
Checking 'working-gcc'... ok.
Checking 'working-g++'... ok.
Checking 'ncurses'... ok.
Checking 'zlib'... ok.
Checking 'gawk'... ok.
Checking 'flex'... ok.
Checking 'unzip'... ok.
Checking 'bzip2'... ok.
Checking 'patch'... ok.
Checking 'perl'... ok.
Checking 'python'... ok.
Checking 'wget'... ok.
Checking 'gnutar'... ok.
Checking 'svn'... ok.
Checking 'gnu-find'... ok.
Checking 'getopt-extended'... ok.
Checking 'non-root'... ok.
++ mkdir -p software/SDK.UBNT.v5.3.3/openwrt/staging_dir/toolchain-mips_gcc4.1.2
++ cd software/SDK.UBNT.v5.3.3/openwrt/staging_dir/toolchain-mips_gcc4.1.2
++ mkdir -p bin lib include stamp
Collecting package info: done
Collecting target info: done
 make[1] world
 make[2] tools/install
 make[3] -C tools/sed compile
 make[3] -C tools/sed install
 make[3] -C tools/sstrip compile
 make[3] -C tools/sstrip install
 make[3] -C tools/ipkg-utils compile
 make[3] -C tools/ipkg-utils install
  ~~~~~~~~~~~~
 make[3] -C tools/quilt compile
 make[3] -C tools/quilt install
 make[3] -C tools/ubnt-mkfwimage compile
 make[3] -C tools/ubnt-mkfwimage install
 make[2] toolchain/install
 make[3] -C toolchain/kernel-headers prepare
 make[3] -C toolchain/uClibc prepare
 make[3] -C toolchain/binutils prepare
 make[3] -C toolchain/binutils compile
 make[3] -C toolchain/binutils install
 make[3] -C toolchain/gcc prepare
 make[3] -C toolchain/gcc compile
 make[3] -C toolchain/uClibc compile
 make[3] -C toolchain/gcc install
 make[3] -C toolchain/uClibc install
 make[2] target/compile
 make[3] -C target/linux compile
 make[2] package/cleanup
 make[2] package/compile
 make[3] -C package/base-files compile
 make[3] -C package/busybox compile
 make[3] -C package/linux-atm compile
 make[3] -C package/libpcap compile
 make[3] -C package/ppp compile
 make[3] -C package/dnsmasq compile
 ~~~~~~~~~~~~
 make[3] -C package/wpa_supplicant install
 make[3] -C package/zlib install
 make[2] package/rootfs-prepare
 make[3] package/preconfig
 make[2] target/install
 make[3] -C target/linux install
 make[2] package/index

Copy FW to your device & initiate update process:

[halli@centos openwrt]$ scp bin/XM.v5.3.3.sdk.bin ubnt@ap-temp.bdsm.local:/tmp/fwupdate.bin

Log into your device and start the update:
 
[ubnt@ap-temp]$ /sbin/ubntbox fwupdate.real -m /tmp/fwupdate.bin -d

In a few minutes, after the unit comes back up, log into it again and
issue the command to reset the device to the AirOS defaults:

[ubnt@ap-temp]$ cfgmtd -f /usr/etc/system.cfg -w && reboot
Posted in Linux, Networking | Tagged , , , | Comments Off

Windows 8 Server – glimpse

 

Posted in MS Windows Server | Tagged , | Comments Off

CentOS – yum update – Not using downloaded repomd.xml because it is older

Not using downloaded repomd.xml because it is older than what we have:

# yum clean all
Posted in Linux | Tagged , , | Comments Off