Windows: Switch back to Restore Point


when you want list all restore points or you to switch back to a system restore point use the Windows System Restore Point GUI.

Start it with

C:> rstrui.exe

It shows you a Window where you can switch back to the latest restore point

or it gets you a list from all available restore points.


Advertisment to support

Windows: List WWNs of all Fibre Channel HBAs


the following powershell one liner lists all WWNs of all attached Fibre Channel HBAs.

More »

Windows: Get all groups a user is memberof by dsquery/dsget recursive


The “net” builtin commands of Windows have some limitations: It truncates groupnames longer then 20 Characters, it cannot resolve group in group memberships….

dsget/dsquery are (LDAP) command line interfaces for active directory. For using these commands you have to install the Windows RSAT Tools (Remote Server Administration Tools).

Some examples.
More »

Powershell: List members of an Active Directory Group


here are the code snippets to list all members of an Active Directory Group.

Some constants

# Define LDAP search root, the Global catalog of the domain
# The Groupname to looking for

More »

Windows: List all users who are currently logged on


if you want to list all Users which are currently logged on to the box use the query command.

List all sessions

c:\> query session
 SESSIONNAME       USERNAME                 ID  STATE   TYPE        DEVICE
 services                                    0  Disc
 console                                     1  Conn
>rdp-tcp#0         user1                     2  Active  rdpwd
 rdp-tcp                                 65536  Listen

Or list all users

c:\> query user
>user1                 rdp-tcp#0           2  Active          .  21.02.2015 19:42

You can also list the processes of the user

c:\> query process
 USERNAME              SESSIONNAME         ID    PID  IMAGE
>user1                 rdp-tcp#0            2   6076  taskhost.exe
>user1                 rdp-tcp#0            2   6592  rdpclip.exe
>user1                 rdp-tcp#0            2   4840  dwm.exe
>user1                 rdp-tcp#0            2   4680  explorer.exe
>user1                 rdp-tcp#0            2   7092  vmtoolsd.exe


Original Theme by Schiy · Powered by WordPress