Enable Settings to be able to manage a Windows Server 2012 Core

Powershell
Enable-PSRemoting –Force

Tests
Test-WSMan –ComputerName [Computer]
Enter-PSSession –ComputerName [Computer]

Manage via Server Manager
Configure-SMRemoting.exe –Enable

MMC
Enable-NetFirewallRule –DisplayGroup “Windows Remote Management”

Remote Desktop
cscript C:\Windows\System32\Scregedit.wsf /ar 0

or just conifgure it via sconfig

Tests
Run from another machine mstsc and connect to the server.

admin on May 2nd 2013 in Windows Server

No Comments »

See who is logged into a computer remotly and how to log off from a remote computer

With this query you get a list of all logged on users:
quser /SERVER:servername

Pick the ID from above to log off the user:
logoff 2 /SERVER:servername

admin on April 22nd 2013 in IT, Windows, Windows Server

No Comments »

Install Active Directory from a media to save initial replication time

If you need to setup Active Directory on another location and you don’t much bandwith you can install it from a media.

On the source AD create the files to copy to the media:
#ntdsutil
#activate instance ntds
#ifm

#create rodc c:\temp
For a Read Only Domain Controller

#create full c:\temp
For a Standard Domain Controller
#quit
#quit

Check the files and copy it to a media. On the new DC you can choose the files for the first replication

admin on March 6th 2013 in IT, Windows Server

No Comments »

How to upgrade from Windows 2012 Standard to Data Center

Run following command with your Data Center Key:
DISM /Online /Set-Edition:ServerDatacenter /AcceptEula /ProductKey: YOUR_PRODUCT_KEY

admin on March 6th 2013 in IT, Windows Server

No Comments »

How to access/edit Active Directory Schema

regsvr32 schmmgmt.dll
mmc
Add Snapin Schema

admin on March 5th 2013 in IT, Windows Server

No Comments »

Find out Domain Controller Informations

netdom query FSMO

PDC
dsquery server -hasfsmo pdc

RID Master
dsquery server -hasfsmo rid

Infrastructure Master
dsquery server -hasfsmo infr

Schema Master
dsquery server -hasfsmo schema

Domain Naming Master
dsquery server -hasfsmo name

admin on March 5th 2013 in IT, Windows Server

No Comments »

PowerShell List Commands

Show-Command opens a new dialog where you can browse comfortably trough all commands.

image

admin on March 1st 2013 in IT, PowerShell, Windows Server

No Comments »

start and stop vcenter service from the console

service vmware-vpxd start
service vmware-vpxd stop

admin on February 27th 2013 in VMWare

No Comments »

Migrate to a new vCenter Appliance

They changed the database from vCenter 5.0 to 5.2 and I tried the migration steps from the VMWare Support Website and still it failed. I even called up the support of VMWare and at the end we had to face a new installation of vCenter.

This are the steps:

  1. Download the newest vCenter appliance and import it
  2. Run the applicance and check from the screen console the IP if you haven’t already setup a fix one
  3. Open it with your Browser: https://192.168.x.x:5480/
    Username: root
    Password: vmware
  4. Accept license Agreement
  5. Configure with default Settings
  6. Click on all next buttons until it starts to build the database and start the services
  7. Check if all services are up and running
  8. Change the hostname and IP Settings (Network/Adress) and click on Save Settings. After that you need to reboot the machine.
  9. Set the AD Settings
    I tried set it over the Web-Interface but somehow it never worked. Finally I just connected to the appliance via putty and run following commands:
    /opt/likewise/bin/domainjoin-cli join $YOURDOMAIN $USERNAME $PASSWORD
    shutdown –r now
  10. Wait until the Appliance is up again.
  11. Login to the Web Appliance and go to the section Admin and Click on “Toggle certificate settings”. After that I had to restart the appliance again.
  12. This time connect via Web-Browser to a different port: https://192.168.x.x:9443
    Username: root
    Password: vmware
  13. Go there to Manage/Configuration and add there AD identitysource:
    image
    Replace the fields with your domain settings.
  14. Move System-Domain above localos.
  15. After you can vSphere Client and login with root to the vCenter. If there should be a message poping up about the certificate, you can just ignore it.
  16. Click on “localhost” and from there go to the tab “Permissions” and add the domain users in which you want to be able to login and set their permissions. I usually add the Domain Admin as well.
  17. Right click on “localhost” and rename it to the appliance hostname to better identifiy it and add a Datacenter and Cluster to it. The cluster settings you  can get from the old appliance.
    NOTICE: If you should use EVC then deactivate it first and activate it again after you have added all ESX, otherwise you aren’t able to add them.
  18. Go to the vCenter Settings and setup Email, SNMP etc.
    NOTICE: Set a limit to how many days it should keep the protocols, because it could grow quickly and fill up all free space. The license key you can also lookup on your old instance.
  19. Connect to the old vSphere Server and disconnect all ESX Server from there
  20. On the new vSphere Server add them all to the cluster:
    Notice: Use the Full Qualified Domain Name of the ESX Server and use the root login to add them. It will even add the licenses of the ESX.
  21. Set all other settings and switch off the old instance of vSphere
  22. Don’t forget to change the password of vSphere.

admin on February 27th 2013 in IT, VMWare

No Comments »

SYNchronise vSphere Time Manually

#sntp –r pool.ntp.org

admin on February 25th 2013 in IT, Linux, VMWare

No Comments »




Check out new movies online website. Download and buy movies now.