Skip to content

Instantly share code, notes, and snippets.

@jmurphyau
Created April 24, 2018 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmurphyau/b6f0b97291b3ac78f6dcb2e36cf93da9 to your computer and use it in GitHub Desktop.
Save jmurphyau/b6f0b97291b3ac78f6dcb2e36cf93da9 to your computer and use it in GitHub Desktop.
one liner to copy WDE logs from default WDE log directory to the desktop
powershell.exe -command "& { $dt=(get-date -UFormat \"%Y-%m-%d-%H%m%S\"); $s=\"$Env:APPDATA\Genesys Telecommunication\InteractionWorkspace\log\*\"; $d=(\"{0}\Desktop\wde-logs-{1}\" -f ($Env:USERPROFILE,$dt)); if ((test-path $d) -eq $false) { md $d > $null; } cp $s $d; write-host \"\"; write-host (\"WDE logs have been copied to {0}\" -f $d) }"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment