Configure Windows 2012 Server from Command Prompt

Run the following configuration utility:

sconfig.exe

admin on January 13th 2014 in IT, Windows Server

No Comments »

Sync Computer Time manually with Domain Controller

NET TIME %LOGONSERVER% /SET /Y

admin on August 27th 2013 in IT, Windows, Windows Server

No Comments »

Stress CPU

If you need to test how your CPU is doing under stress (overheating etc.) you can simply try following methods:

1. Create a VBSCript test.vbs

   While true

   Wend

2. Or create a Batch-File test.bat

admin on July 31st 2013 in IT, Windows

No Comments »

How to use PowerShell help

The powershell help is actually very powerful. But most people don’t know how to use it and prefer to search in google. This approach will take you much more time.
To actually get the help in powershell you need to first download the help from the internet.

Update-Help –Force

If you don’t use the force command it allows you to download the help just every 24 hours.

After that you can run following commands with wildcards:
Help *Get-Service* –Full
Help *Get-Service* –Example
Help *Get-Service* –ShowWindow
Help *Get-Service* –Online

Syntax Description
image

Optional Parameters
All Parameters between [] are optional

Positional Parameter
You could run the command e.g. Get-Service without “–Name” like Get-Service WinRM and it would still work if the parameter is at the beginning. You can recognize this command because it is between [] bracket without the data type.

1, 2, 3
You have three different choices how to run the command.

admin on July 24th 2013 in General

No Comments »

How to determine Powershell version and run an older Powershell Version

To get the powershell version run:

$psversiontable

To run another version of powershell run for example:
powershell -version 2.0

admin on July 24th 2013 in IT, PowerShell

No Comments »

How to create Group Managent Service Account

Useful for Network Load Balancing and Clusters

Same steps as in How-to-create-a-Managed-Service-Account

You need to create a security group and add computers to it.

New-ADServiceAccount –Name GroupMSA –DNSHostName ServerName –PrincipalsAllowedToRetrieveManagedPassword MSAComputers –passthru

admin on July 15th 2013 in IT, Windows Server

No Comments »

How to create a Managed Service Account

New since Win2k8 R2

Instead of using User Accounts for services you can create Managed Service Accounts now. The advantage is that it also changes the password every 30 days automatically like in the computer accounts. You can find the managed user accounts here:
Active Directory User and Computers\Managed Service Accounts

1. Run Active Directory Module for PowerShell
2. Add-KDSRootKey
    
     For LAB Environment to not wait the 10 hours to repliacte type instead:
     Add-KDSRootKey –EffectiveTime ((Get-Date).AddHours(-10))
2. New-ADServiceAccount –Name WebTest –DNSHostname servername –Passthru

    Without –Passtrhu you don’t have any feedback

3. Add-ComputerServiceAccount –identity web01 –ServiceAccount WebTest –Passthru

You can check the settings in more details if you run adsiedit.msc.

Now you can use this service for example for services.

1. Run services.msc

2. Right Click on a Service\Properties\Log On\
    This Account:

     domain\yourcreatedaccount$

3. You don’t need to put a password

admin on July 15th 2013 in Windows Server

No Comments »

How to get the default Domain Controller and Domain GPO back

dcgpofix /target:both

admin on July 10th 2013 in Windows, Windows Server

No Comments »

DHCP Server with DHCP Relay Agent in Windows 2012 Server

If you have two different networks and you don’t want to install a DHCP Server on each side you can use “DHCP Relay Agent” Service.

image

Here a quick tutorial:
1. DHCP-Server
    Install “DHCP-Server” Role

2. Configure DHCP Scopes
    Scope A 192.168.10.11-192.168.10.253
    Scope B 192.168.11.11- 192.168.11.253

3. Router
    Should have two Network cards. For each network one.
    Network A IP: 192.168.10.254/24
    Network B IP: 192.168.11.254/24

4. Install “Remote Access” Role

5. Run “Routing and Remote Access”

6. “Configure and Enable Routing and Remote Access”

7. Choose “Custom Configuration”

8. Choose “LAN routing” and start the service

9. Install the DHCP Relay Agent
    Right Click on General in IPv4 and choose “New Routing Protocol” and there you can finally choose “DHCP Relay Agent”.

10. Right Click on” DHCP Relay Agent” and choose “Properties”. There you add your DHCP Server. In this case it would be 192.168.10.10.

11. Add the Network B Interface to the “DHCP Relay Agent”.

12. You should be done. In Windows 2008 it’s possible that you need to make adjustments to your Windows Firewall.

13. You can test on your client to get an IP Adress. Run from the command console: Ipconfig /release and Ipconfig /renew. 
     After that you should be able to see the IP address if you type: ipconfig.

admin on July 3rd 2013 in Windows Server

No Comments »

How to make Windows 8 window border thinner?

Well I don’t like the thick border in Windows 8. You can easily change it in the registry:
HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics

Set following values to 0:
BorderWidth
PaddedBorderWidth

logoff and login again

admin on July 1st 2013 in IT, Windows

No Comments »




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