Showing posts with label Microsoft. Show all posts
Showing posts with label Microsoft. Show all posts

Tuesday, July 28, 2015

Verifying GPO Replication

How will my dear readers !!
I am in a constant search for a script that brings me the replication time of Sysvol ... remembering that the environment in question is "Windows Server 2003" as functional mode domain; that is, we only have the ability to replicate the Sysvol with FRS ... who can help ... .eheheheheh
... During this journey, I came across a very cool function called Get-ADGPOReplication filtering results of the cmdlet Get-GPO so we can compare the versions of each GPO Sysvol on all domain DCs !! So we can verify that replication as well as the policy objects are consistent throughout the domain ... I know at this time hit that will thrill cry !!
Below function code:
function Get-ADGPOReplication
{
<#
.SYNOPSIS
This function retrieve one or all the GPO and Their report DSVersions and SysVolVersions (Users and Computers)
.DESCRIPTION
This function retrieve one or all the GPO and Their report DSVersions and SysVolVersions (Users and Computers)
.PARAMETER GPOName
Specify the name of the GPO
All .PARAMETER
Specify That You want to retrieve all the GPO (slow if you have a lot of Domain Controllers)
.EXAMPLE
Get-ADGPOReplication -GPOName "Default Domain Policy"
.EXAMPLE
Get-ADGPOReplication -All
.NOTES
Francois-Xavier Cat
lazywinadm
lazywinadmin.com
VERSION HISTORY
1.0 22/09/2014 Initial version
Adding some more Error Handling
Fix some typo
#>
#requires -version 3
[CmdletBinding ()]
PARAM (
[Parameter (Mandatory = $ True, ParameterSetName = "One")]
[String []] $ GPOName,
[Parameter (Mandatory = $ True, ParameterSetName = "All")]
[Switch] $ All
)
BEGIN
{
TRY
{
if (-not (Get-Module ActiveDirectory -Name)) {Import-Module ActiveDirectory -Name -ErrorAction Stop -ErrorVariable ErrorBeginIpmoAD}
if (-not (Get-Module -Name GroupPolicy)) {Import-Module -Name GroupPolicy -ErrorAction Stop -ErrorVariable ErrorBeginIpmoGP}
}
CATCH
{
Write-Warning -Message "[BEGIN] Something wrong happened"
IF ($ ErrorBeginIpmoAD) {Write-Warning -Message "[BEGIN] Error while Importing the module Active Directory"}
IF ($ ErrorBeginIpmoGP) {Write-Warning -Message "[BEGIN] Error while Importing the module Group Policy"}
Write-Warning -Message "[BEGIN] $ ($ Error [0] .exception.message)"
}
}
PROCESS
{
FOREACH ($ DomainController in ((Get-ADDomainController -ErrorAction Stop -ErrorVariable ErrorProcessGetDC -filter *). Hostname))
{
TRY
{
IF ($ psBoundParameters ['GPOName'])
{
Foreach ($ GPOItem in $ GPOName)
{
$ GPO = Get-GPO -Name $ GPOItem -Server $ DomainController -ErrorAction Stop -ErrorVariable ErrorProcessGetGPO
[PSCustomObject] [ordered] {@
GroupPolicyName = $ GPOItem
DomainController = $ DomainController
UserVersion = $ GPO.User.DSVersion
UserSysVolVersion = $ GPO.User.SysvolVersion
ComputerVersion = $ GPO.Computer.DSVersion
ComputerSysVolVersion = $ GPO.Computer.SysvolVersion
} #PSObject
} #Foreach ($ GPOItem in $ GPOName)
} #IF ($ PsBoundParameters ['GPOName'])
IF ($ psBoundParameters ['All'])
{
$ GPOList = Get-GPO -All -Server $ DomainController -ErrorAction Stop -ErrorVariable ErrorProcessGetGPOAll
foreach ($ GPO in $ GPOList)
{
[PSCustomObject] [ordered] {@
GroupPolicyName = $ GPO.DisplayName
DomainController = $ DomainController
UserVersion = $ GPO.User.DSVersion
UserSysVolVersion = $ GPO.User.SysvolVersion
ComputerVersion = $ GPO.Computer.DSVersion
ComputerSysVolVersion = $ GPO.Computer.SysvolVersion
} #PSObject
}
} #IF ($ PsBoundParameters ['All'])
} #TRY
CATCH
{
Write-Warning -Message "[PROCESS] Something wrong happened"
IF ($ ErrorProcessGetDC) {Write-Warning -Message "[PROCESS] Error while running retrieving Domain Controllers with Get-ADDomainController"}
IF ($ ErrorProcessGetGPO) {Write-Warning -Message "[PROCESS] Error while running Get-GPO"}
IF ($ ErrorProcessGetGPOAll) {Write-Warning -Message "[PROCESS] Error while running Get-GPO -All"}
Write-Warning -Message "[PROCESS] $ ($ Error [0] .exception.message)"
}
} #FOREACH
} #PROCESS
}
  1. Create a .ps1 file containing the code above, or download it here
  2. Run the script in PS ISE as administrator
  3. Run the function !!
