Sunday, September 6, 2015

[WSRV] FSMO Roles




    NetDOM /query FSMO



    There are five FSMO roles:
    • PDC emulator (one per domain): This role allows Windows Server 2003 to act as a Windows NT primary domain controller (PDC), and it provides replication support for Windows NT-based backup domain controllers (BDCs). In addition, this role assists with time and group policy synchronization.
    • Infrastructure master (one per domain): This role is responsible for updating the group-to-user references whenever the members of groups change or receive new names.
    • Relative ID (RID) master (one per domain): This role ensures that every object created has a unique identification number.
    • Schema master (one per forest): This role is responsible for maintaining and modifying the Active Directory schema.
    • Domain naming master (one per forest): This role is responsible for the addition and deletion of domains in a forest.

[WSRV] Telnet cmdlets





* Type NSLOOKUP
> set q=mx
> theirdomain.com

telnet mail.theirdomain.com 25

ehlo mydomain.com
EHLO - introduce yourself to the mail server HELO can also be used but EHLO tells the server to use the extended command set (not that we're using that).

mail from:<martin9700@mydomain.com>
MAIL FROM - who's sending the email. Make sure to place this is the greater than/less than brackets as many email servers will require this (Postini).

rcpt to:<recipient@theirdomain.com>
RCPT TO - who you're sending it to. Again you need to use the brackets. See Step #4 on how to test relaying mail!

DATA - tells the SMTP server that what follows is the body of your email. Make sure to hit "Enter" at the end. If you want a subject for your email type Subject:-type subject here- then press enter twice (these are needed to conform to RFC 882)

. - the period alone on the line tells the SMTP server you're all done with the data portion and it's clear to send the email.

QUIT - exits the TELNET session.


[WSRV] Reset VSS Writers






VSS Writer
Service Name
Service Display Name
ASR Writer
VSS
Volume Shadow Copy
BITS Writer
BITS
Background Intelligent Transfer Service
COM+ REGDB Writer
VSS
Volume Shadow Copy
DFS Replication service writer
DFSR
DFS Replication
DHCP Jet Writer
DHCPServer
DHCP Server
FRS Writer
NtFrs
File Replication
FSRM writer
srmsvc
File Server Resource Manager
IIS Config Writer
AppHostSvc
Application Host Helper Service
IIS Metabase Writer
IISADMIN
IIS Admin Service
Microsoft Exchange Writer
MSExchangeIS
Microsoft Exchange Information Store
Microsoft Hyper-V VSS Writer
vmms
Hyper-V Virtual Machine Management
NTDS
NTDS
Active Directory Domain Services
OSearch VSS Writer
OSearch
Office SharePoint Server Search
OSearch14 VSS Writer
OSearch14
SharePoint Server Search 14
Registry Writer
VSS
Volume Shadow Copy
Shadow Copy Optimization Writer
VSS
Volume Shadow Copy
SPSearch VSS Writer
SPSearch
Windows SharePoint Services Search
SPSearch4 VSS Writer
SPSearch4
SharePoint Foundation Search V4
SqlServerWriter
SQLWriter
SQL Server VSS Writer
System Writer
CryptSvc
Cryptographic Services
TermServLicensing
TermServLicensing
Remote Desktop Licensing
WINS Jet Writer
WINS
Windows Internet Name Service (WINS)
WMI Writer
Winmgmt
Windows Management Instrumentation

[WSRV] Netsh cmdlets



To switch the specified adapter from a static address to DHCP, type the following command:

netsh interface ip set address "Local Area Connection" dhcp

NOTE: Typing this command changes the interface named "Local Area Connection" to DHCP. 

To display all of the adapters in the computer with their current IP addresses to determine the correct adapter name, type the following command:

Netsh interface ip show config

To change to a static address, type the following command:

netsh interface ip set address "Local Area Connection" static ipaddr subnetmask gateway metric

NOTE: Replace ipaddr with the static IP address, subnetmask with the subnet mask, gateway with the default gateway and, if necessary, metric with the appropriate metric. The following example changes the interface "Local Area Connection" to a static address of 192.168.0.10 with a subnet mask of 255.255.255.0, and the interface has a default gateway of 192.168.0.1 with a metric of 1:

netsh interface ip set address "Local Area Connection" static 192.168.0.10 255.255.255.0 192.168.0.1 1

[WSRV] Disable Automatic Maintenance




Automatic Maintenance in Windows Server 2012 R2

psexec \\SERVERNAME -s schtasks /change /tn "\Microsoft\Windows\TaskScheduler\Maintenance Configurator" /DISABLE

In my scenario, I was testing this on my Hyper-V host, so I simply skipped the \\SERVERNAME switch.

psexec -s schtasks /change /tn "\Microsoft\Windows\TaskScheduler\Maintenance Configurator" /DISABLE

[EX2010] DisasterRecovery State





The problem is that exchange thing he is in a DisasterRecovery, but he isn't ??? To solve this issue:

- Start regedit
- Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14.0\roleName
Here is the place that exchange says: DisasterRecovery. Just remove the key and try it again.

[EX2013] Exchange Build Versions




Exchange Server build numbers and release dates



 EXCHANGE 2013
Product name
Release date
Build number
June 17, 2015
15.00.1104.005
March 17, 2015
15.00.1076.9
December 9, 2014
15.00.1044.025
August 26, 2014
15.00.0995.029
May 27, 2014
15.00.0913.022
February 25, 2014
15.00.0847.032
November 25, 2013
15.00.0775.038
Exchange Server 2013 CU2
July 9, 2013
15.00.0712.024
Exchange Server 2013 CU1
April 2, 2013
15.00.0620.029
Exchange Server 2013 (RTM)
December 3, 2012
15.00.0516.032

 EXCHANGE 2010
Product name
Release date
Build number
June 17, 2015
 ​14.3.248.2
March 17, 2015
 ​14.3.235.1
December 12, 2014
14.03.0224.002
Update Rollup 8 v1 for Exchange Server 2010 SP3 (recalled)
December 9, 2014
14.03.0224.001
August 26, 2014
14.03.0210.002
May 27, 2014
14.03.0195.001
February 24, 2014
14.03.0181.006
December 9, 2013
14.03.0174.001
Update Rollup 3 for Exchange Server 2010 SP3
November 25, 2013
14.03.0169.001
Update Rollup 2 for Exchange Server 2010 SP3
August 8, 2013
14.03.0158.001
Update Rollup 1 for Exchange Server 2010 SP3
May 29, 2013
14.03.0146.000
February 12, 2013
14.03.0123.004


 EXCHANGE 2007

Product name
Release date
Build number
June 17, 2015
08.03.0417.0
March 17, 2015
08.03.0406.0
December 9, 2014
08.03.0289.002
August 26, 2014
08.03.0379.002
February 24, 2014
08.03.0348.002
December 9, 2013
08.03.0342.004
Update Rollup 11 for Exchange Server 2007 SP3
August 13, 2013
08.03.0327.001
Update Rollup 10 for Exchange Server 2007 SP3
February 11, 2013
08.03.0298.003
Update Rollup 9 for Exchange Server 2007 SP3
December 10, 2012
08.03.0297.002
Update Rollup 8-v3 for Exchange Server 2007 SP3
November 13, 2012
08.03.0279.006
Update Rollup 8–v2 for Exchange Server 2007 SP3
October 9, 2012
08.03.0279.005
Update Rollup 8 for Exchange Server 2007 SP3
August 13, 2012
08.03.0279.003
Update Rollup 7 for Exchange Server 2007 SP3
April 16, 2012
08.03.0264.000
Update Rollup 6 for Exchange Server 2007 SP3
January 26, 2012
8.03.0245.002
Update Rollup 5 for Exchange Server 2007 SP3
September 21, 2011
8.03.0213.001
Update Rollup 4 for Exchange Server 2007 SP3
May 28, 2011
8.03.0192.001
Update Rollup 3-v2 for Exchange Server 2007 SP3
March 30, 2011
8.03.0159.002
Update Rollup 2 for Exchange Server 2007 SP3
December 10, 2010
8.03.0137.003
Update Rollup 1 for Exchange Server 2007 SP3
September 9, 2010
8.03.0106.002
June 7, 2010
8.03.0083.006