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

No Comments »

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

Remote Session Powershell

Like ssh you can run a remote session in powershell.

Test if remote session is enabled
#Test-WsMan [Computername]

If you get a result, it should be up and running. Otherwise you need to activate it on the remote server like this.

Enable PowerShell Remoting on a Server
1. Run Powershell as an administrator
2. #Enable-PSRemoting –Force
This command starts the WinRM server service and sets it automatically to start with the system. It also creates a firewall rule that allows incoming connections.

If your computers aren’t in a domain you need to do a couple of more steps to make a trust between them. You need to edit the TrustedHosts on both sides. You could put the IP Adresses comma-seperated instead of * to further restrict it. With the * it will allow any host.

1. #Set-Item wsman:\localhost\client\trustedhosts *
2. #Restart-Service WinRM

Execute a Remote Command
#Invoke-Command -ComputerName COMPUTER -ScriptBlock { COMMAND } -credential USERNAME

Start a Remote Session
#Enter-PSSession -ComputerName COMPUTER -Credential USERNAME

No Comments »

admin on February 8th 2013 in PowerShell

Edit the registry of a remote computer on a domain

I don’t know if it is a default setting of windows 7 but on our domain you can’t access all computers registry because a service is set to manual and not started. Of course you need to be Domain Admin to be able to run this steps.

First of all you need to start the RemoteRegistry service on the computer:
sc \\COMPUTERNAME start RemoteRegistry

After that you can access it like usually in regedit:
File->Connect to Network etc.

To be on the save side you can disable it again:
sc \\COMPUTERNAME stop RemoteRegistry

No Comments »

admin on September 30th 2010 in IT, Windows

Remote Desktop Users can’t login on Windows server 2008

I gave users permissions to login to the Server but it still didn’t work. After trying out for a while I found out the solution.

Login to the Server as Admin:
1. gpedit.msc (Local Group Policy)
2.  Computer Configuration/Security Settings/Local Policies/User Rights Assignment
3. Allow log on trough Terminal Serives you need to add your group or users

Warning: This should normally not be done and could be a security risk!

No Comments »

admin on June 4th 2009 in IT, Windows Server

Shutdown Computer Remotely

We sometimes have fun at work and shut down each others computer;-)
I think you need to have domain admin rights to do so. If you are not logged in as domain admin you can run the “cmd.exe” with Shift+Right Click and “Run As” Domain Admin Login + Password.

Here the command:

No Comments »

admin on November 4th 2008 in General

Remote Access to your Home/Work Computer

You need to access your computer at home or company. Or do you need to fix you relatives computer but you are to lazy to get up from you chair and visit them. So you need a remote control software. You could use vnc or remote desktop etc. But usually they are behind a firewall and it needs first a lot of configuration. And not everybody knows how to make a ssh tunnel through port 80 to bypass the firewall. Anyway if you looking for a pretty good and fast solution that most of the time works have a look here:

It is by the way free to use, but there are a couple of limitations. One important feature which is missing in the free version is that you can’t share files. Still this service is great and helped me already a couple of times.

No Comments »

admin on May 16th 2008 in Network

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