Pipe output to clipboard:
C:\\> some_command.exe | clip
Output clip to file: (Requires PowerShell 5)
PS C:\\> Get-Clipboard> clip.txt
Add time stamps into log file:
C:\\> echo %DATE% %TIME%>> <TXT LOG>,txt
Add/Modify registry value remotely:
C:\\> reg add \\\\<REMOTE COMPUTER NAME>\\HKLM\\Software\\<REG KEY INFO>
Get registry value remotely:
C:\\> reg query \\\\<REMOTE COMPUTER NAME>\\HKLM\\Software\\<REG KEY INFO>
Test to see if Registry Path exists:
PS C:\\> Test-Path "HKCU:\\Software\\Microsoft\\<HIVE>"
Copy files remotely:
C:\\> robocopy C:\\<SOURCE SHARED FOLDER>
\\\\<DESTINATION COMPUTER>\\<DESTINATION FOLDER> /E
Check to see if certain file extensions are in a directory:
PS C:\\> Test-Path C:\\Scripts\\Archive\\* -include *·PSl, *,VbS
Show contents of a file:
C:\\> type <FILE NAME>
Combine contents of multiple files:
C:\\> type <FILE NAME 1> <FILE NAME 2> <FILE NAME 3> > <NEW FILE NAME>