Windows Server 2016

Windows Server 2016 is the successor to Windows Server 2012 R2. Built upon the same core code as Windows 10, Windows Server 2016 brings enhancements in security, servicing, and connectivity. A particular focus on this release was hybrid-cloud scenarios, and has close ties to Azure and other Microsoft cloud initiatives. This does not detract from the many improvements that are available for on-premises-only deployments

Windows Server 2016 comes in Datacenter, Standard, and Essentials editions, and for servicing, has adopted windows 10's cumulative model. The new nano-server install is designed to be remotely managed and is designed to be kept current through continuous feature updates. The full GUI install operates similarly to windows 10's "Long Term Servicing Branch" (LTSB) model with cumulative security updates.

Windows Server 2016 has also shifted from a per-processor-and-CAL licensing model to a per-core-and CAL licensing model. This brings Windows Server's licensing more in line with Microsoft's other products and makes hybrid-cloud license planning easier as well.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi EE,

When running this portion of a PowerShell script:  
Write-Host ""
        Write-Host -ForegroundColor Cyan "Closing existing DB connections. Please wait..."
        Try {
            Invoke-Sqlcmd -ServerInstance $sqlinstance -InputFile $SqlUATconn
            Write-Host -ForegroundColor Green "Connections closed"
        }

Open in new window


I get the following error:

I:\Admin\Scripts\Invoke-Refresh_IsaacMod.ps1 : The 'Invoke-Sqlcmd' command was found in the module 'SqlServer', but the module could not be loaded. For more 
information, run 'Import-Module SqlServer'.
At I:\Admin\Scripts\Invoke-Refresh_IsaacMod.ps1:215 char:13
+             Write-Error $_.Exception.Message
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-Refresh_IsaacMod.ps1

Open in new window


What I don't get about this is I am running PowerShell version  5      , 1,       14393,   2363 and I have already installed the SqlServer module.

Also, the following command was executed on the machine: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned.

Checked to see to the 'invoke-sqlcmd' module is installed by this command; Get-Command -Module SqlServer, it is.

Stepping through the script, it errors out on line 17  SQLServer.psm1 file see attached

I thought there may be a conflict between the SQLPS module and the SQLServer module both are installed (according to get Modules) but when I try to uninstall the SQLPS module I get the following error:

PS C:\Windows\system32> Uninstall-Module -Name sqlps
PackageManagement\Uninstall-Package : No match was found for the specified search criteria and module names 'sqlps'.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:2157 char:21
+ ...        $null = PackageManagement\Uninstall-Package @PSBoundParameters
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Microsoft.Power...ninstallPackage:UninstallPackage) [Uninstall-Package]
   , Exception
    + FullyQualifiedErrorId : NoMatchFound,Microsoft.PowerShell.PackageManagement.Cmdlets.UninstallPackage

Open in new window


So I removed the sqlps module using the remove-module command.

Then ran this command:


Open in new window

0
Acronis Global Cyber Summit 2019 in Miami
 Acronis Global Cyber Summit 2019 in Miami

The Acronis Global Cyber Summit 2019 will be held at the Fontainebleau Miami Beach Resort on October 13–16, 2019, and it promises to be the must-attend event for IT infrastructure managers, CIOs, service providers, value-added resellers, ISVs, and developers.

Hi im looking to  adding registry keys via a GPO but am having mixed results.

I've created a .bat file and added to the startup script on the user configuration profile, but its creating some mixed results.

It applies in full on some PC's but sporadic on others.

Any ideas

Content of batch file

reg add HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Identity /v Version /t REG_DWORD /d 1
reg add HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Identity /v EnableADAL /t REG_DWORD /d 1
reg add HKEY_CURRENT_USER\Software\Microsoft\Exchange /v AlwaysUseMSOAuthForAutodiscover /t REG_DWORD /d 1
0
Hi EE,

I am running a backup in PowerShell:

# Backup existing SQL databases
		Write-Host ""
		Write-Host -ForegroundColor Cyan "$(Get-Date) - Backing up $($DbName[0]) databases. Please wait..."
		Try {
			$DbName | Foreach-Object {
				Backup-SqlDatabase -BackupAction Database -BackupSetDescription "Data refresh from Prod" -CopyOnly -Database $_ -Path $SqlPsPath -BackupFile ($BackupPath + $_ + "_" + (Get-Date -UFormat %Y%m%d-%H%M%S) + ".bak")
				Write-Host -ForegroundColor Green "$(Get-Date) - $_ database backup completed."
			}
		}