1
We have some syntax options, such as:
To bring the result of a single GPO:
Get-ADGPOReplication -GPOName "Default Domain Policy"
To bring the result of some policies:
Get-ADGPOReplication -GPOName "Default Domain Policy", "Default Domain Controllers Policy"
To bring its results for the All Policies:
Get-ADGPOReplication -All
We can also improve the filters with the following command:
Get-ADGPOReplication -all | Out-GridView -Title "GPO Verify $ (Get-Date)"
2
... Now we just need to be able to filter the time required for a change in Sysvol, is uncommitted in all domain DC's.

Wednesday, February 1, 2012

Hyper-V error "User HAD not accepted the EULA"

These days I came across an error in Hyper-V installed on a server Windows Server 2008.A error "User not HAD accepted the EULA" appears on the console's initial Hyper-V and it was not possible to create virtual machines, errors MMC, compatibility of processors, etc ....

Solution:

Apply KB http://support.microsoft.com/?kbid=950050

Microsoft Certification-Tips and tricks in the hour of exam!

It is almost the rule in all courses I teach, the questions regarding the tips to have a good use in the race. ... So I decided to post some tips for a better use of the test without studying certificação.Claro that the tips will not be worth the nothing! And my tips are not rules, over time, each in its own way develops a strategy to perform the tests.

Previously, I posted other tips related to the certification process ...

Microsoft Certification - Where to start?
Microsoft Certification - Dumps
Microsoft Certification - How to study for the exam!

... And soon, I will surely post more! Rss

Now, let's get to! Below are some tips for the hour of trial:

  • Choose from the center of evidence:
    • The choice of the center is proof enough importante.Prefira testing centers with few machines, so we can limit the amount of people in one room, reducing the chance of those candidates who are talking boring, and "thinking out loud." In the case of centers of tests with many machines (5 or more), look for unpopular times such as weekends in the morning, etc.. (Usually the center of evidence can you tell how many candidates are going to prove in your schedule.).
    • Choose the testing centers whose place of application of evidence, is reserved and with little fuss or not to take away your concentration.
  • Arrive before the scheduled test:
    • Arrive at the center of events, well in advance to start the race with ease, without running, so you arrive, having a coffee, go to the bathroom, finally gets ready physically and mentally, for the hour of trial.
  • Research before the race:
    • Before the examination starts, go through an assessment of knowledge and experience on the platform and conteúdo.Desde or product involved in the time of the NT that has a legend that if you score the lowest in this study, evidence has been less aggressive in content rss ... .... I do not know if this is real, but as my modesty prevents me from pointing out the highest levels of expertise and experience, always follow this tip! rs
  • During the test:
    • VERY IMPORTANT for the duration of the test: BE QUIET! I've seen many candidates who studied hard and the hours of proof of purely psychological disarray did not have a good use, so avoid the "white".
    • Do not waste time with questions that are not sure of the answers, mark it for review and answer the next!
    • Pay attention to the question, there are clues to the person (s) response (s) right (s):
      • Attention at the beginning of the issues where we have information regarding the versions of operating systems and network topology and domains.
      • Note also in requesting the questão.Muitas times are given information not relevant to the question, just to confuse the candidato.Cuidado expressions as smaller enforce administrative solution faster, more secure solution, finally, calls attention to what really question.
      • If the idea does not answer a question, go ahead and mark it for revisão.Na review, analyze better the question in order to undo some of the answers, so maybe it is easier to account for elimination!

