This post will show how to view running processes using command line on your Windows server 2003. To do it open command line and type:
tasklist /v /fi “status eq running”
To view running processes on remote server named “Testserver” type:
tasklist /s Testserver /v /fi “status eq running”
Note that you can always type tasklist /? for more command usage examples
If you have network connectivity problems on your Windows server 2003 this how to is for you. Lets say we have problem with connecting to network resource and want to troubleshoot this. Open command line on your server and type:
netdiag
These tests are performed by running netdiag:
# Netcard queries test
# IpConfig test
# Autoconfiguration test (APIPA)
# NetBT name test
# WINS Service test
# Default gateway test
# NetBT name test
# WINS Service test
# Domain membership test
# NetBT transports test
# Autonet address test (APIPA)
# IP loopback ping test
# Default gateway test
# NetBT name test
# Winsock test
# DNS test
# Trust relationship test
# Kerberos test
# LDAP test
# Bindings test
# WAN configuration test
# Modem configuration test
# IP Security test
# Redir and Browser test
# DC discovery test
# DC list test
# Trust relationship test
# Kerberos test
# LDAP test
# Bindings test
# WAN configuration test
# Modem configuration test
# IP Security test
Note that netdiag is part of Windows server 2003 support tools. They can be found on your OS CD (Support\Tools) .
This post will show you how to view system information using command line. To do it open command line on your Windows server 2003 and type:
systeminfo
To view system configuration on remote server named “Testserver” type:
systeminfo /s Testserver
This post will show how to list processes used by specific session on your Windows server 2003 using command line.
First you need to view current sessions on server named “Testserver”. For that open command line and type:
query session /server:Testserver
Note the ID number of the session you want to use for process list. To list processes for specific session type:
query process /ID:<ID number>
This post will show how to reset session on your Windows server 2003 using command line.
First you need to view current sessions on server named “Testserver”. For that open command line and type:
query session /server:Testserver
Note the ID number of the session you want to reset. To reset session on server named “Testserver” type:
reset session <ID number> /server:Testserver
This post will show how to view sessions on your Windows server 2003 using command line. To view sessions on server named “Testserver” open command line and type:
query session /server:Testserver
Posted by aidas | Posted in Command line, Windows 2008 | Posted on 06-05-2009
0
I`ll show you how to delete all printing jobs on your Windows server 2008 using command line. For that we will use Prnqctl.vbs script which by default is located on your Windows server 2008 after install. To delete all jobs on printer named “Testprinter” open command line and type:
cscript %windir%\System32\Printing_Admin_Scripts\Prnqctl.vbs -x -p Testprinter
Posted by aidas | Posted in Command line, Windows 2008 | Posted on 06-05-2009
0
I`ll show you how to list installed printers on your Windows server 2008 using command line. For that we will use Prnmngr.vbs script which by default is located on your Windows server 2008 after install. To list all installed printers on server named “Testserver” open command line and type:
cscript %windir%\System32\Printing_Admin_Scripts\Prnmngr.vbs -l
This post will show you how to delete Active Directory snapshot using command line on your Windows server 2008. Snapshot is a copy of active directory which contains active directory database and log files and it can be viewed without starting server in Directory Services Restore Mode.
To list all available snaphosts on server type:
ntdsutil press Enter
snapshot press Enter
list all press Enter
You will see all available snapshots with specific GUID {…..} . Make sure that snapshot, you are going to delete, is unmounted. If it is mounted unmount it by typing:
unmount {<GUID>}
To delete snapshot type:
delete {<GUID>}
This post will show you how to mount or unmount Active Directory snapshot using command line on your Windows server 2008. Snapshot is a copy of active directory which contains active directory database and log files and it can be viewed without starting server in Directory Services Restore Mode.
To list all available snaphosts on server type:
ntdsutil press Enter
snapshot press Enter
list all press Enter
You will see all available snapshots with specific GUID {…..} . To mount snapshot note GUID of snapshot you would like to mount and type:
mount {<GUID>}
To unmount snapshot type:
unmount {<GUID>}
This post will show you how to create Active Directory snapshot using command line on your Windows server 2008. Snapshot is a copy of active directory which contains active directory database and log files. Snapshot can be viewed without starting server in Directory Services Restore Mode.
Before creating snapshot you need to set AD as active instance. To do it open command line and type:
ntdsutil press Enter
activate instance NTDS press Enter
Now you are ready to create snapshot:
snapshot press Enter
create press Enter
You will see in output that snapshot was generated successfully.
I`ll show you how to reset Directory Services Restore Mode password using command line on your Windows server 2003 domain controller. Lets say we want to reset password for server named “Testserver”. Open command line and type:
ntdsutil press Enter
Set DSRM password press Enter
reset password on server Testserver press Enter
Type new password for DSRM two times.