Open in new window


It's parsing in the databases just fine, but the process keeps showing up as SUSPENDED in the SQL Server and stays like that never resuming I have waited for 17 minutes no go.

The server it's has very little activity on it as it is a UAT environment.

Any ideas as what could be causing this or commands to drill into the cause of the suspension any assistance is welcome.

Attached is metadata from sysprocesses.

Additional ran the following query get some insight:
SELECT r.wait_type
	   command,
            s.text,
            start_time,
            percent_complete,
            CAST(((DATEDIFF(s,start_time,GetDate()))/3600) as varchar) + ' hour(s), '
                  + CAST((DATEDIFF(s,start_time,GetDate())%3600)/60 as varchar) + 'min, '
                  + CAST((DATEDIFF(s,start_time,GetDate())%60) as varchar) + ' sec' as running_time,
            CAST((estimated_completion_time/3600000) as varchar) + ' hour(s), '
                  + CAST((estimated_completion_time %3600000)/60000 as varchar) + 'min, '
                  + CAST((estimated_completion_time %60000)/1000 as varchar) + ' sec' as est_time_to_go,
            dateadd(second,estimated_completion_time/1000, getdate()) as est_completion_time
FROM sys.dm_exec_requests r
CROSS APPLY sys.dm_exec_sql_text(r.sql_handle) s
WHERE r.command like '%Backup%'

Open in new window


Results of the query attached as well nothing seems wrong to me.

Thank you.
SPID-Details-1.csv
SQL-Diagnostic-Query.csv
0
DHCP Logging Question:  I am running DHCP services on a Windows Server 2016.  I would like to know how I can capture all of the DHCP log activity for an indefinite amount of time in a format that humans can read.  Any suggestions are appreciated.
0
Hi,

I need to remove the end users from the local administrators group on all workstations. For a select group of users, they would need to remain as local admins on their machine. I currently have 1 OU that holds all workstations.  

I see that there are two ways of removing users from admin group. Either using restricted groups gpo or group policy preferences. I dont see much of a difference between the two approaches. In either case it would seem that I would have to create two separate OU's , one for computers that dont have end users in local admin group and the other would have computers not linked to any gpo of this type.  Is this correct? What would be the best approach to this?

Thank you.
0
Hi,

Having an issue on Server 2016 RDS servers where the start menu; action center etc do not work. Fail with error
"ActivateApplicationForContractByAppIdAsUserWithHost of the app Microsoft.Windows.Cortana_cw5n1h2txyewy!CortanaUI for the Windows.Launch contract failed with Package could not be registered.."

Steps taken so far
re-register all windows apps - worked for a little while before failing again
Run through latest set of updates
sfc scan and repair
dsim repair
Test on cloned server excluded from group policies

I see this is a fairly common issue, but i havent seen a solution as yet.

any help would be greatly appreciated at this point
0
SSL certificate setupHi,
 I am setting up Anywhere Access in Windows Server 2016 Essentials. As you can see in the screenshot, I need to enter SSL Certificate for "remote.domain_name.com".
 I have a few questions for this:
 (1) Can I have W2016 Essentials server to create a certificate like I was able to do in SBS2011?
 (2) If option (1) is not possible, where can I buy one cheap? (I know there is a free one out there, but I like to get one)
 (3) Since I am testing "Anywhere Access" on this test server/lab environment, I like to be able to re-assign SSL certificate (that I am going to buy) in production server in a week.
       Can I use SSL Certificate on this test server and use it in production server later?

Thanks for your help.
0
Hi Experts,

we use WIN2016 server and ADFS Server.
What can I do when we have problems with the password sync ?
0
Hi EE,

I am running the following script (the script function is essentially to refresh databases from prod to UAT environments) see attached with the following command:

./Invoke-Edited.ps1 -Environment Test -ScriptBlock {param($p1, $p2)} -ArgumentList $ComputerName, $SQLBackupPath

I am running the scripts remotely and I am getting the following error

Cannot find an overload for ".ctor" and the argument count: "1".
At C:\Invoke-Edited.ps1:54 char:9
+         [ValidateNotNullOrEmpty('DC1PRDSQLFCI02')]

