• Home
  • Cisco
  • Exchange
  • Linux
  • Navision
  • Network
  • Virtualization
  • Windows
  • About
  •  

    RDP print from Windows 2008 domain controler

    August 30th, 2013

    C:
    Cd\Windows\System32\spool
    Cacls.exe PRINTERS /e /g users:C

    restart spooler

    /T Changes ACLs of specified files in
    the current directory and all subdirectories.

    /L Work on the Symbolic Link itself versus the target

    /M Changes ACLs of volumes mounted to a directory

    /S Displays the SDDL string for the DACL.

    /S:SDDL Replaces the ACLs with those specified in the SDDL string
    (not valid with /E, /G, /R, /P, or /D).

    /E Edit ACL instead of replacing it.

    /C Continue on access denied errors.

    /G user:perm Grant specified user access rights.
    Perm can be:
    R Read
    W Write
    C Change (write)
    F Full control

    /R user Revoke specified user’s access rights (only valid with /E).

    /P user:perm Replace specified user’s access rights.
    Perm can be:
    N None
    R Read
    W Write
    C Change (write)


    Exchange 2010 – Fix failed DAG database replication

    August 30th, 2013

    If your replicated databaces is susspended or failed you may need to reeseed them.

    Check status:
    Get-MailboxDatabaseCopyStatus -server MyExchange

    Reseed:
    Update-MailboxDatabaseCopy DatabaseName\ReplicaServerName -SourceServer ActiveServerName -DeleteExistingFiles:$True
    ReplicaServerName is the server with the FAILED copy.

    Id Content index is in failed:
    Update-MailboxDatabaseCopy -Identity DatabaseName\ReplicaServerName’ ā€“CatalogOnlyā€¯


    Scheduled defragmentation in windows 2008 and 7

    August 27th, 2013

    Create a task:
    %windir%\system32\defrag.exe
    With the drive as argument.
    -c or -d