Page File – The definitive guide

Hi folks,

Today I found a very interesting blog post talking about page file. This days I’m doing architectural  design for differents sharepoint 2013 environments and SQL backends are physical machines with 144 Gb of RAM.

Not only are interesting the posted info, read also the comments.

http://blogs.technet.com/b/motiba/archive/2015/10/16/page-file-the-definitive-guide.aspx

Regards!

How to enable Recycle bin in ADDS 2008 R2

Hi!

To enable Recycle bin feature in ADDS 2008 R2 you need to do the following steps:

  1. Connect to a domain controller and open Active Directory Module for Powershell.
  2. Execute the command: Get-ADOptionalFeature ‘recycle bin feature’.With this line you can see if Recycle bin is enabled or not if EnabledScopes is blank.recyclebin00
  3. Copy DistinguishedName showed on the executed command and execute the following command: Enable-ADOptionalFeature -identity ‘CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=YourDomainXXX,DC=XXX’ -Scope ForestOrConfigurationSet -Target ‘YourDomainXXX.XXX’
  4. Push Y.recyclebin01

Regards!

Failed to obtain the InfrastructureMaster using a well known GUID in ADDS 2008 R2

Hi!

Checking and ADDS 2008 R2 I saw the following error in Eventvwr:

AD Replication Monitoring : encountered a runtime error.Failed to obtain the InfrastructureMaster using a well known GUID.The error returned was: ‘Failed to get the ‘fSMORoleOwner’ attribute from the object ‘LDAP://DC1.YourDomainXXX.XXX/<WKGUID=2fbac1870ade11d297c400c04fd8d5cd,DC=ForestDnsZones,DC=YourDomainXXX,DC=XXX>’.The error returned was: ‘There is no such object on the server.’ (0x80072030)’ (0x80072030)

fsmoroleowner01

To solve it I did the following actions:

  1. Open Adsi Edit and connect to Configuration Naming Context.
  2. Go to CN=NTDS Settings,CN=YourServerNameXXX,CN=Servers,CN=YourSiteXXX,CN=Sites,CN=Configuration,DC=YourDomainXXX,DC=XXX and right click on properties.
  3. Seek distinguishedName, push View button and copy all the line.fsmoroleowner02
  4. Connect to DC=ForestDnsZone,DC=YourDomainXXX,DC=XXX and right click Properties over CN=Infrastructure.
  5. Seek fsMORoleOwner and push Edit.fsmoroleowner03
  6. Erase the line and paste the line copied steps before. Push OK.
  7. Open a new connection to DC=DomainDnsZones,DC=YourDomainXXX,DC=XXX and repeat same steps.

Your Warnings with ID 1000 will disappear.

Regards!

Dcdiag fails for NCSecDesc test on Windows 2008 R2 Domain Controllers

Hi!

These days I’m checking an ADDS 2008 R2 forest. and when I did a dcdiag I saw the tipicall error in the NCSecDesc test :

* Security Permissions Check for C=ForestDnsZones,DC=domainXXX,DC=org

(NDNC,Version 3)

Error NT AUTHORITY\ENTERPRISE DOMAIN CONTROLLERS doesn’t have Replicating Directory Changes In Filtered Set access rights for the naming context: DC=ForestDnsZones,DC=domainXXX,DC=XXX

* Security Permissions Check for DC=DomainDnsZones,DC=domainXXX,DC=org

(NDNC,Version 3)

Error NT AUTHORITY\ENTERPRISE DOMAIN CONTROLLERS doesn’t have           Replicating Directory Changes In Filtered Set access rights for the naming context: DC=DomainDnsZones,DC=domainXXX,DC=XXX

This error not`s important if you don’t want to implement RODC but anyway you have two options to solve it:

As Microsoft says you can follow this article to fix it:

https://support.microsoft.com/en-us/kb/967482

But if you want to fix it manually you can do the following steps:

  1. Open Adsi Edit and Connect to the connecting point: DC=ForestDnsZoones,DC=DomainXXX,DC=XXXconnect01
  2. Over DC=ForestDnsZoones,DC=DomainXXX,DC=XXX right click and select Properties.
  3. In Security Tab push on Advanced.
  4. Select Enterprise Domain Controllers with Replicating Directory Changes and push Edit.connect02
  5. Select Allow checkbox to Replicating Directory Changes In Filter Set and Apply to This object and all descendant objects, also select Apply these permissions to objects and/or contaniers within this container only.connect03
  6. Connect to C=DomainDnsZones,DC=domainXXX,DC=XXX and do the same actions.

Regards!

 

Generating a 2008 R2 VM Template with DISM

Hi all!

Here I show how to make a new template for WS 2008 R2 EE with DISM installed in a WS 2012 R2 CU1:

Pre-requisites: WADK 8.1 http://www.microsoft.com/en-us/download/details.aspx?id=39982

Copy wim file from WS 2008 R2 EE image and paste in your local C:\W2008R2_Template

Resuming actions:

  • OS WS 2008 R2 Enterprise
  • Telnet client enabled
  • Spanish regional settings
  • UTC+1 Time Zone
  • All updates added from a repository generated with wsusoffline931 http://download.wsusoffline.net/
  • VHDX with 120GB
  • Boot partition 350MB
  • System Partition 119GB

Hands on:

Open DISM CMD with elevated privileges and execute

Template with Features:
—————————-

dism /Mount-Wim /WimFile:C:\W2008R2_Template\VMTemplate.wim /Index:3 /MountDir:C:\W2008R2_Template\new_vm

dism /image:C:\W2008R2_Template\new_vm /Enable-Feature /FeatureName:TelnetClient

dism /image:C:\W2008R2_Template\new_vm /set-syslocale:es-ES
Dism /image:C:\W2008R2_Template\new_vm /Set-UserLocale:es-ES
Dism /image:C:\W2008R2_Template\new_vm /Set-Inputlocale:040a:0000040a

Dism /image:C:\W2008R2_Template\new_vm /Set-TimeZone:”Romance Standard Time”

Dism /unmount-wim /mountdir:C:\W2008R2_Template\new_vm /commit

Adding updates:
—————–
dism /mount-wim /wimfile:C:\W2008R2_Template\VMTemplate.wim /index:3 /mountdir:C:\W2008R2_Template\new_vm

DISM /image:C:\W2008R2_Template\new_vm /Add-Package /Packagepath:C:\WUpdates2k8R2

Dism /unmount-wim /mountdir:C:\W2008R2_Template\new_vm /commit

Open CMD with elevated privileges and execute:

Creating VHDX:
————

diskpart
create vdisk file=C:\W2008R2_Template\vhdx\VMTemplate.vhdx maximum=122880 type=expandable
select vdisk file=C:\W2008R2_Template\vhdx\VMTemplate.vhdx
Attach vdisk

Create partition primary size=350
Format quick fs=ntfs
Assign letter=M
Active
Create partition primary
Format quick fs=ntfs
Assign letter=V
exit

Open DISM CMD with elevated privileges and execute

—————–

dism /apply-image /imagefile:C:\W2008R2_Template\VMTemplate.wim /index:3 /applydir:V:\

V:\windows\system32\bcdboot V:\windows /s M:

Open CMD with elevated privileges and execute:

Diskpart
Select vdisk file=C:\W2008R2_Template\vhdx\VMTemplate.vhdx
Detach vdisk
exit