Why won’t my F*cking SharePoint work?

posted in: Uncategorized | 0

First of all, this post is my personal opinion and does not represent that of my company in any way, shape or form, etc. Also by reading this I assume absolutely no responsibility for anything you do with it, use it at your own risk.

Have you ever been deploying SharePoint and wondered “why won’t my fucking SharePoint work?” I know I sure as shiz have, and it can be frustrating as all get out. One thing you can do to hopefully solve your issue is make sure all the ports are open.

Here’s a script to test a 4 server farm, including the SQL server, but we don’t count that server when we talk about farms. The script does not test hardened ports for SQL, but all you gotta do is update it for whatever port your instance is on.

$ReportPath = “C:\Data”
Start-Transcript -Path $ReportPath
$SQLsvr = “Input SQL Server Name”
$server1 = “Input name of server 1”
$server2 = “Input name of server 2”
$server3 = “Input name of server 3”
$server4 = “Input name of server 4”

Test-NetConnection $SQLsvr -Port 1433 #change this if running on a different port
Test-NetConnection $SQLsvr -Port 1433

Test-NetConnection $server1 -Port 636
Test-NetConnection $server2 -Port 636
Test-NetConnection $server3 -Port 636
Test-NetConnection $server4 -Port 636

Test-NetConnection $server1 -Port 3268
Test-NetConnection $server2 -Port 3268
Test-NetConnection $server3 -Port 3268
Test-NetConnection $server4 -Port 3268

Test-NetConnection $server1 -Port 3269
Test-NetConnection $server2 -Port 3269
Test-NetConnection $server3 -Port 3269
Test-NetConnection $server4 -Port 3269

Test-NetConnection $server1 -Port 88
Test-NetConnection $server2 -Port 88
Test-NetConnection $server3 -Port 88
Test-NetConnection $server4 -Port 88

Test-NetConnection $server1 -Port 53
Test-NetConnection $server2 -Port 53
Test-NetConnection $server3 -Port 53
Test-NetConnection $server4 -Port 53

Test-NetConnection $server1 -Port 445
Test-NetConnection $server2 -Port 445
Test-NetConnection $server3 -Port 445
Test-NetConnection $server4 -Port 445

Test-NetConnection $server1 -Port 25
Test-NetConnection $server2 -Port 25
Test-NetConnection $server3 -Port 25
Test-NetConnection $server4 -Port 25

Test-NetConnection $server1 -Port 135
Test-NetConnection $server2 -Port 135
Test-NetConnection $server3 -Port 135
Test-NetConnection $server4 -Port 135

Test-NetConnection $server1 -Port 5722
Test-NetConnection $server2 -Port 5722
Test-NetConnection $server3 -Port 5722
Test-NetConnection $server4 -Port 5722

Test-NetConnection $server1 -Port 5725
Test-NetConnection $server2 -Port 5725
Test-NetConnection $server3 -Port 5725
Test-NetConnection $server4 -Port 5725

Test-NetConnection $server1 -Port 9389
Test-NetConnection $server2 -Port 9389
Test-NetConnection $server3 -Port 9389
Test-NetConnection $server4 -Port 9389

Test-NetConnection $server1 -Port 139
Test-NetConnection $server2 -Port 139
Test-NetConnection $server3 -Port 139
Test-NetConnection $server4 -Port 139

Test-NetConnection $server1 -Port 809
Test-NetConnection $server2 -Port 809
Test-NetConnection $server3 -Port 809
Test-NetConnection $server4 -Port 809

Active Directory TCP Ports not tested above

Test-NetConnection $server1 -Port 389
Test-NetConnection $server2 -Port 389
Test-NetConnection $server3 -Port 389
Test-NetConnection $server4 -Port 389

Test-NetConnection $server1 -Port 464
Test-NetConnection $server2 -Port 464
Test-NetConnection $server3 -Port 464
Test-NetConnection $server4 -Port 464

Test-NetConnection $server1 -Port 67
Test-NetConnection $server2 -Port 67
Test-NetConnection $server3 -Port 67
Test-NetConnection $server4 -Port 67

Test-NetConnection $server1 -Port 2535
Test-NetConnection $server2 -Port 2535
Test-NetConnection $server3 -Port 2535
Test-NetConnection $server4 -Port 2535

Test-NetConnection $server1 -Port 137
Test-NetConnection $server2 -Port 137
Test-NetConnection $server3 -Port 137
Test-NetConnection $server4 -Port 137

Test-NetConnection $server1 -Port 138
Test-NetConnection $server2 -Port 138
Test-NetConnection $server3 -Port 138
Test-NetConnection $server4 -Port 138

Test-NetConnection $server1 -Port 32843
Test-NetConnection $server2 -Port 32843
Test-NetConnection $server3 -Port 32843
Test-NetConnection $server4 -Port 32843

Test-NetConnection $server1 -Port 32844
Test-NetConnection $server2 -Port 32844
Test-NetConnection $server3 -Port 32844
Test-NetConnection $server4 -Port 32844

Test-NetConnection $server1 -Port 32845
Test-NetConnection $server2 -Port 32845
Test-NetConnection $server3 -Port 32845
Test-NetConnection $server4 -Port 32845

Test-NetConnection $server1 -Port 32846
Test-NetConnection $server2 -Port 32846
Test-NetConnection $server3 -Port 32846
Test-NetConnection $server4 -Port 32846

Test-NetConnection $server1 -Port 80
Test-NetConnection $server2 -Port 80
Test-NetConnection $server3 -Port 80
Test-NetConnection $server4 -Port 80

Test-NetConnection $server1 -Port 443
Test-NetConnection $server2 -Port 443
Test-NetConnection $server3 -Port 443
Test-NetConnection $server4 -Port 443

Search

Test-NetConnection $server1 -Port 808
Test-NetConnection $server2 -Port 808
Test-NetConnection $server3 -Port 808
Test-NetConnection $server4 -Port 808

Test-NetConnection $server1 -Port 16500
Test-NetConnection $server2 -Port 16500
Test-NetConnection $server3 -Port 16500
Test-NetConnection $server4 -Port 16500

Test-NetConnection $server1 -Port 16501
Test-NetConnection $server2 -Port 16501
Test-NetConnection $server3 -Port 16501
Test-NetConnection $server4 -Port 16501

Test-NetConnection $server1 -Port 16502
Test-NetConnection $server2 -Port 16502
Test-NetConnection $server3 -Port 16502
Test-NetConnection $server4 -Port 16502

Test-NetConnection $server1 -Port 16503
Test-NetConnection $server2 -Port 16503
Test-NetConnection $server3 -Port 16503
Test-NetConnection $server4 -Port 16503

Test-NetConnection $server1 -Port 16504
Test-NetConnection $server2 -Port 16504
Test-NetConnection $server3 -Port 16504
Test-NetConnection $server4 -Port 16504

Test-NetConnection $server1 -Port 16505
Test-NetConnection $server2 -Port 16505
Test-NetConnection $server3 -Port 16505
Test-NetConnection $server4 -Port 16505

Test-NetConnection $server1 -Port 16506
Test-NetConnection $server2 -Port 16506
Test-NetConnection $server3 -Port 16506
Test-NetConnection $server4 -Port 16506

Test-NetConnection $server1 -Port 16507
Test-NetConnection $server2 -Port 16507
Test-NetConnection $server3 -Port 16507
Test-NetConnection $server4 -Port 16507

Test-NetConnection $server1 -Port 16508
Test-NetConnection $server2 -Port 16508
Test-NetConnection $server3 -Port 16508
Test-NetConnection $server4 -Port 16508

Test-NetConnection $server1 -Port 16509
Test-NetConnection $server2 -Port 16509
Test-NetConnection $server3 -Port 16509
Test-NetConnection $server4 -Port 16509

Test-NetConnection $server1 -Port 16510
Test-NetConnection $server2 -Port 16510
Test-NetConnection $server3 -Port 16510
Test-NetConnection $server4 -Port 16510

Test-NetConnection $server1 -Port 16511
Test-NetConnection $server2 -Port 16511
Test-NetConnection $server3 -Port 16511
Test-NetConnection $server4 -Port 16511

Test-NetConnection $server1 -Port 16512
Test-NetConnection $server2 -Port 16512
Test-NetConnection $server3 -Port 16512
Test-NetConnection $server4 -Port 16512

Test-NetConnection $server1 -Port 16513
Test-NetConnection $server2 -Port 16513
Test-NetConnection $server3 -Port 16513
Test-NetConnection $server4 -Port 16513

Test-NetConnection $server1 -Port 16514
Test-NetConnection $server2 -Port 16514
Test-NetConnection $server3 -Port 16514
Test-NetConnection $server4 -Port 16514

Test-NetConnection $server1 -Port 16515
Test-NetConnection $server2 -Port 16515
Test-NetConnection $server3 -Port 16515
Test-NetConnection $server4 -Port 16515

Test-NetConnection $server1 -Port 16516
Test-NetConnection $server2 -Port 16516
Test-NetConnection $server3 -Port 16516
Test-NetConnection $server4 -Port 16516

Test-NetConnection $server1 -Port 16517
Test-NetConnection $server2 -Port 16517
Test-NetConnection $server3 -Port 16517
Test-NetConnection $server4 -Port 16517

Test-NetConnection $server1 -Port 16518
Test-NetConnection $server2 -Port 16518
Test-NetConnection $server3 -Port 16518
Test-NetConnection $server4 -Port 16518

Test-NetConnection $server1 -Port 16519
Test-NetConnection $server2 -Port 16519
Test-NetConnection $server3 -Port 16519
Test-NetConnection $server4 -Port 16519

Distributed Cache

Test-NetConnection $server1 -Port 22233
Test-NetConnection $server2 -Port 22233
Test-NetConnection $server3 -Port 22233
Test-NetConnection $server4 -Port 22233

Test-NetConnection $server1 -Port 22234
Test-NetConnection $server2 -Port 22234
Test-NetConnection $server3 -Port 22234
Test-NetConnection $server4 -Port 22234

Test-NetConnection $server1 -Port 22235
Test-NetConnection $server2 -Port 22235
Test-NetConnection $server3 -Port 22235
Test-NetConnection $server4 -Port 22235

Test-NetConnection $server1 -Port 22236
Test-NetConnection $server2 -Port 22236
Test-NetConnection $server3 -Port 22236
Test-NetConnection $server4 -Port 22236

Central Admin Port

Test-NetConnection $server1 -Port 5000
Test-NetConnection $server2 -Port 5000
Test-NetConnection $server3 -Port 5000
Test-NetConnection $server4 -Port 5000

Stop-Transcript