Showing posts with label windows server 2008. Show all posts
Showing posts with label windows server 2008. Show all posts

Thursday, 13 February 2014

Microsoft Windows Technical Links for general purpose and server admin

Windows Server Technical Resources for IT Professionals

Microsoft TechNet


· The TechCenter is a source of product or solution specific technical information for IT professionals.
· The Library contains technical documentation for IT professionals using Microsoft products, tools, and technologies.
· Solution Accelerators are tools and guidance that help you to solve your deployment, planning, and operational IT problems. They are free and fully supported.
· TechNet Edge provides, screencasts, podcasts, and articles to help IT Professionals stay up to date on the latest Microsoft technologies.

Windows Server Technical Resources for Developers

Microsoft Developer Network (MSDN)


· The Developer Center is a source of information, documentation and discussion for the developer community.
· The MSDN Library is a library of official technical documentation content intended for developers.
· Downloads provide developers with the trial software bits for evaluation purposes.
· The TechCenter is a source of product or solution specific technical information for IT professionals .
· The Library contains technical documentation for IT professionals using Microsoft products, tools, and technologies.


Windows Server Technical links

Windows Server
Windows Server 2008 and Windows Server 2008 R2
Windows Server Commands, References, and Tools
http://blogs.technet.com/b/server-cloud/rss.aspx
SERVER FORUMS
http://social.technet.microsoft.com/Forums/en-US/category/windowsserver
SCRIPTING REFERENCE
http://technet.microsoft.com/en-us/library/cc498722.aspx
POWERSHELL REFERENCE
http://technet.microsoft.com/en-us/library/ee692944.aspx
WINDOWS VIRTUALISATION

WIndows Server 2008 Technology Domains

WIndows Server 2008 Technology Lists by function (NFS, backups, print, remote, AD, perf)


Services for Network File System (NFS)

provides a file sharing solution that enables you to transfer files between computers running Windows Server 2008 and UNIX operating systems using the NFS protocol. The following is a list of NFS command-line tools.
Command Description
mapadmin Manage User Name Mapping for Microsoft Services for Network File System.

Mount Mount Network File System (NFS) network shares.

Nfsadmin Manage Server for NFS and Client for NFS.

Nfsshare Control Network File System (NFS) shares.

Nfsstat Display or reset counts of calls made to Server for NFS.

Rpcinfo List programs on remote computers.

Showmount Display mounted directories.

Umount Remove Network File System (NFS)–mounted drives.



Windows Server Backup Command Reference

The following subcommands for wbadmin provide backup and recovery functionality from a command prompt.
To configure a backup schedule, you must be a member of the Administrators group. To perform all other tasks with this command, you must be a member of the Backup Operators or the Administrators group, or you must have been delegated the appropriate permissions.
You must run wbadmin from an elevated command prompt. (To open an elevated command prompt, click Start, right-click Command Prompt, and then click Run as administrator.)

Subcommand Description
Wbadmin enable backup Configures and enables a daily backup schedule.
This subcommand applies only to Windows Server 2008.
Wbadmin disable backup Disables your daily backups.
This subcommand applies only to Windows Server 2008.
Wbadmin start backup Runs a one-time backup. If used with no parameters, uses the settings from the daily backup schedule.
Wbadmin stop job Stops the currently running backup or recovery operation.
Wbadmin get versions Lists details of backups recoverable from the local computer or, if another location is specified, from another computer.
Wbadmin get items Lists the items included in a specific backup.
Wbadmin start recovery Runs a recovery of the volumes, applications, files, or folders specified.
This subcommand applies only to Windows Server 2008.
Wbadmin get status Shows the status of the currently running backup or recovery operation.
Wbadmin get disks Lists disks that are currently online.
This subcommand applies only to Windows Server 2008.
Wbadmin start systemstaterecovery Runs a system state recovery.
This subcommand applies only to Windows Server 2008.
Wbadmin start systemstatebackup Runs a system state backup.
This subcommand applies only to Windows Server 2008.
Wbadmin delete systemstatebackup Deletes one or more system state backups.
This subcommand applies only to Windows Server 2008.
Wbadmin start sysrecovery Runs a recovery of the full system (at least all the volumes that contain the operating system's state). This subcommand applies only to Windows Server 2008, and it is only available if you are using the Windows Recovery Environment.
Wbadmin restore catalog Recovers a backup catalog from a specified storage location in the case where the backup catalog on the local computer has been corrupted.
This subcommand applies only to Windows Server 2008.
Wbadmin delete catalog Deletes the backup catalog on the local computer. Use this command only if the backup catalog on this computer is corrupted and you have no backups stored at another location that you can use to restore the catalog.
This subcommand applies only to Windows Server 2008


Printing-Foundation-Features



Command Description
Lpq Displays the status of a print queue on a computer running Line Printer Daemon (LPD).
Lpr Sends a file to a computer or printer sharing device running the Line Printer Daemon (LPD) service in preparation for printing.
Net print Displays information about a specified printer queue, displays information about a specified print job, or controls a specified print job.
Print Sends a text file to a printer.
Prncnfg.vbs Configures or displays configuration information about a printer.
Prndrvr.vbs Adds, deletes, and lists printer drivers.
Prnjobs.vbs Pauses, resumes, cancels, and lists print jobs.
Prnmngr.vbs Adds, deletes, and lists printers or printer connections, in addition to setting and displaying the default printer.
Prnport.vbs Creates, deletes, and lists standard TCP/IP printer ports, in addition to displaying and changing port configuration.
Prnqctl.vbs Prints a test page, pauses or resumes a printer, and clears a printer queue.
Pubprn.vbs Publishes a printer to the Active Directory directory service


Remote Desktop Services (Terminal Services) Command Reference


Command Description
Change Changes Remote Desktop Session Host (RD Session Host) server settings for logons, COM port mappings, and install mode.
Change logon Enables or disables logons from client sessions on an RD Session Host server, or displays current logon status.
Change port Lists or changes the COM port mappings to be compatible with MS-DOS applications.
Change user Changes the install mode for the RD Session Host server.
Chglogon Enables or disables logons from client sessions on an RD Session Host server, or displays current logon status.
Chgport Lists or changes the COM port mappings to be compatible with MS-DOS applications.
Chgusr Changes the install mode for the RD Session Host server.
Flattemp Enables or disables flat temporary folders.
Logoff Logs off a user from a session on an RD Session Host server and deletes the session from the server.
Msg Sends a message to a user on an RD Session Host server.
Mstsc Creates connections to RD Session Host servers or other remote computers.
Qappsrv Displays a list of all RD Session Host servers on the network.
Qprocess Displays information about processes that are running on an RD Session Host server.
Query Displays information about processes, sessions, and RD Session Host servers.
Query process Displays information about processes that are running on an RD Session Host server.
Query session Displays information about sessions on an RD Session Host server.
Query termserver Displays a list of all RD Session Host servers on the network.
Query user Displays information about user sessions on an RD Session Host server.
Quser Displays information about user sessions on an RD Session Host server.
Qwinsta Displays information about sessions on an RD Session Host server.
Rdpsign Enables you to digitally sign a Remote Desktop Protocol (.rdp) file.
Reset session Enables you to reset (delete) a session on an RD Session Host server.
Rwinsta Enables you to reset (delete) a session on an RD Session Host server.
Shadow Enables you to remotely control an active session of another user on an RD Session Host server.
Tscon Connects to another session on an RD Session Host server.
Tsdiscon Disconnects a session from an RD Session Host server.
Tskill Ends a process running in a session on an RD Session Host server.
Tsprof Copies the Remote Desktop Services user configuration information from one user to another.


Active Directory Domain Services Command Reference


Active Directory Domain Services (AD DS) command-line tools are built into Windows Server 2008. They are available if you have the AD DS or Active Directory Lightweight Directory Services (AD LDS) server role installed. To use these tools, you must run them from an elevated command prompt. To open an elevated command prompt, clickStart, right-click Command Prompt, and then click Run as administrator.
Command Description
Adprep Extends the Active Directory schema and updates permissions as necessary to prepare a forest and domain for a domain controller that runs the Windows Server 2008 operating system.
Csvde Imports and exports data from Active Directory using files that store data in the comma-separated value (CSV) format. You can also support batch operations based on the CSV file format standard.
Dcdiag Analyzes the state of domain controllers in a forest or enterprise and reports any problems to help in troubleshooting.
Dcpromo Installs and removes Active Directory Domain Services (AD DS).
Dsacls Displays and changes permissions (access control entries) in the access control list (ACL) of objects in AD DS.
Dsadd Adds specific types of objects to the directory.
Dsamain Exposes Active Directory data that is stored in a snapshot or backup as a Lightweight Directory Access Protocol (LDAP) server.
Dsdbutil Provides database utilities for Active Directory Lightweight Directory Services (AD LDS).
Dsget Displays the selected properties of a specific object in the directory.
Dsmgmt Provides management facilities for Active Directory Lightweight Directory Services (AD LDS).
Dsmod Modifies an existing object of a specific type in the directory.
Dsmove Moves a single object in a domain from its current location in the directory to a new location or renames a single object without moving it in the directory tree.
Dsquery Queries AD DS according to specified criteria.
Dsrm Deletes an object of a specific type or any general object from the directory.
Ldifde Creates, modifies, and deletes directory objects on computers running Windows Server 2003 or Windows XP Professional operating systems.
Ldp Makes it possible for users to perform operations against an LDAP-compatible directory, such as AD DS. These operations include connect, bind, search, modify, add, and delete.
Netdom Makes it possible for administrators to manage Windows Server 2003 and Windows 2000 domains and trust relationships from a command prompt.
Net computer Adds or deletes a computer from a domain database.
Net group Adds, displays, or modifies global groups in domains.
Net user Adds or modifies user accounts, or displays user account information.
Nltest Performs network administrative tasks.
Ntdsutil Provides management facilities for AD DS.
Redircmp Redirects the default container for newly created computers to a specified target organizational unit (OU) so that newly created computer objects are created in the specific target OU instead of in CN=Computers.
Redirusr Redirects the default container for newly created users to a specified target OU so that newly created user objects are created in the specific target OU instead of in CN=Users.
Repadmin Makes it possible for administrators to diagnose Active Directory replication problems between domain controllers running Windows operating systems.
Setspn Makes it possible for administrators to read, modify, and delete the Service Principal Names (SPN) directory property for an Active Directory service account

Active Directory Certificate Services Command Reference


Active Directory Certificate Services (AD CS) provides customizable services for issuing and managing public key certificates used in software security systems that employ public key technologies. The following commands allow you to issue and manage public key certificates used in software security systems that employ public key technologies.
Command Description
Certreq Certreq can be used to:
  1. Request certificates from a certification authority (CA).
  2. Retrieve a response to a previous request from a CA.
  3. Create a new request from an .inf file.
  4. Accept and install a response to a request.
  5. Construct a cross-certification or qualified subordination request from an existing CA certificate or request.
  6. Sign a cross-certification or qualified subordination request.
Certutil Displays certification configuration information, and configures Certificate Services.




Command Line Reference Windows Server 2008

COMMAND LINE REFERENCE

Command-line Reference

A-Z List

Adprep
Append
Arp
Assoc
At
Atmadm
Attrib
Auditpol
Autochk
Autoconv
Autofmt
Bcdboot
Bcdedit
Bdehdcfg
Bitsadmin
Bootcfg
Break
Cacls
Call
Cd
Certreq
Certutil
Change
Chcp
Chdir
Chglogon
Chgport
Chgusr
Chkdsk
Chkntfs
Choice
Cipher
Clip
Cls
Cluster
Cmd
Cmdkey
Cmstp
Color
Comp
Compact
Convert
Copy
Cprofile
Cscript
Csvde
Date
Dcdiag
Dcpromo
Defrag
Del
Dfscmd
Dfsrmig
Dir
Dirquota
Diskcomp
Diskcopy
Diskedit
DiskPart
DiskRAID
Diskshadow
Dispdiag
Djoin
Dnscmd
Doskey
Driverquery
Dsacls
Dsadd
Dsdbutil
Dsamain
Dsget
Dsmgmt
Dsmod
Dsmove
Dsquery
Dsrm
Echo
Edit
Endlocal
Erase
Eventcreate
Eventquery.vbs
Eventtriggers
Evntcmd
Exit
Extract
Fc
Filescrn
Find
Findstr
Finger
Flattemp
For
Forfiles
Format
Freedisk
Fsutil
Ftp
Ftype
Fveupdate
Getmac
Gettype
Goto
Gpresult
Graftabl
Hashgen
Help
Helpctr
Hostname
Icacls
If
Inuse
Ipconfig
Ipxroute
Irftp
Ismserv
Klist
Ksetup
Ktmutil
Ktpass
Label
Ldifde
Ldp
Logman
Logoff
Lpq
Lpr
Macfile
Manage-bde
Mapadmin
Md
Mkdir
Mklink
Mode
More
Mount
Mountvol
Move
Msdt
Msg
Msiexec
Msinfo32
Mstsc
Nbtstat
Netdiag
Netdom
Netsh
Netstat
Net computer
Net group
Net localgroup
Net print
Net session
Net share
Net use
Net user
Nfsadmin
Nfsshare
Nfsstat
Nlb
Nltest
Nslookup
Ntbackup
Ntdsutil
Openfiles
Pagefileconfig.vbs
Path
Pathping
Pause
Pbadmin
Pentnt
Perfmon
Ping
Pnpunattend
Pnputil
Popd
PowerShell
Print
Prncnfg.vbs
Prndrvr.vbs
Prnjobs.vbs
Prnmngr.vbs
Prnport.vbs
Prnqctl.vbs
Prompt
Pubprn.vbs
Pushd
Qappsrv
Qprocess
Query
Quser
Qwinsta
Rasdial
Rcp
Rd
Rdpsign
Reagentc
Recover
Redircmp
Redirusr
Reg
Regsvr32
Relog
Rem
Ren
Rename
Rendom
Repadmin
Repair-bde
Replace
Reset session
Rexec
Rmdir
Robocopy
Route
Rpcinfo
Rsh
Runas
Rundll32
Rwinsta
Sc
Schtasks
Scwcmd
Servermanagercmd
Set
Setlocal
Setspn
Setx
Sfc
Shadow
Shift
Showmount
Shutdown
Sort
Start
Storrept
Subst
Sysocmgr
Systeminfo
Tapicfg
Takeown
Taskkill
Tasklist
Tcmsetup
Telnet
Tftp
Time
Timeout
Title
Tlntadmn
Tracerpt
Tracert
Tree
Tscon
Tsdiscon
Tsecimp
Tskill
Tsprof
Type
Typeperf
Uddiconfig
Umount
Ver
Verify
Vol
Vssadmin
W32tm
Waitfor
Wbadmin
Wdsutil
Wecutil
Wevtutil
Where
Whoami
Winnt
Winpop
Winsat
Wmic

Xcopy

scripting windows server with Powershell

SCRIPTING WINDOWS SERVER (2008, 2010, 2012)


POWERSHELL REFERENCE

Windows PowerShell Scripts (http://go.microsoft.com/fwlink/?LinkID=119588)

Administration tools/Windows Powershell

Get-Module                                                            list all modules
Get-Module –ListAvailable                                     list only available modules
Get-PSSnapin                                                        list snapins
Get-Command -module modulename                     list commands per module
Get-Help *AD*
Get-Help *events
Get-Help *counters
Get-PSSnapin -registered
Import-Module ActiveDirectory
Add-PSSnapin snap-inName

MODULES

ActiveDirectory
windows.Serverbackup
ADRMS
ADRMSAdmin
Applocker
BestPractices
BITSTransfer
NetworkLoadBalancingClusters
RemoteDesktopServices
ServerManager
Microsofot.Windows.ServerManager.Migration
TroubleshootingPack
WebAdministrator
Add_PSSnapin Microsoft.WSman.Management

EMBEDDING SEVERAL SCRIPTS

$Script = @"
'This is the first line of a 'String'' without any matching "quote` marks.
'This is the second line of the string with a         tab in it
option explicit
Dim someVar, otherVar

'Do some work here
WScript.Echo "Some output"
WScript.Quit
"@
$Script | Set-Content '.\VBScript.vbs'



$Script = {
Write-Host "inside scripblock.."
}
$Script | Set-content .\Powershell.ps1



$Script = @"
'This is the first line of a 'String'' without any matching "quote` marks.
'This is the second line of the string with a         tab in it
option explicit
Dim someVar, otherVar
someVar = SOMEVAR_VALUE
otherVar = OTHERVAR_VALUE
'Do some work here
WScript.Echo "Some output"
WScript.Quit
"@
$Script = $Script -replace 'SOMEVAR_VALUE', "myValue"
$Script = $Script -replace 'OTHERVAR_VALUE', "myOtherValue"
$Script | Set-Content '.\VBScript.vbs'


WINDOWS COMMAND LINE
ASSOC                   Displays or modifies file extension associations.
ATTRIB                   Displays or changes file attributes.
BREAK                    Sets or clears extended CTRL+C checking.
BCDBOOT*             Used to copy critical files to the system partition and to create a new system BCD store.
BCDEDIT Sets properties in boot database to control boot loading.
CACLS                    Displays or modifies access control lists (ACLs) of files.
CALL                      Calls one batch program from another.
CD                           Displays the name of or changes the current directory.
CHCP                      Displays or sets the active code page number.
CHDIR                     Displays the name of or changes the current directory.
CHKDSK                 Checks a disk and displays a status report.
CHKNTFS                Displays or modifies the checking of disk at boot time.
CHOICE                   Batch file command that allows users to select from a set of options.
CIPHER                    Displays or alters the encryption of directories [files] on NTFS partitions.
CLIP                        Redirects output of another command to the Windows clipboard.
CLS                         Clears the screen.
CMD                        Starts a new instance of the Windows command interpreter.
CMDKEY                 Creates, lists and deletes stored user names and passwords or credentials.
COLOR                   Sets the default console foreground and background colors.
COMP Compares the contents of two files or sets of files byte-by-byte
COMPACT Displays or alters the compression of files on NTFS partitions.
CONVERT Converts FAT volumes to NTFS. You cannot convert the current drive.
COPY Copies one or more files to another location.
DATE Displays or sets the date.
DEFRAG Disk defragmenter accessory.
DEL Deletes one or more files.
DIR Displays a list of files and subdirectories in a directory.
DISKCOMP Compares the contents of two floppy disks.
DISKCOPY Copies the contents of one floppy disk to another.
DISKPART Displays or configures Disk Partition properties. A separte command interpreter with a sub-set of commands.
DOSKEY Edits command lines, recalls Windows commands, and creates macros.
DRIVERQUERY Displays current device driver status and properties.
ECHO Displays messages, or turns command echoing on or off.
ENDLOCAL Ends localization of environment changes in a batch file.
ERASE Deletes one or more files.
EXIT Quits and closes the command shell.
EXPAND Expands one or more compressed files.
FC Compares two files or sets of files, and displays the differences between them.
FIND Searches for a text string in a file or files.
FINDSTR Searches for strings in files.
FOR Runs a specified command for each item in a set.
FORFILES Selects files in a folder for batch processing.
FORMAT Formats a disk for use with Windows.
FSUTIL Displays or configures the file system properties.
FTYPE Displays or modifies file types used in file extension associations.
GOTO Directs the Windows command interpreter to a labeled line in a batch program.
GPRESULT Displays Group Policy information for machine or user.
GRAFTABL Enables Windows to display an extended character set in graphics mode.
HELP Provides Help information for Windows commands.
ICACLS Display, modify, backup, or restore ACLs for files and directories (more here).
IF Performs conditional processing in batch programs.
IPCONFIG Displays all current TCP/IP network configuration values
LABEL Creates, changes, or deletes the volume label of a disk.
MD Creates a directory.
MKDIR Creates a directory.
MKLINK Creates Symbolic Links and Hard Links
MODE Configures a system device.
MORE Displays output one screen at a time.
MOVE Moves one or more files from one directory to another directory.
OPENFILES Queries, displays, or disconnects open files or files opened by network users.
PATH Displays or sets a search path for executable files.
PAUSE Suspends processing of a batch file and displays a message.
POPD Restores the previous value of the current directory saved by PUSHD.
PRINT Prints a text file.
PROMPT Changes the Windows command prompt.
PUSHD Saves the current directory then changes it.
RD Removes a directory.
RECOVER Recovers readable information from a bad or defective disk.
REM Designates comments (remarks) in batch files
REN Renames a file or files.
RENAME Renames a file or files.
REPLACE Replaces files.
RMDIR Removes a directory.
ROBOCOPY Advanced utility to copy files and directory trees
SET Displays, sets, or removes environment variables for current session.
SETLOCAL Begins localization of environment changes in a batch file.
SETX Sets environment variables.
SC Displays or configures services (background processes).
SCHTASKS Schedules commands and programs to run on a computer.
SHIFT Shifts the position of replaceable parameters in batch files.
SHUTDOWN Allows proper local or remote shutdown of machine.
SORT Sorts input.
START Starts a separate window to run a specified program or command.
SUBST Associates a path with a drive letter.
SYSTEMINFO Displays machine specific properties and configuration.
TAKEOWN Allows an administrator to take ownership of a file (more here).
TASKLIST Displays all currently running tasks including services.
TASKKILL Kill or stop a running process or application.
TIME Displays or sets the system time.
TIMEOUT Pauses the command processor for the specified number of seconds.More here.
TITLE Sets the window title for a CMD.EXE session.
TREE Graphically displays the directory structure of a drive or path.
TYPE Displays the contents of a text file.
VER Displays the Windows version.
VERIFY Tells Windows whether to verify that your files are written correctly to a disk.
VOL Displays a disk volume label and serial number.
VSSADMIN Volume Shadow Copy Service administration tool
WHERE Displays the location of files that match a search pattern.
XCOPY Copies files and directory trees.
WMIC Displays WMI information inside interactive command shell

POWERSHELL COMMANDS
able I. List of PowerShell cmdlets
Add-Content
Add-History
Add-Member
Add-PSSnapin
Clear-Content
Clear-Item
Clear-ItemProperty
Clear-Variable
Compare-Object
ConvertFrom-SecureString
Convert-Path
ConvertTo-Html
ConvertTo-SecureString
Copy-Item
Copy-ItemProperty
Export-Alias
Export-Clixml
Export-Console
Export-Csv
ForEach-Object
Format-Custom
Format-List
Format-Table
Format-Wide
Get-Acl
Get-Alias
Get-AuthenticodeSignature
Get-ChildItem
Get-Command
Get-Content
Get-Credential
Get-Culture             Get-Date
Get-EventLog
Get-ExecutionPolicy
Get-Help
Get-History
Get-Host
Get-Item
Get-ItemProperty
Get-Location
Get-Member
Get-PfxCertificate
Get-Process
Get-PSDrive
Get-PSProvider
Get-PSSnapin
Get-Service
Get-TraceSource
Get-UICulture
Get-Unique
Get-Variable
Get-WmiObject
Group-Object
Import-Alias
Import-Clixml
Import-Csv
Invoke-Expression
Invoke-History
Invoke-Item
Join-Path
Measure-Command
Measure-Object
Move-Item               Move-ItemProperty
New-Alias
New-Item
New-ItemProperty
New-Object
New-PSDrive
New-Service
New-TimeSpan
New-Variable
Out-Default
Out-File
Out-Host
Out-Null
Out-Printer
Out-String
Pop-Location
Push-Location
Read-Host
Remove-Item
Remove-ItemProperty
Remove-PSDrive
Remove-PSSnapin
Remove-Variable
Rename-Item
Rename-ItemProperty
Resolve-Path
Restart-Service
Resume-Service
Select-Object
Select-String
Set-Acl
Set-Alias Set-AuthenticodeSignature
Set-Content
Set-Date
Set-ExecutionPolicy
Set-Item
Set-ItemProperty
Set-Location
Set-PSDebug
Set-Service
Set-TraceSource
Set-Variable
Sort-Object
Split-Path
Start-Service
Start-Sleep
Start-Transcript
Stop-Process
Stop-Service
Stop-Transcript
Suspend-Service
Tee-Object
Test-Path
Trace-Command
Update-FormatData
Update-TypeData
Where-Object
Write-Debug
Write-Error
Write-Host
Write-Output
Write-Progress
Write-Verbose
Write-Warning