PS C:\>$Profile = Get-NetConnectionProfile -InterfaceAlias
PS C:\>$Profile.NetworkCategory =
PS C:\>Set-NetConnectionProfile -InputObject $Profile
A more reliable way of remembering useful IT things that I encounter with an added sprinkle of poor grammar.
netdom query fsmo
NTDS (460) NTDSA: Corruption was detected during soft recovery in logfile C:\WINDOWS\NTDS\edb.log. The failing checksum record is located at position END. Data not matching the log-file fill pattern first appeared in sector 14418 (0x00003852). This logfile has been damaged and is unusable.When restarting the server, the following message was appearing and when clicking 'OK', the DC would then reboot.
Stub zones do not provide the same server-to-server benefit because a DNS server hosting a stub zone in one network will reply to queries for names in the other network with a list of all authoritative DNS servers for the zone with that name, instead of the specific DNS servers you have designated to handle this traffic.
When configuring the server, no matter what config I used, the 'Domain' profile was being associated with the external NIC, this is a problem due to the Network Location Awareness functionality within the Operating System which I could not resolve elegantly. After much Googling I resorted to a Block rule in the Windows Firewall.The adapter configured as external-facing is connected to a domain
There is no valid certificate to be used by IPsec which chains to the root/intermediate certificate configured to be used by IPsec in the DirectAccess configuration.The fix was to allow the DirectAcess server to auto enrol it's own Computer Certificate, even though a Server Authentication cert was present in it's Local Computer Cert Store. The Enhanced Key Usage on our Computer Certificate Template includes Server Authentication and Client Authentication, I believe that it's the Client Authentication that made the difference.
Unable to create ADODB.Connection object, impossible to query SQL Server: ActiveX component can't create object (429)After some research and forum posts I managed to confirm that the upgrade process had removed MDAC from the MDT Boot Image and therefore crippling database connectivity when inside WinPE. To resolve this, I found it necessary to recreate the the MDT Boot Image from within the SCCM Admin Console.
Option Explicit
On Error Resume Next
Dim strDBServerName, strDBName, strDBUser, strDBPass, strConnString, strComputerName, strNSFSize, strLine, strNSFMarkerPath
Dim wshNetwork, cmdObj, recObj, sysinfo, objFSO, objFileMarker, colFiles, objWMIService, objFileNSF
Set objFSO = CreateObject("Scripting.FileSystemObject")
strNSFMarkerPath = "C:\NSFSurvey.txt"
If NOT objFSO.FileExists(strNSFMarkerPath) Then
Set wshNetwork = WScript.CreateObject( "WScript.Network" )
Set sysInfo = CreateObject("ADSystemInfo")
strComputerName = wshNetwork.ComputerName & "." & sysInfo.DomainDNSName
strDBServerName = ""
strDBName = "NSFSize"
strDBUser = ""
strDBPass = ""
strConnString = "driver=sql server;server=" & strDBServerName & ";database=" & strDBName & ";uid=" & strDBUser & ";pwd=" & strDBPass
Set cmdObj=createobject("adodb.command")
Set recObj=createobject("adodb.recordset")
Set objWMIService = GetObject("winmgmts:\\" & wshNetwork.ComputerName & "\root\cimv2")
Set colFiles = objWMIService.ExecQuery _
("Select * from CIM_DataFile Where Extension = 'nsf' AND (Drive = 'C:')")
If colFiles.Count = 0 Then
Set objFileMarker = objFSO.CreateTextFile(strNSFMarkerPath)
Wscript.Quit
End If
For Each objFileNSF in colFiles
strNSFSize = CLng(strNSFSize) + objFileNSF.FileSize
Next
'Wscript.Echo strNSFSize
With cmdObj
.activeconnection=strConnString
.commandtype=4
.commandtext="dbo.USP_NSFSize"
.parameters.refresh
.parameters(1).value = strComputerName
.parameters(2).value = strNSFSize
.execute
End with
Set objFileMarker = objFSO.CreateTextFile(strNSFMarkerPath)
End If
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[NSFSizes](
[Timestamp] [datetime] NULL,
[computerFQDN] [varchar](55) NOT NULL,
[NSFSize] [bigint] NOT NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[USP_NSFSize]
@strComputerName varchar(55),
@strNSFSize bigint
AS
INSERT INTO dbo.NSFSizes (Timestamp, computerFQDN, NSFSize) VALUES (GETDATE(),@strComputerName, @strNSFSize)
asu64.exe set imm.hostipaddress1 192.168.1.10
asu64.exe set imm.hostipsubnet1 255.255.255.0
asu64.exe set imm.gatewayipaddress1 192.168.1.1
asu64.exe set imm.dhcp1disabled
asu64.exe set imm.reboot