These are simple tips that can help in times of trial, especially those just starting out in certificação.No is more than just studying you'll be fine!

I hope it's useful!

Remote Connectivity Analyzer

This URL is in the Toolbox Exchange Server 2010. ...

A good site to have to Favorites:

https://www.testexchangeconnectivity.com

Default permissions of the Sysvol folder

They follow a standard NTFS permissions of the SYSVOL folder:

% SystemRoot% \ Windows \ Sysvol

  • Clear the Allow inheritable permissions from parent to propagate to this object check box
  • Administrators: Full Control
  • Authenticated Users: Read, Read & Execute, List Folder Contents and
  • Creator Owner: Nothing selected
  • Server Operators: Read, Read & Execute, List Folder Contents and
  • System: Full Control

% SystemRoot% \ Windows \ Sysvol \ Sysvol

  • Clear the Allow inheritable permissions from parent to propagate to this object check box

% SystemRoot% \ Winnt \ Sysvol \ Sysvol \ domain

  • Clear the Allow inheritable permissions from parent to propagate to this object check box

% SystemRoot% \ Winnt \ Sysvol \ Sysvol \ domain \ Policies

  • Clear the Allow inheritable permissions from parent to propagate to this object check box
  • Administrators: Full Control
  • Authenticated Users: Read, Read & Execute, List Folder Contents and
  • Creator Owner: Nothing selected
  • Group Policy Creator Owners: Read, Read & Execute, List Folder Contents, Modify, and Write
  • Server Operators: Read, Read & Execute, List Folder Contents and
  • System: Full Control

For each file or folder that is located in the% SystemRoot% \ Winnt \ Sysvol \ Sysvol \ domain \ Policies

  • Check the Allow inheritable permissions from parent to propagate to this object check box

Sysvol share permissions:

  • Administrators: Full Control
  • Authenticated Users: Full Control
  • Everyone: Read

Reference: http://truetechsolutions.supersized.org/archives/8-Default-Permissions-for-Sysvol.html

MSExchange ADAccess 2114

In a recent project, I experienced a problem (at least by the messages on the Installation Wizard on eSales and Viewer - see image below).. This problem occurred (at least in my case) the installation of the Hub-Transport. Below is the message displayed EventViewer ...

MSEXCHANGEADTOPOLOGYSERVICE.EXE Process (PID = 1256). Topology discovery failed, error 0x80040a02 (DSC_E_NO_SUITABLE_CDC). Look up the Lightweight Directory Access Protocol (LDAP) error code specified in the event description. To this, use Microsoft Knowledge Base article 218185, "Microsoft LDAP Error Codes." Use the information in That article to learn more about the cause and resolution to this error. Use the Ping or PathPing command-line tools to test network connectivity to local domain controllers.

... Such an error occurs in Exchange Server 2007.2010. The resolution is put to the same Exchange server account in the Domain Admin group. After inclusion of the server group, restart the server and reinstall Exchange (if the problem has been presented in time of installation.).

Also spent a similar problem with Exchange Server 2003 ... in this case, the situation was regarding the deletion of an account of the Exchange server object AD.A restoration was carried out via ADRESTORE and even after inclusion of the restored object in the security groups required for Exchange Server Exchange services failed to initialize ....

Appears in the Event Viewer event ID 2114 MSExchange DSAccess.

In this case, I performed the following procedures:

  1. After the deletion of the object, restore the same with ADRESTORE;
  2. Add in the server security groups required (in some cases, these steps alone are enough to return to normal services);
  3. Remove the network cable from the Exchange server;
  4. Place the Exchange server in Workgroup and restart the server, without attaching the network cable;
  5. In AD, reset the account of the Exchange server;
  6. Plug the cable into the Exchange server and put it back in the field;
  7. Restart the server;

After these procedures, the services back to work!

Another very common procedure for troubleshooting permissions on an Exchange organization, and runs the setup / domainprep command again in DC.

Hope that helps!

Memory Limits for Windows Releases

The following documentation regarding the limit of physical memory for Windows versions:

http://msdn.microsoft.com/en-us/library/aa366778 (v = VS.85). aspx

Wallpaper does not load in Windows 7 via GPO

A known bug in Windows 7 and Windows Server 2008 R2 is for the loading of the wallpaper, when it is configured via GPO.

To solve the problem, we can take the following actions:

  • Enter the machine's registry ( http://en.kioskea.net/faq/589-how-to-open-registry )
  • Navigate to the following key:
    • HKEY_CURRENT_USER \ Control Panel \ Desktop
  • Find the REG_SZ value called Wallpaper
  • Change the value with the path where the wallpaper is shared.

image

You can download a fix that will make the change:

If necessary change on multiple workstations, we can effect such change through thePreferences via GPO. As the image below:

image

If your domain is Windows Server 2003 and either does not support the Preferences feature, you need the distribution via script to make the change key in the registry.

The following example:

Const HKEY_CURRENT_USER = & H80000001

strComputer = "."
Set oReg = GetObject ("winmgmts: {ImpersonationLevel = impersonate}! \ \" & _
strComputer & "\ root \ default: StdRegProv")
strKeyPath = "Control Panel \ Desktop"
strValueName = "Wallpaper"
strValue = "\ \ server \ share \ wallpaper.jpg"
oReg.SetStringValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName, strValue

Resolve NetBIOS names to VPN

After questioning several times regarding this topic of NetBIOS name resolution when connected to a VPN Server and ISA or TMG, I decided to stop being bum and post the settings needed to solve this problema.Na fact, it is a simple single configuration!

The nature of the problem is as follows:

When connected to the VPN, you can just drop the equipment on the internal network via the IP address and the FQDN of the machine (eg server.domain.local) is not possible to resolve NetBIOS names of the form (eg server). For this to happen, we must make the following configuration on the VPN client connection:

In the Connection Properties, click the tab and then the NETWORKING PROPERTIES TCP/IPv4 protocol. ... Click on the ADVANCED tab and DNS. Check the option DNS suffix for this connection, the DNS domain suffix, as in the image below!

Capture

Preview of Windows 8

Personal
Follow the link prior official Microsoft Windows 8! .... One to study more ...

http://www.microsoft.com/presspass/features/2011/jun11/06-01corporatenews.aspx

Migrate Server Roles to Windows Server 2008 R2

Below is a URL that I think is very interesting, especially for computer consultants, where deployments and migrations are part of the day is dia.Trata tutorials migration of server roles in Windows Server 2003 and Windows Server 2008 to Windows Server 2008 R2.

http://technet.microsoft.com/en-us/library/dd365353 (WS.10). aspx

Monday, March 28, 2011

Microsoft Certification - How to study for the exam!

Several people question me in training, what better way to study for a good performance in tests of certificação.Este is a very particular point of each, since each person has different ways of absorbing information.

In this sense, I can pass safely which is the way I prepare for exams, so each can use the way you see fit.

What we now start to put in mind is that the issues of proof are different from the actual experience we have with the product in "real life", which often causes the failure of experienced consultants.

When I study for a Microsoft certification exam, the first step is to verify the matter of proof, this can be easily checked on site examinations CatalogMicrosoft.Uma information from this catalog is very interesting that it shows how each procentagem issue in the race! And that's pretty cool so we can focus on more important matters.

The material I recommend for study, is the Training Kit from Microsoft (which is a publication focused on the examination). This material includes all matter of proof, beyond the material in digital format and simulated.

I also use other information sources such as the Internet, the official website of the product, TechNet, expert blogs, help the product, video lectures ,laboratories , training etc ... The official attendance is very important (especially if the instructor is good) and greatly accelerate the understanding of matter, the official course material (MOC) provides a base on products, making it almost always necessary to consult another source to supplement the information.

After the study and general understanding of the issues covered in the test (thetime required for the study of matter, directly depends on the time devoted to this study X the ability to absorb information), it is time to put their knowledge to the test through simulados.Is important to "train" the simulated, then we can have a closer experience of the test (timing, interface, etc.).

Beware DUMP's ... I'm not going to dwell on the subject, because I already expressed my opinion about it . The simulations are to recommend theTranscender , the next in-Training Kit (Self-Paced) and any other simulated honest.

The technique I use with simulated is as follows ...

... I'm answering the questions for practice, no doubt about that meeting in question, I return to study materials (mentioned above) in order to find the answer to the question of simulated and only then respond to the simulated exhaustively questão.Pratique to achieve greater than 85% correct on the issues (of course this time may also vary according to your commitment and willingness to studies) ... after that, just go to prove!

Good luck to everyone!

Soon I will write some techniques to do well at test time!

I hope this is helpful!!

0 × 00000024 (Kaspersky 0x001904AA ...

I had an experience at least annoying with Windows Server 2008 and Kaspersky antivirus, the research I did, the same problem occurs with Windows Vista.

The symptom is continuous reboot server.The server boots into SAFE MODE normally, but in normal mode remains at the logon screen for some time and the system reboots after showing a blue screen.

The error code shown on the blue screen 0 × 00000024 (0x001904AA ...(the rest of the code may vary).

The solution to the problem was removing the Kaspersky antivirus from the server, using the procedures listed in the following sitehttp://hubpages.com/hub/How-to-uninstall-or-remove-Kaspersky-totally

Another method I found but have not tested, is to rename or delete the file% windir% \ system32 \ drivers \ klif.sys in SAFE MODE and reboot the server.

I hope this is helpful!

Task Sequence Error 0 × 80070032

Guys,

Making tests deploy OSD in SCCM 2007 R2 SP2, I came across the error 0 × 80070032 Task Sequence to run the image capture.

The problem is related (at least in my case) not on the machine running SYSPREP reference.

Script to do a merge between GPO's

Below is the url regarding PowerShell script to perform a merge of two GPO's

http://blogs.technet.com/b/ashleymcglone/archive/2011/01/19/finally-copy-and-merge-gpos-powershell-saves-the-day.aspx

Lifecycle support for Microsoft products

How are ladies and gentlemen?!?!

I am posting below the url of the referring site lifecycle support of Microsoft products ...

http://support.microsoft.com/lifecycle/search/

... Just make your search and plan for the upgrade! Rss

Monitor size and number of files or folders and with SCOM

A save everyone!

Here's link related to monitoring the quantity and size of folders and files via the SCOM:

http://www.tek-tips.com/viewthread.cfm?qid=954944

http://msmvps.com/blogs/clebermarques/archive/2008/08/08/scom-2007-como-monitorar-quantos-arquivos-tem-em-uma-pasta.aspx

http://social.technet.microsoft.com/Forums/pt-BR/syscenterpt/thread/c5060cbc-532e-481c-9bb0-ec699da2c746

This is special for the class of the BF 50028!

Infrastructure Planning and Design

Follow link to document planning and design of infrastructure:

http://www.microsoft.com/downloads/en/details.aspx?FamilyId=AD3921FB-8224-4681-9064-075FDF042B0C&SAMI_CAMPAIGN_NAME=IPDMEDVRTM030309_IPDDL&displaylang=en

Microsoft Server 2010 documentation Lync

Follow links to related documentation of Microsoft Server 2010 Lync:

Design

Deploy

Features

Exchange Server 2010 Deployment Assistance

Guys,

Follow link for Exchange Server 2010 Deployment Assistance. Very useful for migration projects for an organization or native and coexistence with other versions, including BPOS.

# http://technet.microsoft.com/pt-br/exdeploy2010/default.aspx Index