Any assistance is appreciated.

Thank you.
Edited.ps1
0
Looking for trustworthy recommendations for an IT contracting/consulting company in Brazil (Piracicaba, Sao Paulo service area).
Need some on-site hands to install new server and networking equipment along with VMware and Windows OSes.
Must be enterprise level capable.

Thanks.
0
Ensure Business Longevity with As-A-Service
Ensure Business Longevity with As-A-Service

Using the as-a-service approach for your business model allows you to grow your revenue stream with new practice areas, without forcing you to part ways with existing clients just because they don’t fit the mold of your new service offerings.

Will setting a new server 2016 I made it a workgroup instead of a domain.
How can I change it into its new domain?
0
Hello

Looking for some advice. We are working with an outside software vendor they will be connecting into the network via VPN and need to RDP into 2 servers. I can restrict the access from the VPN to the server but once they are on the server they can RDP to other machines on the network. The AD user service account I created to provide to the vendor has local admin rights on the 2 servers they need to RDP into so I can't reliably block it at the firewall.

Is there a way to restrict the "Log on to" to allow RDP access from any system (even a non-domain system) to the specified servers?
0
Hi EE,

I have some trouble running some PowerShell scripts that access SQL servers, below is a picture of the error.

As you can see already have the SQLserver module installed what should do to troubleshoot?

Below is the code used to import the module into the script:

		# Load SQL PowerShell module 
		$MyLoc = Get-Location
		Import-Module SQLSERVER
		Import-Module SQLSERVER -Cmdlet Backup-SqlDatabase
		Import-Module SQLSERVER -Cmdlet Restore-SqlDatabase
     
		Set-Location $MyLoc

Open in new window


Thank you
Powershell-Error.PNG
0
Hello All,

I am trying to remove an old SBS DC that is no longer online.  I was able to remove it from ADSS and ADUC but when I run the ntdsutil and clean the metadata I get the error in the attached file.  The new server is 2016 and it is the DC and holds all the operations masters and is the GC.  I can't remember if 2016 cleans up all metadata once the DC is removed from ADSS or not - I thought it did hence the reason I am getting the error???  I have also already manually removed everything from DNS for the old server.

Any suggestions if the metadata is still there.

Regards,

Rob
0
Hello Experts, I have a new Windows Server 2016 configured as a domain controller.  I was adding workstations and was stopped on number 11 with "Your computer could not be joined to the domain.  You have exceeded the maximum number of computer accounts you are allowed to create in this domain."  My boss purchased 6 Server 2016 10 user CAL packs but I have no idea where to put them.  Any help would be great.
0
Hi Experts

Can I use powershell to set an event, in this case monitor a directory for a file to be created then spawn some SQL that will take the contents of the file as a parameter?

Jo
0
Hi

I have a seperate DC and APP server. I need to install ADFS. Which server should I install the role on. What's best practise.

Thanks
1
I have a Server 2016 RDS Farm that currently has 1x Gateway, 2x Connection Brokers in HA, and 1x session host. It will expand in the future, but just in testing mode right now.

Functionally, everything works perfectly, however when connecting to the environment, cached credentials cannot be used and the "Remember Me" box is missing from the RDP Login box. Note that all connecting machines are going through the RDS Gateway and are not members of the target domain.

I also noticed that this is not an anomaly with this environment. I have a completely separate 2012 RDS farm on a different unrelated domain that exhibits the same behavior. Domain machines bypassing the gateway can save credentials, external people going through the Gateway can't and the checkbox is completely missing .

Being that the same issue exists in 2 different environments, is there a setting somewhere that I can get this working?

The group policies on both the server side and client side are completely stock and I have already tried defining the "Allow Delegating Saved Credentials" Client GPO and defined the connecting "TERMSRV/*" target, which didn't have any effect. Also have verified that the "Allow Delegating Saved Credentials" is also not defined on the server or client side.

My client machine is Windows 10, however I also tried it on an older Windows 7 machine with the same result.
1
Need assistance with using ROBOCOPY on Windows Server 2016 Datacenter. In the past, prior to Server 2003, the /mov or /move switch would simply move the data, including files and folders inside a directory to another directory specified in the command. However, now it deletes the source directory after executing the move, see the command below:

ROBOCOPY "C:\(path)\Upload" "F:\(path)\Upload_Completed" /MOV /E /NP /LOG+:"C:\Scripts\movelog.LOG"

