FYI: Testing SYSVOL Replication Latency/Convergence Through PowerShell (Update 2)

see:
(2014-02-02)
Testing SYSVOL Replication Latency/Convergence Through PowerShell (Update 2)
Jorge de Almeida Pinto [MVP-DS] | Principal Consultant | BLOG: http://jorgequestforknowledge.wordpress.com/

see:
http://jorgequestforknowledge.wordpress.com/2014/02/16/testing-active-directory-replication-latencyconvergence-through-powershell-update-3/
Jorge de Almeida Pinto [MVP-DS] | Principal Consultant | BLOG: http://jorgequestforknowledge.wordpress.com/

Similar Messages

  • Testing SYSVOL Replication Latency/Convergence Through PowerShell (Update 3)

    see:
    http://jorgequestforknowledge.wordpress.com/2014/02/17/testing-sysvol-replication-latencyconvergence-through-powershell-update-3/
    Jorge de Almeida Pinto [MVP-DS] | Principal Consultant | BLOG: http://jorgequestforknowledge.wordpress.com/

    see:
    http://jorgequestforknowledge.wordpress.com/2014/02/16/testing-active-directory-replication-latencyconvergence-through-powershell-update-3/
    Jorge de Almeida Pinto [MVP-DS] | Principal Consultant | BLOG: http://jorgequestforknowledge.wordpress.com/

  • FYI: Testing Active Directory Replication Latency/Convergence Through PowerShell (Update 2)

    see:
    (2014-02-01) Testing Active Directory Replication Latency/Convergence Through PowerShell (Update
    2)
    Jorge de Almeida Pinto [MVP-DS] | Principal Consultant | BLOG: http://jorgequestforknowledge.wordpress.com/

    Might that link has been been broken.Here is the link
    http://jorgequestforknowledge.wordpress.com/2014/02/01/testing-active-directory-replication-latencyconvergence-through-powershell-update-2/
    Nice Jorge. Thanks for sharing.
    Regards~Biswajit
    Disclaimer: This posting is provided & with no warranties or guarantees and confers no rights.
    MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, MCTS, Enterprise Admin
    MY BLOG
    Domain Controllers inventory-Quest Powershell
    Generate Report for Bulk Servers-LastBootUpTime,SerialNumber,InstallDate
    Generate a Report for installed Hotfix for Bulk Servers

  • Windows 2012 - SYSVOL replication and NETLOGON share

    After reading 100 tons of articles and links i decided to open this thread.
    I know today is 1st of april, but unfortunately for me this is not a joke.
    given:
    two 2003 DC's - physical servers
    two 2008 DC's - VM's on ESX 5.1 hosts
    two 2012 DC's - VM's on ESX 5.5 hosts
    domian fucntional level 2003
    situation:
    we plan to decom the 2003's.
    The 2008 DC's are in place since a while and working ok.
    We plan to upgrade to 2012 and here it is where the trouble starts.
    Firstly, I couldn't, by any means, to promote 2012 as DC's until i moved all the FSMO roles from the 2003 DC's to the 2008 DC's.
    After lots of work with the network team we made all the right connections opened the firewalls, made the DCDIAG and DNS tests and the only problem reported are the SYSVOL replication and NETLOGON share.
    I tried all the tools out there to check the replication and the last one is Microsoft's AdRplstatus Tool which made me think that either Microsoft makes fun of me, either i'm the dumbest windows admin on this planet.
    This tool reports that there are NO ERRORS in replicating SYSVOL, but when i run the command 'net share' the 'domain.com\sysvol\scripts' is not there. Further more checking, i try to access '\\domain.com\sysvol' - directory under which i must find the 'policies'
    and 'scripts' folders and, Sysvol is empty - obviously these are present when i do this check from the 2008 DC's or 2003 DC's.
    Is there a known issue for these problems regarding 2012 and ESX 5.5 ? - still, i doubt it.
    DCDIAG /TEST:DNS
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       Home Server = dc-p01
       * Identified AD Forest.
       Done gathering initial info.
    Doing initial required tests
       Testing server: dc-p01
          Starting test: Connectivity
             ......................... dc-p01 passed test Connectivity
    Doing primary tests
       Testing server: dc-p01
          Starting test: DNS
             DNS Tests are running and not hung. Please wait a few minutes...
             ......................... dc-p01 passed test DNS
       Running partition tests on : ForestDnsZones
       Running partition tests on : DomainDnsZones
       Running partition tests on : Schema
       Running partition tests on : Configuration
       Running partition tests on : domain
       Running enterprise tests on : domain.com
          Starting test: DNS
             Test results for domain controllers:
                DC: dc-p01.domain.com
                Domain: domain.com
                   TEST: Dynamic update (Dyn)
                      Warning: Failed to delete the test record dcdiag-test-record i
    n zone domain.com
             Summary of test results for DNS servers used by the above domain
             controllers:
                DNS server: 184.134.0.97 (<name unavailable>)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
    S server 184.134.0.97
                   dc-p01                       PASS
    PASS PASS PASS WARN PASS n/a
             ......................... domain.com passed test DNS
    The PTR record query for 1.0.0.127 is still there but i will change it manually, my DNS is set as primary to point to the server itself by it's IP and not 127.0.0.1.
    still, that DNS server with that error is a linux DNS, but all my DC's have DNS role on and fully replicating and working, including the 2012's.
    DCDIAG:
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       Home Server = dc-p01
       * Identified AD Forest.
       Done gathering initial info.
    Doing initial required tests
       Testing server: dc-p01
          Starting test: Connectivity
             ......................... dc-p01 passed test Connectivity
    Doing primary tests
       Testing server: dc-p01
          Starting test: Advertising
             ......................... dc-p01 passed test Advertising
          Starting test: FrsEvent
             There are warning or error events within the last 24 hours after the
             SYSVOL has been shared.  Failing SYSVOL replication problems may cause
             Group Policy problems.
             ......................... dc-p01 passed test FrsEvent
          Starting test: DFSREvent
             ......................... dc-p01 passed test DFSREvent
          Starting test: SysVolCheck
             ......................... dc-p01 passed test SysVolCheck
          Starting test: KccEvent
             ......................... dc-p01 passed test KccEvent
          Starting test: KnowsOfRoleHolders
             ......................... dc-p01 passed test KnowsOfRoleHolders
          Starting test: MachineAccount
             ......................... dc-p01 passed test MachineAccount
          Starting test: NCSecDesc
             ......................... dc-p01 passed test NCSecDesc
          Starting test: NetLogons
             Unable to connect to the NETLOGON share! (\\dc-p01\netlogon)
             [dc-p01] An net use or LsaPolicy operation failed with error 67,
             The network name cannot be found..
             ......................... dc-p01 failed test NetLogons
          Starting test: ObjectsReplicated
             ......................... dc-p01 passed test ObjectsReplicated
          Starting test: Replications
             REPLICATION-RECEIVED LATENCY WARNING
             dc-p01:  Current time is 2014-04-01 10:25:09.
                DC=ForestDnsZones,DC=mydomain,DC=lan
                   Last replication received from DC-P02 at
              2014-03-31 15:22:40
                DC=DomainDnsZones,DC=mydomain,DC=lan
                   Last replication received from DC-P02 at
              2014-03-31 15:22:40
                CN=Schema,CN=Configuration,DC=mydomain,DC=lan
                   Last replication received from DC-P02 at
              2014-03-31 15:22:40
                CN=Configuration,DC=mydomain,DC=lan
                   Last replication received from DC-P02 at
              2014-03-31 15:25:50
                DC=mydomain,DC=lan
                   Last replication received from DC-P02 at
              2014-03-31 15:22:40
             ......................... dc-p01 passed test Replications
          Starting test: RidManager
             ......................... dc-p01 passed test RidManager
          Starting test: Services
             ......................... dc-p01 passed test Services
          Starting test: SystemLog
             A warning event occurred.  EventID: 0xA004001B
                Time Generated: 04/01/2014   09:26:35
                EvtFormatMessage failed, error 15027 the message resource is present
     but the message is not found in the string/message table.
                (Event String (event log = System) could not be retrieved, error
                0x3ab3)
             An error event occurred.  EventID: 0x0000272C
                Time Generated: 04/01/2014   09:27:52
                Event String:
                DCOM was unable to communicate with the computer ca-p01.domain.com
    n using any of the configured protocols; requested by PID      fdc (C:\Windows\s
    ystem32\taskhost.exe).
             A warning event occurred.  EventID: 0xA004001B
                Time Generated: 04/01/2014   09:31:14
                EvtFormatMessage failed, error 15027 the message resource is present
     but the message is not found in the string/message table.
                (Event String (event log = System) could not be retrieved, error
                0x3ab3)
             A warning event occurred.  EventID: 0xA004001B
                Time Generated: 04/01/2014   09:32:13
                EvtFormatMessage failed, error 15027 the message resource is present
     but the message is not found in the string/message table.
                (Event String (event log = System) could not be retrieved, error
                0x3ab3)
             An error event occurred.  EventID: 0x0000272C
                Time Generated: 04/01/2014   09:32:53
                Event String:
                DCOM was unable to communicate with the computer ca-p01.domain.com
    n using any of the configured protocols; requested by PID      c18 (C:\Windows\s
    ystem32\taskhost.exe).
             A warning event occurred.  EventID: 0xA004001B
                Time Generated: 04/01/2014   09:35:33
                EvtFormatMessage failed, error 15027 the message resource is present
     but the message is not found in the string/message table.
                (Event String (event log = System) could not be retrieved, error
                0x3ab3)
             An error event occurred.  EventID: 0x0000272C
                Time Generated: 04/01/2014   09:37:54
                Event String:
                DCOM was unable to communicate with the computer ca-p01.domain.com
    n using any of the configured protocols; requested by PID      950 (C:\Windows\s
    ystem32\taskhost.exe).
             An error event occurred.  EventID: 0x0000272C
                Time Generated: 04/01/2014   09:42:54
                Event String:
                DCOM was unable to communicate with the computer ca-p01.domain.com
    n using any of the configured protocols; requested by PID      5c4 (C:\Windows\s
    ystem32\taskhost.exe).
             An error event occurred.  EventID: 0x0000272C
                Time Generated: 04/01/2014   09:47:55
                Event String:
                DCOM was unable to communicate with the computer ca-p01.domain.com
    n using any of the configured protocols; requested by PID      ee0 (C:\Windows\s
    ystem32\taskhost.exe).
             An error event occurred.  EventID: 0x0000272C
                Time Generated: 04/01/2014   09:52:56
                Event String:
                DCOM was unable to communicate with the computer ca-p01.domain.com
    n using any of the configured protocols; requested by PID      e48 (C:\Windows\s
    ystem32\taskhost.exe).
             A warning event occurred.  EventID: 0xA004001B
                Time Generated: 04/01/2014   09:53:30
                EvtFormatMessage failed, error 15027 the message resource is present
     but the message is not found in the string/message table.
                (Event String (event log = System) could not be retrieved, error
                0x3ab3)
             An error event occurred.  EventID: 0x0000272C
                Time Generated: 04/01/2014   09:57:57
                Event String:
                DCOM was unable to communicate with the computer ca-p01.domain.com
    n using any of the configured protocols; requested by PID      a20 (C:\Windows\s
    ystem32\taskhost.exe).
             An error event occurred.  EventID: 0x0000272C
                Time Generated: 04/01/2014   10:02:58
                Event String:
                DCOM was unable to communicate with the computer ca-p01.domain.com
    n using any of the configured protocols; requested by PID      1bc (C:\Windows\s
    ystem32\taskhost.exe).
             A warning event occurred.  EventID: 0xA004001B
                Time Generated: 04/01/2014   10:06:04
                EvtFormatMessage failed, error 15027 the message resource is present
     but the message is not found in the string/message table.
                (Event String (event log = System) could not be retrieved, error
                0x3ab3)
             An error event occurred.  EventID: 0x0000272C
                Time Generated: 04/01/2014   10:07:58
                Event String:
                DCOM was unable to communicate with the computer ca-p01.domain.com
    n using any of the configured protocols; requested by PID      14c (C:\Windows\s
    ystem32\taskhost.exe).
             An error event occurred.  EventID: 0x0000272C
                Time Generated: 04/01/2014   10:12:59
                Event String:
                DCOM was unable to communicate with the computer ca-p01.domain.com
    n using any of the configured protocols; requested by PID      90c (C:\Windows\s
    ystem32\taskhost.exe).
             An error event occurred.  EventID: 0x0000272C
                Time Generated: 04/01/2014   10:18:00
                Event String:
                DCOM was unable to communicate with the computer ca-p01.domain.com
    n using any of the configured protocols; requested by PID      558 (C:\Windows\s
    ystem32\taskhost.exe).
             An error event occurred.  EventID: 0x0000272C
                Time Generated: 04/01/2014   10:23:01
                Event String:
                DCOM was unable to communicate with the computer ca-p01.domain.com
    n using any of the configured protocols; requested by PID      f00 (C:\Windows\s
    ystem32\taskhost.exe).
             A warning event occurred.  EventID: 0xA004001B
                Time Generated: 04/01/2014   10:23:56
                EvtFormatMessage failed, error 15027 the message resource is present
     but the message is not found in the string/message table.
                (Event String (event log = System) could not be retrieved, error
                0x3ab3)
             ......................... dc-p01 failed test SystemLog
          Starting test: VerifyReferences
             ......................... dc-p01 passed test VerifyReferences
       Running partition tests on : ForestDnsZones
          Starting test: CheckSDRefDom
             ......................... ForestDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... ForestDnsZones passed test
             CrossRefValidation
       Running partition tests on : DomainDnsZones
          Starting test: CheckSDRefDom
             ......................... DomainDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... DomainDnsZones passed test
             CrossRefValidation
       Running partition tests on : Schema
          Starting test: CheckSDRefDom
             ......................... Schema passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Schema passed test CrossRefValidation
       Running partition tests on : Configuration
          Starting test: CheckSDRefDom
             ......................... Configuration passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Configuration passed test CrossRefValidation
       Running partition tests on : mydomain
          Starting test: CheckSDRefDom
             ......................... mydomain passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... mydomain passed test CrossRefValidation
       Running enterprise tests on : domain.comn
          Starting test: LocatorCheck
             ......................... domain.comn passed test LocatorCheck
          Starting test: Intersite
             ......................... domain.comn passed test Intersite
    in Active DIrecotry Sites adn Services when i try to replicate FROM a valid SYSVOL Domain Controller towards my 2012 DC i get this:
    The following error ocurred during the attempt to contact the domain controller dc-p01:
    Directory object not found
    i cannot upload picture yet because Ms ...didn t verified me.

          Starting test: NetLogons
             Unable to connect to the NETLOGON share! (\\dc-p01\netlogon)
             [dc-p01] An net use or LsaPolicy operation failed with error 67,
             The network name cannot be found..
             ......................... dc-p01 failed test NetLogons
          Starting test: ObjectsReplicated
             ......................... dc-p01 passed test ObjectsReplicated
          Starting test: Replications
             REPLICATION-RECEIVED LATENCY WARNING
             dc-p01:  Current time is 2014-04-01 10:25:09.
                DC=ForestDnsZones,DC=mydomain,DC=lan
                   Last replication received from DC-P02 at
              2014-03-31 15:22:40
                DC=DomainDnsZones,DC=mydomain,DC=lan
                   Last replication received from DC-P02 at
              2014-03-31 15:22:40           
    To perform non-authoritative restore of sysvol, you set the Burflag value & system will automatically tries to sync contents of sysvol with its replicating partner DC. Its not mandatory to select any particular DC for sysvol replication becasue in a
    same domain, all DC's shares the same sysvol content.
    Sometime, if initialization of FRS doesn't start, you have to follow the below article. Its also applicable to windows 2008 even as long as your using FRS for replication.
    http://support.microsoft.com/kb/290762/en-us
    To force the replication of sysvol using cmdline, refer below link.
    http://blogs.technet.com/b/justinturner/archive/2007/04/27/quick-tip-force-frs-replication.aspx
    Its better to find out what went wrong with the overall AD domain infra that sysvol has not been able to contact its partner for sysvol replication using depth assessment of the domain. It can be the network,firewall,antivirus or in-built firewall port issues
    which might have broken sysvol replication.
    http://msmvps.com/blogs/ad/archive/2008/06/03/active-directory-health-checks-for-domain-controllers.aspx
    Awinish Vishwakarma - MVP
    My Blog: awinish.wordpress.com
    Disclaimer This posting is provided AS-IS with no warranties/guarantees and confers no rights.

  • Installing an application through Powershell with SCCM 2012 r2 is not working as expected

    I am trying to install a VOIP client using a powershell script. When I run the powershell script on the client in a administrative powershell prompt the script runs fine and it installs the application as expected. When I try to do the same thing through
    the SCCM client using an application it does not install.
    I am not a Powershell Guru so the script below is my simple understanding of installations through powershell as of this moment
    <#
    Installatiescript CIC Client SU6 32 bit (kantoor)
    Versie 1.3
    17 april 2015 - Uitbreiding logfile. Fix opschonen startmenu
    16 april 2015 - Aanpassing verwijderen oude client, logfile aanmaken in TEMP
    13 maart 2015 - Eerste versie
    #>
    # Bepaal installatiebron
    $SourceDir = "\\VSC0501\SetupShare\APP_IC_Client_SU6\x86"
    # Bepaal logvariabelen
    $logfile = "$env:TEMP\cic_su6-install.txt"
    $Logdate = get-date -f yyyyMMdd-HHmm
    # Controleer of oude CIC client aanwezig is (versie 4.04.316) en deinstalleer deze indien nodig
    If (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{543BE3AC-426D-4FDD-8160-ECEEC2E211B6}")
    $val = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{543BE3AC-426D-4FDD-8160-ECEEC2E211B6}").DisplayVersion
    if($val -eq "4.04.316") {
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {3F20671C-9CA2-41FA-B94A-C7C7FD95C7B4} /QN" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - Client has been succesfully removed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - Client cannot be succesfully removed" | out-file $logfile -Append
    exit
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {543BE3AC-426D-4FDD-8160-ECEEC2E211B6} /QN" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - Client has been succesfully removed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - Client cannot be succesfully removed - " $process.ExitCode | out-file $logfile -Append
    exit
    #(Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {3F20671C-9CA2-41FA-B94A-C7C7FD95C7B4} /QN" -Wait -Passthru).exitcode
    #(Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {543BE3AC-426D-4FDD-8160-ECEEC2E211B6} /QN" -Wait -Passthru).exitcode
    Get-ChildItem "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Abvakabo FNV\Interactive Intelligence" | Remove-Item -Recurse
    Remove-Item -Path "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Abvakabo FNV\Interactive Intelligence" -Recurse -Force
    else {
    Write-Output "$logdate - Client not present" | out-file $logfile -Append
    # Installeer CIC Client SU6
    $Arguments = "/i `"$SourceDir\ICUserApps_32bit.msi`" /l*vx `"$env:TEMP\cic_su6.log`" TRANSFORMS=`"$SourceDir\Kantoor.mst`" PATCH=`"$SourceDir\ICUserApps_32bit_SU6.msp`" ICSERVERNAME=cic.abvakabofnv.local /QN /norestart"
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "$Arguments" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - CIC Client SU6 (kantoor) has been succesfully installed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - CIC Client SU6 (kantoor) cannot be succesfully installed - " $process.ExitCode | out-file $logfile -Append
    exit
    # Installeer CIC Client SU6 NL Language Plugin
    $Arguments = "/i `"$SourceDir\LanguagePlugins\ICUserApps_LanguagePlugin_nl.msi`" /l*vx `"$env:TEMP\cic_su6_nl.log`" PATCH=`"$SourceDir\LanguagePlugins\ICUserApps_LanguagePlugin_nl_SU6.msp`" /QN /norestart"
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "$Arguments" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - CIC Client SU6 Languagepack NL has been succesfully installed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - CIC Client SU6 Languagepack NL cannot be succesfully installed - " $process.ExitCode | out-file $logfile -Append
    exit
    # Opschonen Desktop en Start menu
    Remove-Item -Path "$env:PUBLIC\Desktop\Interaction Fax.lnk"
    Remove-Item -Path "$env:PUBLIC\Desktop\Interaction Voicemail Player.lnk"
    Move-Item -Path "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Interactive Intelligence" "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Abvakabo FNV" -force
    The uninstall part works fine, but the installation (2 parts) do not. As I mentioned before... when I run the script manually it all works fine.
    The application is installed using a script. The commandline is
    powershell.exe -excecutionpolicy bypass -file Install_UserApps_SU6_Kantoor.ps1
    The application runs hidden in the context of the system wether or not the user is logged on. The maximum allowed run time is sufficient (30 minutes).
    There is no installation log from the msiexec command so the line were the application should be installed is not executed at all. There is also no mention in my own little log ($logfile = "$env:TEMP\cic_su6-install.txt") mentioning the result
    of the installation.
    The appenforce.log says...
    +++ Starting Install enforcement for App DT "Interaction Client - Standaard SU6" ApplicationDeliveryType - ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, Revision - 7, ContentPath - C:\WINDOWS\ccmcache\13, Execution Context - System AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    A user is logged on to the system. AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Performing detection of app deployment type Interaction Client - Standaard SU6(ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, revision 7) for system. AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    +++ Application not discovered. [AppDT Id: ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, Revision: 7] AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    App enforcement environment:
    Context: Machine
    Command line: Powershell.exe -executionpolicy bypass -file Install_UserApps_SU6_Kantoor.ps1
    Allow user interaction: No
    UI mode: 0
    User token: null
    Session Id: 1
    Content path: C:\WINDOWS\ccmcache\13
    Working directory: AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Prepared working directory: C:\WINDOWS\ccmcache\13 AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Found executable file Powershell.exe with complete path C:\WINDOWS\System32\WindowsPowerShell\v1.0\Powershell.exe AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Prepared command line: "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe" -executionpolicy bypass -file Install_UserApps_SU6_Kantoor.ps1 AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Executing Command line: "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe" -executionpolicy bypass -file Install_UserApps_SU6_Kantoor.ps1 with user context AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Working directory C:\WINDOWS\ccmcache\13 AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Post install behavior is BasedOnExitCode AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Waiting for process 2916 to finish. Timeout = 30 minutes. AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Process 2916 terminated with exitcode: 0 AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    Looking for exit code 0 in exit codes table... AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    Matched exit code 0 to a Success entry in exit codes table. AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    Performing detection of app deployment type Interaction Client - Standaard SU6(ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, revision 7) for system. AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    +++ Application not discovered. [AppDT Id: ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, Revision: 7] AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    ++++++ App enforcement completed (3 seconds) for App DT "Interaction Client - Standaard SU6" [ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4], Revision: 7, User SID: ] ++++++ AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    I'm thinking of going back to a batchfile because that seems to do the job, but Powershell is much more powerfull.
    Anybody got any answers on what is going wrong are some suggestions for a better script? 

    You have a number of problems here.
    1.  As mentioned you have UNC paths ... which means there's no reason for a package at all.  f you want SCCM to use the package it just downloaded you should use $PSScriptRoot (PS equivelant of %~0dp).  If the client is using v2 or earlier
    ... fix that quick by starting your script with:
    If (!$PSScriptRoot) {
    $PSSCriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
    Now you can call your install easy enough with a $PSScriptRoot+"\app.exe"
    2.  your discovery is failing after install.  This will always make SCCM report an installation failed even when the exit code is 0.  You can see it at the end of your log:
    Matched exit code 0 to a Success entry in exit codes table. AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    Performing detection of app deployment type Interaction Client - Standaard SU6(ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, revision 7) for system. AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    +++ Application not discovered. [AppDT Id: ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, Revision: 7] AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    So either your installation script is spitting out a exit code 0 regardless of the event OR your detection is wrong.
    EDIT:  you have exit statemetns after failed installs ... but no exit code (simply exit).  Change those to exit 1 so sccm knows it's a failed exit and not just a generic exit.  That's probably your problem (unc can't be reached as system, you're
    getting an exit  .... not defining exit 1).
    Something like this (warning this is a fast change so review it):
    <#
    Installatiescript CIC Client SU6 32 bit (kantoor)
    Versie 1.3
    17 april 2015 - Uitbreiding logfile. Fix opschonen startmenu
    16 april 2015 - Aanpassing verwijderen oude client, logfile aanmaken in TEMP
    13 maart 2015 - Eerste versie
    #>
    If (!$PSScriptRoot) {
    $PSSCriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
    # Bepaal installatiebron
    #$SourceDir = "\\VSC0501\SetupShare\APP_IC_Client_SU6\x86"
    $SourceDir = $PSScriptRoot
    # Bepaal logvariabelen
    $logfile = "$env:TEMP\cic_su6-install.txt"
    $Logdate = get-date -f yyyyMMdd-HHmm
    # Controleer of oude CIC client aanwezig is (versie 4.04.316) en deinstalleer deze indien nodig
    If (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{543BE3AC-426D-4FDD-8160-ECEEC2E211B6}")
    $val = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{543BE3AC-426D-4FDD-8160-ECEEC2E211B6}").DisplayVersion
    if($val -eq "4.04.316") {
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {3F20671C-9CA2-41FA-B94A-C7C7FD95C7B4} /QN" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - Client has been succesfully removed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - Client cannot be succesfully removed" | out-file $logfile -Append
    exit 1
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {543BE3AC-426D-4FDD-8160-ECEEC2E211B6} /QN" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - Client has been succesfully removed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - Client cannot be succesfully removed - " $process.ExitCode | out-file $logfile -Append
    exit 1
    #(Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {3F20671C-9CA2-41FA-B94A-C7C7FD95C7B4} /QN" -Wait -Passthru).exitcode
    #(Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {543BE3AC-426D-4FDD-8160-ECEEC2E211B6} /QN" -Wait -Passthru).exitcode
    Get-ChildItem "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Abvakabo FNV\Interactive Intelligence" | Remove-Item -Recurse
    Remove-Item -Path "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Abvakabo FNV\Interactive Intelligence" -Recurse -Force
    else {
    Write-Output "$logdate - Client not present" | out-file $logfile -Append
    # Installeer CIC Client SU6
    $Arguments = "/i `"$SourceDir\ICUserApps_32bit.msi`" /l*vx `"$env:TEMP\cic_su6.log`" TRANSFORMS=`"$SourceDir\Kantoor.mst`" PATCH=`"$SourceDir\ICUserApps_32bit_SU6.msp`" ICSERVERNAME=cic.abvakabofnv.local /QN /norestart"
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "$Arguments" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - CIC Client SU6 (kantoor) has been succesfully installed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - CIC Client SU6 (kantoor) cannot be succesfully installed - " $process.ExitCode | out-file $logfile -Append
    exit 1
    # Installeer CIC Client SU6 NL Language Plugin
    $Arguments = "/i `"$SourceDir\LanguagePlugins\ICUserApps_LanguagePlugin_nl.msi`" /l*vx `"$env:TEMP\cic_su6_nl.log`" PATCH=`"$SourceDir\LanguagePlugins\ICUserApps_LanguagePlugin_nl_SU6.msp`" /QN /norestart"
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "$Arguments" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - CIC Client SU6 Languagepack NL has been succesfully installed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - CIC Client SU6 Languagepack NL cannot be succesfully installed - " $process.ExitCode | out-file $logfile -Append
    exit 1
    # Opschonen Desktop en Start menu
    Remove-Item -Path "$env:PUBLIC\Desktop\Interaction Fax.lnk"
    Remove-Item -Path "$env:PUBLIC\Desktop\Interaction Voicemail Player.lnk"
    Move-Item -Path "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Interactive Intelligence" "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Abvakabo FNV" -force
    Exit 0

  • App Deployment through powershell in SharePoint 2013

    Hi,
    Recently I have configured App Development Environment in SharePoint 2013,And we are able to deploy App through Visual Studio in our local Environment.
    But when we are trying to Deploy App Package through PowerShell in our production ,it has been deployed successfully but when we are accessing that particular App it is showing blank screen.
    Kindly any one provide me the solution.
    Thanks in Advance.
    Regards,
    Dinesh Reddy
    Regards, Dinesh R.

    Hi,
    A suggestion is that you can uninstall this app and then install it again to see if this operation can make it right.
    If it is still a blank page after reinstalled, I would recommend to create a new and clean app to perform the deployment again.
    Feel free to reply with the test result.
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • SYSVOL Replication Failing - 13508

    We have two 2008 R2 DCs and our second DC has been getting the 13508 for months.  I have checked the logs and have found no instance of 13509.  
    I have recently set up a third DC (server 2012 R2) and am now getting the message on that machine as well.  Except, now it's showing the message for DC1 and DC2.
    The File Replication Service is having trouble enabling replication from DC2 to DC3 for c:\windows\sysvol\domain using the DNS name DC2. FRS will keep retrying.
    Following are some of the reasons you would see this warning.
    [1] FRS can not correctly resolve the DNS name DC2 from this computer.
    [2] FRS is not running on DC2.
    [3] The topology information in the Active Directory Domain Services for this replica has not yet replicated to all the Domain Controllers.
    This event log message will appear once per connection, After the problem is fixed you will see another event log message indicating that the connection has been established.
    I'm not exactly sure what that means, but I continued to do some diagnostics.  I was able to ping the FQDN with no problem.  I disabled the firewalls on all boxes and tested with no luck.  There is now internal firewall blocking anything and
    the proper ports are open and listening.
    In addition, I have noticed on the DC that is NOT receiving the 13508 error has had a couple 13562 errors-
    Following is the summary of warnings and errors encountered by File Replication Service while polling the Domain Controller DC1 for FRS replica set configuration information.
    Could not bind to a Domain Controller. Will try again at next polling cycle.
    Other than that, there are no FRS errors on DC1. Here are the results of DCDiag on DC1:
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       Home Server = DC1
       * Identified AD Forest.
       Done gathering initial info.
    Doing initial required tests
       Testing server: Default-First-Site-Name\DC1
          Starting test: Connectivity
             ......................... DC1 passed test Connectivity
    Doing primary tests
       Testing server: Default-First-Site-Name\DC1
          Starting test: Advertising
             ......................... DC1 passed test Advertising
          Starting test: FrsEvent
             ......................... DC1 passed test FrsEvent
          Starting test: DFSREvent
             ......................... DC1 passed test DFSREvent
          Starting test: SysVolCheck
             ......................... DC1 passed test SysVolCheck
          Starting test: KccEvent
             ......................... DC1 passed test KccEvent
          Starting test: KnowsOfRoleHolders
             ......................... DC1 passed test KnowsOfRoleHolders
          Starting test: MachineAccount
             ......................... DC1 passed test MachineAccount
          Starting test: NCSecDesc
             Error NT AUTHORITY\ENTERPRISE DOMAIN CONTROLLERS doesn't have
                Replicating Directory Changes In Filtered Set
             access rights for the naming context:
             DC=ForestDnsZones,DC=domain,DC=local
             Error NT AUTHORITY\ENTERPRISE DOMAIN CONTROLLERS doesn't have
                Replicating Directory Changes In Filtered Set
             access rights for the naming context:
             DC=DomainDnsZones,DC=domain,DC=local
             ......................... DC1 failed test NCSecDesc
          Starting test: NetLogons
             ......................... DC1 passed test NetLogons
          Starting test: ObjectsReplicated
             ......................... DC1 passed test ObjectsReplicated
          Starting test: Replications
             ......................... DC1 passed test Replications
          Starting test: RidManager
             ......................... DC1 passed test RidManager
          Starting test: Services
             ......................... DC1 passed test Services
          Starting test: SystemLog
             ......................... DC1 passed test SystemLog
          Starting test: VerifyReferences
             ......................... DC1 passed test VerifyReferences
       Running partition tests on : ForestDnsZones
          Starting test: CheckSDRefDom
             ......................... ForestDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... ForestDnsZones passed test
             CrossRefValidation
       Running partition tests on : DomainDnsZones
          Starting test: CheckSDRefDom
             ......................... DomainDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... DomainDnsZones passed test
             CrossRefValidation
       Running partition tests on : Schema
          Starting test: CheckSDRefDom
             ......................... Schema passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Schema passed test CrossRefValidation
       Running partition tests on : Configuration
          Starting test: CheckSDRefDom
             ......................... Configuration passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Configuration passed test CrossRefValidation
       Running partition tests on : domain
          Starting test: CheckSDRefDom
             ......................... domain passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... domain passed test CrossRefValidation
       Running enterprise tests on : domain.local
          Starting test: LocatorCheck
             ......................... domain.local passed test LocatorCheck
          Starting test: Intersite
             ......................... domain.local passed test Intersite
    Here is the result from DC2:
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       Home Server = DC2
       * Identified AD Forest.
       Done gathering initial info.
    Doing initial required tests
       Testing server: Default-First-Site-Name\DC2
          Starting test: Connectivity
             ......................... DC2 passed test Connectivity
    Doing primary tests
       Testing server: Default-First-Site-Name\DC2
          Starting test: Advertising
             ......................... DC2 passed test Advertising
          Starting test: FrsEvent
             There are warning or error events within the last 24 hours after the
             SYSVOL has been shared. 
    Failing SYSVOL replication problems may cause
             Group Policy problems.
             ......................... DC2 passed test FrsEvent
          Starting test: DFSREvent
             ......................... DC2 passed test DFSREvent
          Starting test: SysVolCheck
             ......................... DC2 passed test SysVolCheck
          Starting test: KccEvent
             ......................... DC2 passed test KccEvent
          Starting test: KnowsOfRoleHolders
             ......................... DC2 passed test KnowsOfRoleHolders
          Starting test: MachineAccount
             ......................... DC2 passed test MachineAccount
          Starting test: NCSecDesc
             Error NT AUTHORITY\ENTERPRISE DOMAIN CONTROLLERS doesn't have
    Replicating Directory Changes In Filtered Set
             access rights for the naming context:
             DC=ForestDnsZones,DC=domain,DC=local
             Error NT AUTHORITY\ENTERPRISE DOMAIN CONTROLLERS doesn't have
    Replicating Directory Changes In Filtered Set
             access rights for the naming context:
             DC=DomainDnsZones,DC=domain,DC=local
             ......................... DC2 failed test NCSecDesc
          Starting test: NetLogons
             ......................... DC2 passed test NetLogons
          Starting test: ObjectsReplicated
             ......................... DC2 passed test ObjectsReplicated
          Starting test: Replications
             ......................... DC2 passed test Replications
          Starting test: RidManager
             ......................... DC2 passed test RidManager
          Starting test: Services
             ......................... DC2 passed test Services
          Starting test: SystemLog
             A warning event occurred. 
    EventID: 0x8000001D
    Time Generated: 03/25/2015   10:53:38
    Event String:
    The Key Distribution Center (KDC) cannot find a suitable certificate to use for smart card logons, or the KDC certificate could not be verified. Smart card logon may not function correctly if this problem is not resolved. To correct this problem, either
    verify the existing KDC certificate using certutil.exe or enroll for a new KDC certificate.
             ......................... DC2 passed test SystemLog
          Starting test: VerifyReferences
             ......................... DC2 passed test VerifyReferences
       Running partition tests on : ForestDnsZones
          Starting test: CheckSDRefDom
             ......................... ForestDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... ForestDnsZones passed test
             CrossRefValidation
       Running partition tests on : DomainDnsZones
          Starting test: CheckSDRefDom
             ......................... DomainDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... DomainDnsZones passed test
             CrossRefValidation
       Running partition tests on : Schema
          Starting test: CheckSDRefDom
             ......................... Schema passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Schema passed test CrossRefValidation
       Running partition tests on : Configuration
          Starting test: CheckSDRefDom
             ......................... Configuration passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Configuration passed test CrossRefValidation
       Running partition tests on : domain
          Starting test: CheckSDRefDom
             ......................... domain passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... domain passed test CrossRefValidation
       Running enterprise tests on : domain.local
          Starting test: LocatorCheck
             ......................... domain.local passed test LocatorCheck
          Starting test: Intersite
             ......................... domain.local passed test Intersite
    And finally, here is the result from DC3:
       * Identified AD Forest.
       Done gathering initial info.
    Doing initial required tests
       Testing server: Default-First-Site-Name\DC3
          Starting test: Connectivity
             ......................... DC3 passed test Connectivity
    Doing primary tests
       Testing server: Default-First-Site-Name\DC3
          Starting test: Advertising
             Warning: DsGetDcName returned information for \\DC1.domain.local,
             when we were trying to reach DC3.
             SERVER IS NOT RESPONDING or IS NOT CONSIDERED SUITABLE.
             ......................... DC3 failed test Advertising
          Starting test: FrsEvent
             There are warning or error events within the last 24 hours after the
             SYSVOL has been shared. 
    Failing SYSVOL replication problems may cause
             Group Policy problems.
             ......................... DC3 passed test FrsEvent
          Starting test: DFSREvent
             ......................... DC3 passed test DFSREvent
          Starting test: SysVolCheck
             ......................... DC3 passed test SysVolCheck
          Starting test: KccEvent
             ......................... DC3 passed test KccEvent
          Starting test: KnowsOfRoleHolders
             ......................... DC3 passed test KnowsOfRoleHolders
          Starting test: MachineAccount
             ......................... DC3 passed test MachineAccount
          Starting test: NCSecDesc
             ......................... DC3 passed test NCSecDesc
          Starting test: NetLogons
             Unable to connect to the NETLOGON share! (\\DC3\netlogon)
             [DC3] An net use or LsaPolicy operation failed with error 67,
             The network name cannot be found..
             ......................... DC3 failed test NetLogons
          Starting test: ObjectsReplicated
             ......................... DC3 passed test ObjectsReplicated
          Starting test: Replications
             ......................... DC3 passed test Replications
          Starting test: RidManager
             ......................... DC3 passed test RidManager
          Starting test: Services
             ......................... DC3 passed test Services
          Starting test: SystemLog
             ......................... DC3 passed test SystemLog
          Starting test: VerifyReferences
             ......................... DC3 passed test VerifyReferences
       Running partition tests on : DomainDnsZones
          Starting test: CheckSDRefDom
             ......................... DomainDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... DomainDnsZones passed test
             CrossRefValidation
       Running partition tests on : ForestDnsZones
          Starting test: CheckSDRefDom
             ......................... ForestDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... ForestDnsZones passed test
             CrossRefValidation
       Running partition tests on : Schema
          Starting test: CheckSDRefDom
             ......................... Schema passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Schema passed test CrossRefValidation
       Running partition tests on : Configuration
          Starting test: CheckSDRefDom
             ......................... Configuration passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Configuration passed test CrossRefValidation
       Running partition tests on : domain
          Starting test: CheckSDRefDom
             ......................... domain passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... domain passed test CrossRefValidation
       Running enterprise tests on : domain.local
          Starting test: LocatorCheck
             ......................... domain.local passed test LocatorCheck
          Starting test: Intersite
             ......................... domain.local passed test Intersite
    Any idea what would be causing this and what my next steps would be?  Let me know if I can get you any more info.
    Thanks for the help in advance!

    Hello,
    Is this is the FRSDiag_Log file?  If so, I don't see that type of message anywhere.  On the FRSDiag when I select all the DCs and select go, I get the following:
    DC1:
    FRSDiag v1.7 on 4/8/2015 8:10:49 AM
    .\DC1 on 2015-04-08 at 8.10.49 AM
    Checking for errors/warnings in FRS Event Log .... passed
    Checking for errors in Directory Service Event Log .... passed
    Checking for minimum FRS version requirement ... passed
    Checking for errors/warnings in ntfrsutl ds ... passed
    Checking for Replica Set configuration triggers... passed
    Checking for suspicious file Backlog size... passed
    Checking Overall Disk Space and SYSVOL structure (note: integrity is not checked)... passed
    Checking for suspicious inlog entries ... passed
    Checking for suspicious outlog entries ... passed
    Checking for appropriate staging area size ... passed
    Checking for errors in debug logs ... passed
    Checking NtFrs Service (and dependent services) state...passed
    Checking NtFrs related Registry Keys for possible problems...passed
    Checking Repadmin Showreps for errors...passed
    Final Result = passed
    DC2:
    FRSDiag v1.7 on 4/8/2015 8:10:49 AM
    .\DC2 on 2015-04-08 at 8.10.49 AM
    Checking for errors/warnings in FRS Event Log ....
    NtFrs      
    4/8/2015 2:56:42 AM              
    Warning  13508     
    The File Replication Service is having trouble enabling replication 
    from DC1 to DC2 for c:\windows\sysvol\domain using the DNS name DC1.domain.local. FRS will keep retrying.    
    Following are some of the reasons you would see this warning.     
       [1] FRS can not correctly resolve the DNS name DC1.domain.local from this computer.    
    [2] FRS is not running on DC1.domain.local.    
    [3] The topology information in the Active Directory Domain Services for 
    this replica has not yet replicated to all the Domain Controllers.        
    This event log message will appear once per connection, After the problem 
    is fixed you will see another event log message indicating that the connection 
    has been established.         
    NtFrs      
    4/8/2015 2:33:02 AM              
    Warning  13508     
    The File Replication Service is having trouble enabling replication 
    from DC3 to DC2 for c:\windows\sysvol\domain using the DNS name DC3.domain.local. FRS will keep retrying.    
    Following are some of the reasons you would see this warning.        
    [1] FRS can not correctly resolve the DNS name DC3.domain.local from this computer.    
    [2] FRS is not running on DC3.domain.local.    
    [3] The topology information in the Active Directory Domain Services for 
    this replica has not yet replicated to all the Domain Controllers.        
    This event log message will appear once per connection, After the problem 
    is fixed you will see another event log message indicating that the connection 
    has been established.         
    NtFrs      
    4/7/2015 1:27:11 AM              
    Warning  13508     
    The File Replication Service is having trouble enabling replication 
    from DC3 to DC2 for c:\windows\sysvol\domain using the DNS name DC3.domain.local. FRS will keep retrying.    
    Following are some of the reasons you would see this warning.        
    [1] FRS can not correctly resolve the DNS name DC3.domain.local from this computer.    
    [2] FRS is not running on DC3.domain.local.    
    [3] The topology information in the Active Directory Domain Services for 
    this replica has not yet replicated to all the Domain Controllers.        
    This event log message will appear once per connection, After the problem 
    is fixed you will see another event log message indicating that the connection 
    has been established.         
    NtFrs      
    4/7/2015 1:25:07 AM              
    Warning  13565     
    File Replication Service is initializing the system volume with data from another 
    domain controller. Computer DC2 cannot become a domain controller until this process 
    is complete. The system volume will then be shared as SYSVOL.       
    To check for the SYSVOL share, at the command prompt, type:   
    net share        When File Replication Service completes the initialization process, the SYSVOL 
    share will appear.       
    The initialization of the system volume can take some time.  The time is dependent on the amount of data in the system volume, 
    the availability of other domain controllers, and the replication 
    interval between domain controllers.            
    NtFrs      
    4/6/2015 3:25:32 PM              
    Warning  13520     
    The File Replication Service moved the preexisting files in c:\windows\sysvol\domain to c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog.       
    The File Replication Service may delete the files in c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog at any time. 
    Files can be saved from deletion by copying them out of c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog. Copying 
    the files into c:\windows\sysvol\domain may lead to name conflicts if the files already exist 
    on some other replicating partner.       
    In some cases, the File Replication Service may copy a file 
    from c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog into c:\windows\sysvol\domain instead of replicating the file from some other 
    replicating partner.       
    Space can be recovered at any time by deleting the files in c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog.      
    NtFrs      
    4/6/2015 3:25:32 PM              
    Warning  13565     
    File Replication Service is initializing the system volume with data from another 
    domain controller. Computer DC2 cannot become a domain controller until this process 
    is complete. The system volume will then be shared as SYSVOL.       
    To check for the SYSVOL share, at the command prompt, type:   
    net share        When File Replication Service completes the initialization process, the SYSVOL 
    share will appear.       
    The initialization of the system volume can take some time.  The time is dependent on the amount of data in the system volume, 
    the availability of other domain controllers, and the replication 
    interval between domain controllers.            
    NtFrs      
    4/3/2015 10:17:06 AM            
    Warning  13567     
    File Replication Service has detected and suppressed an average of 15 or more file updates 
    every hour for the last 3 hours because the updates did not change the contents of 
    the file. The tracking records in FRS debug logs will have the filename and event time 
    for the suppressed updates. The tracking records have the date and time followed by :T: 
    as their prefix.        Updates that do not change the content of the file are suppressed to prevent 
    unnecessary replication traffic. Following are common examples of updates that do not 
    change the contents of the file.        
    [1] Overwriting a file with a copy of the same file.    
    [2] Setting the same ACLs on a file multiple times.    
    [3] Restoring an identical copy of the file over an existing one.       
    Suppression of updates can be disabled by running regedit.       
    Click on Start, Run and type regedit.       
    Expand HKEY_LOCAL_MACHINE, SYSTEM, CurrentControlSet, Services, NtFrs, Parameters, 
    and create or update the value "Suppress Identical Updates To Files" to 0 (Default is 1) to force 
    identical updates to replicate.        
    NtFrs      
    4/2/2015 6:28:57 PM              
    Warning  13567     
    File Replication Service has detected and suppressed an average of 15 or more file updates 
    every hour for the last 3 hours because the updates did not change the contents of 
    the file. The tracking records in FRS debug logs will have the filename and event time 
    for the suppressed updates. The tracking records have the date and time followed by :T: 
    as their prefix.        Updates that do not change the content of the file are suppressed to prevent 
    unnecessary replication traffic. Following are common examples of updates that do not 
    change the contents of the file.        
    [1] Overwriting a file with a copy of the same file.    
    [2] Setting the same ACLs on a file multiple times.    
    [3] Restoring an identical copy of the file over an existing one.       
    Suppression of updates can be disabled by running regedit.       
    Click on Start, Run and type regedit.       
    Expand HKEY_LOCAL_MACHINE, SYSTEM, CurrentControlSet, Services, NtFrs, Parameters, 
    and create or update the value "Suppress Identical Updates To Files" to 0 (Default is 1) to force 
    identical updates to replicate.        
    NtFrs      
    4/2/2015 4:10:11 PM              
    Warning  13565     
    File Replication Service is initializing the system volume with data from another 
    domain controller. Computer DC2 cannot become a domain controller until this process 
    is complete. The system volume will then be shared as SYSVOL.       
    To check for the SYSVOL share, at the command prompt, type:   
    net share        When File Replication Service completes the initialization process, the SYSVOL 
    share will appear.       
    The initialization of the system volume can take some time.  The time is dependent on the amount of data in the system volume, 
    the availability of other domain controllers, and the replication 
    interval between domain controllers.            
    NtFrs      
    4/2/2015 3:56:38 PM              
    Warning  13520     
    The File Replication Service moved the preexisting files in c:\windows\sysvol\domain to c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog.       
    The File Replication Service may delete the files in c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog at any time. 
    Files can be saved from deletion by copying them out of c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog. Copying 
    the files into c:\windows\sysvol\domain may lead to name conflicts if the files already exist 
    on some other replicating partner.       
    In some cases, the File Replication Service may copy a file 
    from c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog into c:\windows\sysvol\domain instead of replicating the file from some other 
    replicating partner.       
    Space can be recovered at any time by deleting the files in c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog.      
    NtFrs      
    4/2/2015 3:56:37 PM              
    Warning  13565     
    File Replication Service is initializing the system volume with data from another 
    domain controller. Computer DC2 cannot become a domain controller until this process 
    is complete. The system volume will then be shared as SYSVOL.       
    To check for the SYSVOL share, at the command prompt, type:   
    net share        When File Replication Service completes the initialization process, the SYSVOL 
    share will appear.       
    The initialization of the system volume can take some time.  The time is dependent on the amount of data in the system volume, 
    the availability of other domain controllers, and the replication 
    interval between domain controllers.
    WARNING: Found Event ID 13508 errors without trailing 13509 ... see above for (up to) the 3 latest entries!
     ......... failed 9
    Checking for errors in Directory Service Event Log .... passed
    Checking for minimum FRS version requirement ... passed
    Checking for errors/warnings in ntfrsutl ds ... passed
    Checking for Replica Set configuration triggers... passed
    Checking for suspicious file Backlog size... passed
    Checking Overall Disk Space and SYSVOL structure (note: integrity is not checked)... passed
    Checking for suspicious inlog entries ... passed
    Checking for suspicious outlog entries ... passed
    Checking for appropriate staging area size ... passed
    Checking for errors in debug logs ...
    ERROR on NtFrs_0005.log : "ERROR_ACCESS_DENIED" : <SndCsMain:                    
    4416:   904: S0: 08:00:40> :SR: Cmd 003f5d40, CxtG 6af17002, WS ERROR_ACCESS_DENIED, To  
    DC1.domain.local Len:  (368) [SndFail - Send Penalty]
    ERROR on NtFrs_0005.log : "ERROR_ACCESS_DENIED" : <SndCsMain:                    
    4416:   877: S0: 08:07:51> :SR: Cmd 003f5d40, CxtG 6af17002, WS ERROR_ACCESS_DENIED, To  
    DC1.domain.local Len:  (368) [SndFail - rpc call]
    ERROR on NtFrs_0005.log : "ERROR_ACCESS_DENIED" : <SndCsMain:                    
    4416:   904: S0: 08:07:51> :SR: Cmd 003f5d40, CxtG 6af17002, WS ERROR_ACCESS_DENIED, To  
    DC1.domain.local Len:  (368) [SndFail - Send Penalty]
    ERROR on NtFrs_0004.log : "EPT_S_NOT_REGISTERED(This may indicate that DNS returns the IP address of the wrong computer. Check DNS records being returned, Check if FRS is currently running on the target server. Check if Ntfrs is registered with
    the End-Point-Mapper on target server!)" : <SndCsMain:                     
    300:   883: S0: 15:25:44> ++ ERROR - EXCEPTION (000006d9) : 
    WStatus: EPT_S_NOT_REGISTERED
    ERROR on NtFrs_0004.log : "EPT_S_NOT_REGISTERED(This may indicate that DNS returns the IP address of the wrong computer. Check DNS records being returned, Check if FRS is currently running on the target server. Check if Ntfrs is registered with
    the End-Point-Mapper on target server!)" : <SndCsMain:                     
    300:   884: S0: 15:25:44> :SR: Cmd 002a3060, CxtG e2bb412a, WS EPT_S_NOT_REGISTERED, To  
    DC3.domain.local Len:  (366) [SndFail - rpc exception]
    ERROR on NtFrs_0004.log : "EPT_S_NOT_REGISTERED(This may indicate that DNS returns the IP address of the wrong computer. Check DNS records being returned, Check if FRS is currently running on the target server. Check if Ntfrs is registered with
    the End-Point-Mapper on target server!)" : <SndCsMain:                     
    300:   904: S0: 15:25:44> :SR: Cmd 002a3060, CxtG e2bb412a, WS EPT_S_NOT_REGISTERED, To  
    DC3.domain.local Len:  (366) [SndFail - Send Penalty]
    ERROR on NtFrs_0003.log : "RPC_S_CALL_FAILED_DNE(Indicates RPC Session was established to target, but there was a failure to send RPC call package. Check for Networking problems!)" : <SndCsMain:                    
    1312:   883: S0: 10:19:22> ++ ERROR - EXCEPTION (000006bf) : 
    WStatus: RPC_S_CALL_FAILED_DNE
    ERROR on NtFrs_0003.log : "RPC_S_CALL_FAILED_DNE(Indicates RPC Session was established to target, but there was a failure to send RPC call package. Check for Networking problems!)" : <SndCsMain:                    
    1312:   884: S0: 10:19:22> :SR: Cmd 06bf9240, CxtG e2bb412a, WS RPC_S_CALL_FAILED_DNE, To  
    DC3.domain.local Len:  (366) [SndFail - rpc exception]
    ERROR on NtFrs_0003.log : "RPC_S_CALL_FAILED_DNE(Indicates RPC Session was established to target, but there was a failure to send RPC call package. Check for Networking problems!)" : <SndCsMain:                    
    1312:   904: S0: 10:19:22> :SR: Cmd 06bf9240, CxtG e2bb412a, WS RPC_S_CALL_FAILED_DNE, To  
    DC3.domain.local Len:  (366) [SndFail - Send Penalty]
    Found 2230 ERROR_ACCESS_DENIED error(s)! Latest ones (up to 3) listed above
    Found 6 EPT_S_NOT_REGISTERED error(s)! Latest ones (up to 3) listed above
    Found 3 RPC_S_CALL_FAILED_DNE error(s)! Latest ones (up to 3) listed above
     ......... failed with 2239 error entries
    Checking NtFrs Service (and dependent services) state...
    ERROR : Cannot access SYSVOL share on DC2
    ERROR : Cannot access NETLOGON share on DC2
     ......... failed 2
    Checking NtFrs related Registry Keys for possible problems...
    SYSTEM\CurrentControlSet\Services\Netlogon\Parameters\SysvolReady = 0 :: ERROR: SysvolReady is not set to 1 :: SYSVOL is likely not Sharing! This key should NOT be changed manually but this should be addressed! See article KB.327781 (How to Troubleshoot
    Missing SYSVOL and NETLOGON Shares on Windows Server) for further information!
    failed with 1 error(s) and 0 warning(s)
    Checking Repadmin Showreps for errors...passed
    Final Result = failed with 2251 error(s)
    DC3:
    FRSDiag v1.7 on 4/8/2015 8:10:49 AM
    .\DC3 on 2015-04-08 at 8.10.49 AM
    Checking for errors/warnings in FRS Event Log ....
    NtFrs      
    4/7/2015 4:52:26 PM              
    Warning  13508     
    The File Replication Service is having trouble enabling replication 
    from DC1 to DC3 for c:\windows\sysvol\domain using the DNS name DC1.domain.local. FRS will keep retrying.    
    Following are some of the reasons you would see this warning.      
      [1] FRS can not correctly resolve the DNS name DC1.domain.local from this computer.    
    [2] FRS is not running on DC1.domain.local.    
    [3] The topology information in the Active Directory Domain Services for 
    this replica has not yet replicated to all the Domain Controllers.        
    This event log message will appear once per connection, After the problem 
    is fixed you will see another event log message indicating that the connection 
    has been established.         
    NtFrs      
    4/7/2015 4:33:35 PM              
    Warning  13508     
    The File Replication Service is having trouble enabling replication 
    from DC2 to DC3 for c:\windows\sysvol\domain using the DNS name DC2.domain.local. FRS will keep retrying.    
    Following are some of the reasons you would see this warning.        
    [1] FRS can not correctly resolve the DNS name DC2.domain.local from this computer.    
    [2] FRS is not running on DC2.domain.local.    
    [3] The topology information in the Active Directory Domain Services for 
    this replica has not yet replicated to all the Domain Controllers.        
    This event log message will appear once per connection, After the problem 
    is fixed you will see another event log message indicating that the connection 
    has been established.         
    NtFrs      
    4/6/2015 3:27:45 PM              
    Warning  13508     
    The File Replication Service is having trouble enabling replication 
    from DC1 to DC3 for c:\windows\sysvol\domain using the DNS name DC1.domain.local. FRS will keep retrying.    
    Following are some of the reasons you would see this warning.        
    [1] FRS can not correctly resolve the DNS name DC1.domain.local from this computer.    
    [2] FRS is not running on DC1.domain.local.    
    [3] The topology information in the Active Directory Domain Services for 
    this replica has not yet replicated to all the Domain Controllers.        
    This event log message will appear once per connection, After the problem 
    is fixed you will see another event log message indicating that the connection 
    has been established.         
    NtFrs      
    4/6/2015 3:26:03 PM              
    Warning  13520     
    The File Replication Service moved the preexisting files in c:\windows\sysvol\domain to c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog.       
    The File Replication Service may delete the files in c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog at any time. 
    Files can be saved from deletion by copying them out of c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog. Copying 
    the files into c:\windows\sysvol\domain may lead to name conflicts if the files already exist 
    on some other replicating partner.       
    In some cases, the File Replication Service may copy a file 
    from c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog into c:\windows\sysvol\domain instead of replicating the file from some other 
    replicating partner.       
    Space can be recovered at any time by deleting the files in c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog.      
    NtFrs      
    4/6/2015 3:26:03 PM              
    Warning  13565     
    File Replication Service is initializing the system volume with data from another 
    domain controller. Computer DC3 cannot become a domain controller until this process 
    is complete. The system volume will then be shared as SYSVOL.       
    To check for the SYSVOL share, at the command prompt, type:   
    net share        When File Replication Service completes the initialization process, the SYSVOL 
    share will appear.       
    The initialization of the system volume can take some time.  The time is dependent on the amount of data in the system volume, 
    the availability of other domain controllers, and the replication 
    interval between domain controllers.            
    NtFrs      
    4/6/2015 1:42:46 PM              
    Warning  13518     
    The File Replication Service did not grant the user "itadmin" access to the 
    API "Get Internal Information".       
    Permissions for "Get Internal Information" can be changed by running regedit.       
    Click on Start, Run, and type regedit.       
    Expand HKEY_LOCAL_MACHINE, SYSTEM, CurrentControlSet, Services, NtFrs, Parameters, 
    Access Checks, and highlight "Get Internal Information". 
    Click on the toolbar option Security and then Permissions...       
    Access checks can be disabled for "Get Internal Information". Double click on "Access checks are [Enabled or Disabled]" and 
    change the string to Disabled.              
    NtFrs      
    4/3/2015 10:24:13 AM            
    Warning  13565     
    File Replication Service is initializing the system volume with data from another 
    domain controller. Computer DC3 cannot become a domain controller until this process 
    is complete. The system volume will then be shared as SYSVOL.       
    To check for the SYSVOL share, at the command prompt, type:   
    net share        When File Replication Service completes the initialization process, the SYSVOL 
    share will appear.       
    The initialization of the system volume can take some time.  The time is dependent on the amount of data in the system volume, 
    the availability of other domain controllers, and the replication 
    interval between domain controllers.            
    NtFrs      
    4/3/2015 10:20:13 AM            
    Warning  13520     
    The File Replication Service moved the preexisting files in c:\windows\sysvol\domain to c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog.       
    The File Replication Service may delete the files in c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog at any time. 
    Files can be saved from deletion by copying them out of c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog. Copying 
    the files into c:\windows\sysvol\domain may lead to name conflicts if the files already exist 
    on some other replicating partner.       
    In some cases, the File Replication Service may copy a file 
    from c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog into c:\windows\sysvol\domain instead of replicating the file from some other 
    replicating partner.       
    Space can be recovered at any time by deleting the files in c:\windows\sysvol\domain\NtFrs_PreExisting___See_EventLog.      
    NtFrs      
    4/3/2015 10:20:13 AM            
    Warning  13565     
    File Replication Service is initializing the system volume with data from another 
    domain controller. Computer DC3 cannot become a domain controller until this process 
    is complete. The system volume will then be shared as SYSVOL.       
    To check for the SYSVOL share, at the command prompt, type:   
    net share        When File Replication Service completes the initialization process, the SYSVOL 
    share will appear.       
    The initialization of the system volume can take some time.  The time is dependent on the amount of data in the system volume, 
    the availability of other domain controllers, and the replication 
    interval between domain controllers.            
    NtFrs      
    4/2/2015 5:30:36 PM              
    Warning  13567     
    File Replication Service has detected and suppressed an average of 15 or more file updates 
    every hour for the last 3 hours because the updates did not change the contents of 
    the file. The tracking records in FRS debug logs will have the filename and event time 
    for the suppressed updates. The tracking records have the date and time followed by :T: 
    as their prefix.        Updates that do not change the content of the file are suppressed to prevent 
    unnecessary replication traffic. Following are common examples of updates that do not 
    change the contents of the file.        
    [1] Overwriting a file with a copy of the same file.    
    [2] Setting the same ACLs on a file multiple times.    
    [3] Restoring an identical copy of the file over an existing one.    
       Suppression of updates can be disabled by running regedit.       
    Click on Start, Run and type regedit.       
    Expand HKEY_LOCAL_MACHINE, SYSTEM, CurrentControlSet, Services, NtFrs, Parameters, 
    and create or update the value "Suppress Identical Updates To Files" to 0 (Default is 1) to force 
    identical updates to replicate.
    WARNING: Found Event ID 13508 errors without trailing 13509 ... see above for (up to) the 3 latest entries!
     ......... failed 8
    Checking for errors in Directory Service Event Log .... passed
    Checking for minimum FRS version requirement ... passed
    Checking for errors/warnings in ntfrsutl ds ... passed
    Checking for Replica Set configuration triggers... passed
    Checking for suspicious file Backlog size... passed
    Checking Overall Disk Space and SYSVOL structure (note: integrity is not checked)... passed
    Checking for suspicious inlog entries ... passed
    Checking for suspicious outlog entries ... passed
    Checking for appropriate staging area size ... passed
    Checking for errors in debug logs ...
    ERROR on NtFrs_0005.log : "ERROR_ACCESS_DENIED" : <SndCsMain:                    
    7060:   904: S0: 07:54:33> :SR: Cmd 63f84670, CxtG aac0c4ed, WS ERROR_ACCESS_DENIED, To  
    DC1.domain.local Len:  (366) [SndFail - Send Penalty]
    ERROR on NtFrs_0005.log : "ERROR_ACCESS_DENIED" : <SndCsMain:                     
    288:   877: S0: 08:00:12> :SR: Cmd 63f947f0, CxtG aac0c4ed, WS ERROR_ACCESS_DENIED, To  
    DC1.domain.local Len:  (366) [SndFail - rpc call]
    ERROR on NtFrs_0005.log : "ERROR_ACCESS_DENIED" : <SndCsMain:                     
    288:   904: S0: 08:00:13> :SR: Cmd 63f947f0, CxtG aac0c4ed, WS ERROR_ACCESS_DENIED, To  
    DC1.domain.local Len:  (366) [SndFail - Send Penalty]
    Found 1786 ERROR_ACCESS_DENIED error(s)! Latest ones (up to 3) listed above
     ......... failed with 1786 error entries
    Checking NtFrs Service (and dependent services) state...
    ERROR : Cannot access SYSVOL share on DC3
    ERROR : Cannot access NETLOGON share on DC3
     ......... failed 2
    Checking NtFrs related Registry Keys for possible problems...
    SYSTEM\CurrentControlSet\Services\Netlogon\Parameters\SysvolReady = 0 :: ERROR: SysvolReady is not set to 1 :: SYSVOL is likely not Sharing! This key should NOT be changed manually but this should be addressed! See article KB.327781 (How to Troubleshoot
    Missing SYSVOL and NETLOGON Shares on Windows Server) for further information!
    failed with 1 error(s) and 0 warning(s)
    Checking Repadmin Showreps for errors...passed
    Final Result = failed with 1797 error(s)
    Keep in mind that this is after I tried an authoritative restore.

  • How to Read the "text file and csv file" through powershell Scripts

    Hi All
    i need to add a multiple users in a particular Group through powershell Script how to read the text and CSV files in powershell
    am completly new to Powershell scripts any one pls respond ASAP.with step by step process pls
    Regards:
    Rajeshreddy.k

    Hi Rajeshreddy.k,
    To add multiple users to one group, I wouldn't use a .csv file since the only value you need from a list is the users to be added.
    To start create a list of users that should be added to the group, import this list in a variable called $users, the group distinguishedName in a variable called $Group and simply call the ActiveDirectory cmdlet Add-GroupMember.
    $Users = Get-Content -Path 'C:\ListOfUsernames.txt'
    $Group = 'CN=MyGroup,OU=MyOrg,DC=domain,DC=lcl'
    Add-ADGroupMember -Identity $Group -Members $Users

  • Error During install Exchange 2013 through Powershell on Server 2012 "Mailbox role: Client Access service"

    Dear all
    During install Exchange 2013 through Powershell on Server 2012 I got this error in Mailbox role: Client Access service :
    The following error was generated when "$error.Clear();
    $BEVdirIdentity = $RoleNetBIOSName + "\OWA (Exchange Back End)";
    new-OwaVirtualDirectory -Role Mailbox -WebSiteName "Exchange Back End" -DomainController $RoleDomainController
    set-OwaVirtualdirectory -Identity $BEVdirIdentity -FormsAuthentication:$false -WindowsAuthentication:$true;
    " was run: "An error occurred while creating the IIS virtual directory 'IIS://MONAMBX2.mona.local/W3SVC/2/ROOT/o
    wa' on 'MONAMBX2'.".
    The following error was generated when "$error.Clear();
    $BEVdirIdentity = $RoleNetBIOSName + "\OWA (Exchange Back End)";
    new-OwaVirtualDirectory -Role Mailbox -WebSiteName "Exchange Back End" -DomainController $RoleDomainController
    set-OwaVirtualdirectory -Identity $BEVdirIdentity -FormsAuthentication:$false -WindowsAuthentication:$true;
    " was run: "The operation couldn't be performed because object 'MONAMBX2\OWA (Exchange Back End)' couldn't be fo
    und on 'MonaDc1.mona.local'.".
    Any advice please !!

    I can't answer your question but I had a similar issue when I was trying to move our mailbox database off the C: drive.  Our environment still has an Exchange 2007 server in it and when I was trying to move the database on the 2013 server, I would get
    error messages saying the database does not exist.  It seemed like it was trying to move the database on the 2007 server from the similar error messages that I was getting.  To get around it, I deleted the database and created a new one on the drive
    where we wanted it.
    I discovered this when I was configuring the Antispam settings.  I deleted our 2007 settings, added them to the 2013 shell, the settings appeared on our 2007 server.  The shell on 2013 was making changes to 2007.
    I'm not sure if there is a "Get|Set or New" command that I/we should be using when this happens.  Or maybe my issues will be fixed if I just remove the Exchange 2007 server?  I'm not ready to do that yet because I can't configure the spam filtering
    on 2013 yet with its shell not being able to make the changes that we need.
    I don't know if your environment is in coexistence mode like mine.
    Hopefully someone else out there has an answer or can tell us when/how the shell can make the appropriate changes to the 2013 server.  Does this happen after the 2007 server is removed?

  • Setting the custom master page through powershell is NOT working

    Hi,
     I am writing the below code to set the  custom master page through powershell.
    But its not working .when i went to site settings-->master page --> in the drodown , the  maste page set is seattle.master ONLY, though my current master page is available in the dropdown.
     Can anyone pls help, whether i am missing in the below :
          Add-PSSnapin Microsoft.SharePoint.Powershell
           $SiteURL = "http://srvr1:22307/sites/SPW5"
        $weburl= $SiteURL
        $Site= Get-SPSite $SiteURL
        $web =  $Site.OpenWeb()
    $web.CustomMasterUrl = "/_catalogs/masterpage/myMasterpage.master"
    $web.MasterUrl = "/_catalogs/masterpage/myMasterpage.master"
    $web.Update()
    Das

    Hi,
    Is it a publishing page? If yes can you try the PowerShell scripts corresponding to the following code snippet?
    var publishingWeb = PublishingWeb.GetPublishingWeb(web);
    publishingWeb.CustomMasterUrl.SetInherit(inheritFromParent, false);
    publishingWeb.CustomMasterUrl.SetValue(masterPageUrl, false);
    publishingWeb.MasterUrl.SetInherit(inheritFromParent, false);
    publishingWeb.MasterUrl.SetValue(masterPageUrl, false);
    I've noticed sometime (not sure though) that Master page doesn't get updated if the inherit property is not updated first.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • How can I get the attributes details like user name, mail , from sAMAccount csv or notepad file through powershell or any other command in AD?

    How can I get the attributes details like user name, mail , from sAMAccount csv or notepad file through powershell or any other command in AD?

    Ok what about If i need to get all important attributes by comparing Email addresses from excel file and get all required answers
    currently I am trying to verify how many users Lines are missing , Emp numbers , Phones  from AD with HR list available to me.
    I am trying to Scan all the AD matching HR Excel sheet and want to search quickly how many accounts are active , Line Managers names , Phone numbers , locations , title , AD ID .
    these are fields I am interested to get in output file after scanning Excel file and geting reply from AD in another Excel or CSV file
    Name’tAccountName’tDescri ption’tEma I IAddress’tLastLogonoate’tManager’tTitle’tDepartmenttComp
    any’twhenCreatedtAcctEnabled’tGroups
    Name,SamAccountName,Description,EmailAddress,LastLogonDate,Manager,Title,Department,Company,whenCreated,Enabled,MemberOf | Sort-Object -Property Name
    Can you modify this script to help me out :)
    Hi,
    Depending on what attributes you want.
    Import-Module ActiveDirectory
    #From a txt file
    $USERS = Get-Content C:\Temp\USER-LIST.txt
    $USERS|Foreach{Get-ADUser $_ -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
    #or from a csv file
    $USERS = Import-CSV C:\Temp\USER-LIST.csv
    $USERS|Foreach{Get-ADUser $_.SAMAccountName -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
    Regards,
    Dear
    Gautam Ji<abbr class="affil"></abbr>
    Thanks for replying I tried both but it did not work for me instead this command which i extended generated nice results
    Get-ADUser -Filter * -Property * | Select-Object Name,Created,createTimeStamp,DistinguishedName,DisplayName,
    EmployeeID,EmployeeNumber,Enabled,HomeDirectory,LastBadPasswordAttempt,LastLogonDate,LogonWorkstations,City,Manager,MemberOf,MobilePhone,PasswordLastSet,BadLogonCount,pwdLastSet,SamAccountName,UserPrincipalName,whenCreated,whenChanged
    | Export-CSV Allusers.csv -NoTypeInformation -Encoding UTF8
    only one problem is that Manager column is generating this outcome rather showing exact name of the line Manager .
    CN=Mr XYZ ,OU=Users,OU=IT,OU=Departments,OU=Company ,DC=organization,DC=com,DC=tk

  • Enable document management for entities through PowerShell script (Dynamic CRM 2013 on premises)

    Hello,
    Can anybody let me know if it is possible to enable document management for entities through PowerShell script for Dynamic CRM 2013 on premises.
    I want power shall script where user will give the entity (Accounts, Contacts etc.)   for the CRM.
    The script should enable the document management for the entity.
    Thank you for your support.

    Hi Jeff,
    Any updates? If you have any other questions, please feel free to let me know.
    A little clarification to the script:
    function _ErrObject{
    Param($name,
    $errStatus
    If(!$err){
    Write-Host "error detected"
    $script:err = $True
    $ErrObject = New-Object -TypeName PSObject
    $Errobject | Add-Member -Name 'Name' -MemberType Noteproperty -Value $Name
    $Errobject | Add-Member -Name 'Comment' -MemberType Noteproperty -Value $errStatus
    $script:ErrOutput += $ErrObject
    $errOutput = @()
    _ErrObject Name, "Missing External Email Address"
    $errOutput
    _ErrObject Name "Missing External Email Address"
    $errOutput
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support

  • FYI: Test Message in MIGO is empty

    Hi Experts,
    I have created PO and while executing T-code MIGO following error message displays on sreen and due to that unable to creat GR
    FYI: Test Message in MIGO is empty
    Message no. 00007
    Thanks
    Sanjay D

    hi,
    your question is not fillfull, but im suggesting while doing migo we need mentioned how much qty are receiving and you should accept the material  i mean you have to select check box under qty
    bai

  • App-V Server : Changing Package Name through Powershell.

    Hi,
    Is it possible to change the package name through powershell ?
    Here is the sequence i tried which didn't work...
     $package=Get-AppvServerPackage -PackageID ""
     $package.name="<new name>"
     Set-AppvServerPackage -AppvServerPackage $package
    And also the version set to all the packages is set to 0.0.0.1 , Is there any other place where they save the version of software or they don't deal with software version ?
    Any help on this would be great...
    Thanks,
    Sumit.

    I doubt that you can modify the package name 'afterwards'. If the package name really is a concern (users usually don't see that), it should be modified using the Sequencer or Application Virtualization Explorer.
    Falko
    Twitter
    @kirk_tn   |   Blog
    kirxblog   |   Web
    kirx.org   |   Fireside
    appvbook.com

  • How to remove network devices through powershell? (scom 2012)

    Hi
    Could anyone says how to delete network device in SCOM 2012 through powershell?
    In 2007 we have Get-RemotelyManagedDevice.
    I have a big number network device in monitoring and now need delete some of them with specific filter, all switches.
    How to do it?
    Thanks
    Alex

    The devices were discovered by an old Management Server that was reinstalled.
    I finally got those devices out of my SCOM environment using this SQL query (just replace networkdevicename):
    UPDATE
    BaseManagedEntity
    SET
    isdeleted=1
    from
    BaseManagedEntity where
    BaseManagedEntityId in
    (select
    BaseManagedEntityId from
    BaseManagedEntity where
    displayname like
    '%networkdevicename%')

Maybe you are looking for

  • ROS Email to vendor not created

    Hello experts, We are facing some issue while configuring ROS. We are using SRM 5.0. We are using two client strategy one for EBP and another for SUS. We are configuring ROS on the SUS client. We are able to launch the self registration link and the

  • Installed on Windows 8.1 and desktop illustrator too small buttons to work with tools

    Please, if you know what I need to do... talk to me please. Now my up - buttons on my workspase is 1\4 - 1\5 of all window.  I have so much free plase on my workspace and so small buttons...((( I don't know what I need to do...

  • SQL Loader into two related tables

    I am trying to import data into two tables from a single data file. The data looks something like this: Name Dept Joe Sales Bob Support Steve Engineering Mary Support I can easily import the data into a single table that has name and department with

  • Tool to test Webservices using SwA (Soap with Attachements)

    Hi All, I generally use the took xmlspy to test any webservice. But now i am working with a webservice that is using SOAP with Attachemtns. it seems we cannot use xmlspy to test/invoke webservices that use soap with attachements. is there any tool by

  • Spot Healing Brush Shape Dynamics?

    Is it possible to change the shape dynamics of the Spot Healing Brush Tool?  I see where to on any of the other brush tools but not for this. Using Photoshop CS4. Thanks, Wesley