Skip to content

Instantly share code, notes, and snippets.

@FlintSable
Last active February 13, 2020 20:34
Show Gist options
  • Select an option

  • Save FlintSable/6b135c87331b49051ec526b80139ed4b to your computer and use it in GitHub Desktop.

Select an option

Save FlintSable/6b135c87331b49051ec526b80139ed4b to your computer and use it in GitHub Desktop.
:: query users from a server
quser /server:fsps3
:: log off a user from server
logoff SessionID /server:ServerName
::Run the below Robocopy command to copy directory structure i.e
::deep copy of folder hierarchy and the data in all the subfolders.
Robocopy /S D:\dir1\data E:\backup\data
:: if you do this "D:\dir1\my data\" because of the \" that will be seen as an escape
:: and you will be left without the final "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment