Category: Servers

Migrate Windows file shares between servers, with permissions
article #1168, updated 14 days ago

Good article, sent by the remarkable Zach Hogan:

https://sysblogging.com/2015/12/29/how-to-migrate-windows-file-server-shares-with-ntfs-permissions/

Categories:   Servers   

==============

GUI SFTP/SCP (SSH File Transfer) Server for Windows
article #1166, updated 28 days ago

SFTP, also called SCP, is not, accurately speaking, FTP. SFTP is “SSH File Transfer”, transfer of files over the SSH protocol, and not the FTP protocol. The FTP protocol has its own excellent secure (FTPS) capabilities, FileZilla being a recommended graphical FTP server for Windows; but GUI servers for SSH are much harder to find. Happily, here is one:

https://www.solarwinds.com/free-tools/free-sftp-server/registration?program=961&c=70150000000FJX0&CMP=BIZ-TAD-PCWDLD-SW_WW_X_PP_PPD_FT_EN_TOPFT_SW-SFTP-X_X_X_X-X

Categories:   Servers   

==============

Current version of PHP and other items on CentOS and RHEL
article #850, updated 98 days ago

Here are two very helpful sources. For many general things, the EPEL repository:

http://fedoraproject.org/wiki/EPEL

and for PHP and other server-specifics, current versions and others more recent than the OSes supply by themselves, Remi:

http://rpms.remirepo.net/

Categories:   Web Servers   Servers

==============

When Group Policy Templates Are Corrupt
article #1099, updated 204 days ago

An elegant solution from here:

https://social.technet.microsoft.com/Forums/systemcenter/en-US/e266d1eb-81ca-4084-8b3b-70f7c6904047/problem-with-inetresadmx?forum=winserverGP

Just go here:

https://www.microsoft.com/en-us/download/details.aspx?id=6243

and download the current versions of all of the templates (the above is for 2008R2, here’s to hoping Microsoft makes them available for all server versions), and replace them.

Categories:   Servers   Windows OS-Level Issues

==============

Installing the GUI onto Windows Server 2012 Core
article #853, updated 221 days ago

The indefatigable Matt Quick provides thus:

http://prajwaldesai.com/switching-between-gui-and-server-core-in-windows-server-2012/

Categories:   Servers   Windows OS-Level Issues

==============

Tuning Windows File Servers
article #1056, updated 309 days ago

Some great new guidance:

https://msdn.microsoft.com/en-us/library/windows/hardware/dn567661(v=vs.85).aspx

Categories:   Servers   

==============

Windows Search Server: initiate crawls by command line and scheduled task
article #965, updated 658 days ago

The automatic crawl scheduler in Windows Search Server sometimes fails; you can get far more positive and creative control with scripting. Here’s how.

First you’ll need the name of the “Search Service Application”. I found these under “Farm Search Administration” in the SharePoint site; the default/built-in is named “Search Service Application”, but on the server being worked there was a second custom one for production work, which for this document we will call “SSAXYZ”.

Now we need the “Content Sources” list. Here’s where we learn whether it’s working or not.

Next step is to create the scripts below. You may want all of them. A usually working location and filename is in each initial comment. If your server doesn’t have an E:, you will need to rewrite just a tad.

The way it works is, you set your scheduled task to run the CMD, and the CMD starts up the PowerShell. It is possible to have the scheduled task run the PowerShell directly, but it’s much harder to read that way. There are two pairs of scripts below, one pair for incremental crawls, and one for full. It is often recommendable to run the incremental daily and the full weekly, if available server horsepower (most of all RAID) is enough for the fileset(s) involved.

The PowerShell comes from here, it stops any crawling which may be going on (or stalled) and restarts the desired (full or incremental), for every Search Service Application. So if you have multiple SSA’s you may want to modify so that it only does what you want.

REM E:\Search Server Scripts\Initiate-Full-Crawl.cmd
C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe  " & ' E:\Search Server Scripts\\Initiate-Full-Crawl.ps1 ' "
# E:\Search Server Scripts\Initiate-Full-Crawl.ps1
Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue
Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "SSAXYZ" | ForEach-Object {
    if ($_.CrawlStatus -ne "Idle")
    {
        Write-Host "Stopping currently running crawl for content source $($_.Name)..."
        $_.StopCrawl()
        do { Start-Sleep -Seconds 1 }
        while ($_.CrawlStatus -ne "Idle")
    }
    Write-Host "Starting full crawl for content source $($_.Name)..."
    $_.StartFullCrawl()
}
REM E:\Search Server Scripts\Initiate-Incremental-Crawl.cmd
C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe  " & ' E:\Search Server Scripts\\Initiate-Incremental-Crawl.ps1 ' "
# E:\Search Server Scripts\Initiate-Incremental-Crawl.ps1
Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue
Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "SSAXYZ" | ForEach-Object {
    if ($_.CrawlStatus -ne "Idle")
    {
        Write-Host "Stopping currently running crawl for content source $($_.Name)..."
        $_.StopCrawl()        
        do { Start-Sleep -Seconds 1 }
        while ($_.CrawlStatus -ne "Idle")
    }
    Write-Host "Starting full crawl for content source $($_.Name)..."
    $_.StartIncrementalCrawl()
}

Categories:   Servers   Sharepoint

==============

Disable WSUS in SBS 2011
article #910, updated 749 days ago

Completion of these steps will free up a lot of resources on an SBS. You will need to have a different method (e.g., Labtech, many others) to keep client machines up to date.

  1. Run (install first if not present) the SQL Server Management Studio.
  2. Connect the Studio, to type Database Engine, server name \\.\pipe\mssql$microsoft##ssee\sql\query
  3. In the Studio, under Databases, you will find an item “SUSDB”.
  4. If you don’t know where the database files are held, find them using the properties of that item.
  5. Run an SQL query to get a list of connections: EXEC sp_who2
  6. Run SQL query/ies to kill all connections to DBName SUSDB only, using the SPIDs, e.g., KILL 999
  7. Right-click SUSDB, “Delete” SUSDB, and close the Studio.
  8. Delete the database files and all of the update files.
  9. Disable the WSUS-related items in services.msc and IIS.

The above is digested from the following:

https://social.technet.microsoft.com/Forums/en-US/d7f5d5bb-6623-4d46-80e6-421674a46829/remove-wsus-from-sbs2011-server?forum=smallbusinessserver

http://blog.mpecsinc.ca/2011/07/sbs-2011-wsus-sql-memory-usage-is-very.html

Categories:   Servers   

==============

Windows Server Essentials integration with Office 365
article #916, updated 816 days ago

If it’s not working or not working well for you, try this:

  1. In the Dashboard, Disable Office 365 integration and Azure integration. It’s two separate steps. If you disable just Office 365 integration you won’t be able to continue.
  2. Set up Office 365 integration.
  3. See lots of interesting information come up quite quicly, in the Office 365 tab after you restart the Dashboard, to confirm that your integration is working very nicely.
  4. If it didn’t work well, open your firewall per Microsoft, and test again.

Categories:   Office 365   Servers

==============

Analyze disk space usage on Windows servers
article #907, updated 833 days ago

The following is highly recommended on Windows servers:

http://windirstat.info/

Categories:   Servers