Bash remote script execution


bash <(curl -s https://github.com/dominicpratt/install-zabbix-agent/blob/master/install-zabbix-agent.sh)

Ubuntu slow USB copy

If your running a x64 bit Ubuntu or other Linux and find USB transfers hang at the end apply this fix:

echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes
echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes


Then

swapoff -a

Windows DFSR Troubleshooting


A few cmds to help with the DFS troubleshooting aspects, keep in mind all should be run from an elevated PowerShell
Dfsdiag /TestDCs

DFSDiag /TestDFSIntegrity /DFSRoot:\\Contoso.com\MyNamespace /Recurse /Full
Dfsutil /pktinfo
Dfsutil /spcinfo
Dfsr pollad
Klist tgt
Klist tickets
DfsrAdmin Health New /RgName:"Contoso.com\Path1\Folder1" /RefMemName:SERVER /RepName:C:\DFSReports\HealthReport_DATE.html /FsCount:true
dfsrdiag ReplicationState /member:SERVER /all
wmic /namespace:\\root\microsoftdfs path DfsrReplicatedFolderInfo get * /format:textvaluelist
Get-ChildItem C:\Temp -recurse | Out-File E:\DFS-Data\Path1\DfsrPrivate\Staging > C:\Export\allfiles.txt
dfsrdiag backlog /receivingmember:SERVER2 /sendingmember:SERVER1 /rgname:"ReplicationGroup1" /rfname:"Folder Name"

To search for replicated folder name:
1. From Elevated PowerShell: Notepad "C:\Windows\Debug\Dfsr####.log"

2. Find "parent" GUID (will look like {D767AC01-8375-447A-88E4-1CCF6A18DD95}-v167695)
Search for GUID

Run: wbemtest
Namespace: root\microsoftdfs connect

Query: "Select * from dfsreplicatedfolderconfig"


Completely Flush Server
  • dfsutil /pktflush
  • dfsutil /spcflush
  • dfsutil /purgeMupcache
  • klist purge
  • ipconfig /flushdns 

Install MSIX with powershell

 Add-AppxPackage -Path "C:\Users\MyUserName\Downloads\affinity-designer-2.0.0.msix" -DependencyPath " https://aka.ms/Microsof...

Mais vistos