The "Upload" directory is deleted once the command completes. I DO NOT want the "Upload" directory deleted. I ONLY want to move the files and folders to the "Upload_Completed" directory. Is there a better way to achieve this goal. Please advise. Thank you.
0
Microsoft Azure 2017
LVL 13
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

I have a server which we will be retiring because of age. The OS on the server I am retiring is MS server 2008. The OS on the new server is MS Server 2016

The new server will take over the same domain name and IP address as the old one

Does anyone have any tips to make this process run as smooth as possible?

My plan is to make sure I have a local administrator password on the old server then remove it from the domain
Remove the server from Active directory
Change the name and IP address of the new server
0
Hi Expert,

I have a newly setup windows server 2016 on Hyper V and my IE is on Enhanced Security Configuration, it's unable to adjust the Level, it's gray out. Is there a way to adjust the security level? Tried untick the Enable Protected Mode still same. As I can't download stuff with this level. Appreciate if any expert can assist me on.

Thanks!

pic-1.PNG
0
Windows Server 2016 new files are automatically encrypted.  I scanned for malicious programs and thought the server might be infected at first.  I can right click on any of the automatically encrypted files and remove the encrypt flag.
0
Looks like I'm back again.

I created a new domain on my Windows Server 2016 Essentials domain controller, and transferred all my users to it. Everything seemed to be going well until I took off the static ip I had set on one of my user machines.

This led me to check my Server Manager on my one and only domain controller, and I found the following errors.

Error 1202: DFSR
Additional Information:
Error: 160 (One or more arguments are not correct.)

Error 1202: ADWS
This computer is now hosting the specified directory instance, but Active Directory Web Services could not service it. Active Directory Web Services will retry this operation periodically.
 
 Directory instance: NTDS
 Directory instance LDAP port: 389
 Directory instance SSL port: 636

Warning 4013: Microsoft-Windows-DNS-Server-Service
The DNS server is waiting for Active Directory Domain Services (AD DS) to signal that the initial synchronization of the directory has been completed. The DNS server service cannot start until the initial synchronization is complete because critical DNS data might not yet be replicated onto this domain controller. If events in the AD DS event log indicate that there is a problem with DNS name resolution, consider adding the IP address of another DNS server for this domain to the DNS server list in the Internet Protocol properties of this computer. This event will be logged every two minutes until AD DS has signaled that the initial …
0
I have a RAID 5 array of 4 x 4TB disks, I want to swap each disk with a 10TB disk allowing rebuilding between each, then expand the array size at the end to utilise all the new disk space. I’m using Intel Raid web console 2.

I’m hoping the general idea is ok? I’m doing this to prevent data loss, otherwise it’s destroy the array and replace disks.

How do I remove safely and replace a good/configured disk?
0
I'm working on transferring Windows 10 users from one active directory domain to another. I could not add a trust relationship between the two, so I have to manually remove and re-add each account. This isn't too bad as I only have 8 users to go through.

Although after beginning my first migration, I hit a wall because I cannot figure out how I can copy the user profile settings from the old domain account to the new domain account. I opened up Advanced System Settings > User Profiles to see if I could copy the profile, but the Copy To option is greyed out.

I found LapLink's PCmover Profile Migrator tool to migrate the profiles which I'm tempted to try. Though if there is a way to migrate the all user profile settings without purchasing a tool, I would prefer to take that route.
0

Windows Server 2016

Windows Server 2016 is the successor to Windows Server 2012 R2. Built upon the same core code as Windows 10, Windows Server 2016 brings enhancements in security, servicing, and connectivity. A particular focus on this release was hybrid-cloud scenarios, and has close ties to Azure and other Microsoft cloud initiatives. This does not detract from the many improvements that are available for on-premises-only deployments

Windows Server 2016 comes in Datacenter, Standard, and Essentials editions, and for servicing, has adopted windows 10's cumulative model. The new nano-server install is designed to be remotely managed and is designed to be kept current through continuous feature updates. The full GUI install operates similarly to windows 10's "Long Term Servicing Branch" (LTSB) model with cumulative security updates.

Windows Server 2016 has also shifted from a per-processor-and-CAL licensing model to a per-core-and CAL licensing model. This brings Windows Server's licensing more in line with Microsoft's other products and makes hybrid-cloud license planning easier as well.