Archive for the 'IT' Category

GPO Network Drive Mapping over DFS isn’t working

I experienced the problem that it didn’t map one network drive over GPO. I searched for a long time and found out the problem was that the GPO didn’t like the backslash at the end.

Wrong

\\Domain\data\sharename\

Right

\\Domain\data\sharename

After that it worked like a charm;-)

No Comments »

admin on April 25th 2014 in IT, Windows, Windows Server

SSH Socks Server doesn’t work

You created the right tunnel:
ssh user@sub.example.com –p 80 –D 6666

Note: I picked port 80 for my environment because it isn’t usually blocked by firewalls. So you can easily bypass them.

Finally you have pointed the proxy of your browser to the right tunnel but it still doesn’t work.
127.0.0.1:6666

It took me a while to figure it out, but the solution was quite simple. You need to leave all proxy settings blank, except the socket setting. Now it works like a charm;-)

image

No Comments »

admin on April 11th 2014 in Internet, IT, Linux, Windows

Configure Windows 2012 Server from Command Prompt

Run the following configuration utility:

sconfig.exe

No Comments »

admin on January 13th 2014 in IT, Windows Server

Sync Computer Time manually with Domain Controller

NET TIME %LOGONSERVER% /SET /Y

No Comments »

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

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

No Comments »

admin on July 31st 2013 in IT, Windows

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

No Comments »

admin on July 24th 2013 in IT, PowerShell

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

No Comments »

admin on July 15th 2013 in IT, Windows Server

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

No Comments »

admin on July 15th 2013 in Windows Server

How to get the default Domain Controller and Domain GPO back

dcgpofix /target:both

No Comments »

admin on July 10th 2013 in Windows, Windows Server

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.

No Comments »

admin on July 3rd 2013 in Windows Server




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