Guest User

Untitled

a guest
Oct 1st, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. @echo off
  2. cls
  3. color 0f
  4. echo Micro$oft Windows [Version blah blah]
  5. echo (c) 2018 Microsoft Corporation. No rights reserved.
  6. echo.
  7. echo C:\Users\%USERNAME%>
  8. Get-ExecutionPolicy -Scope CurrentUser
  9.  
  10. echo.
  11. echo.
  12. echo.
  13.  
  14. if %1=="--get" goto get
  15. if %1=="--set" goto set
  16. if %1=="--del" goto del
  17. if %1=="--help" goto help
  18. echo
  19.  
  20. :get
  21. echo C:\Users\%USERNAME%> ADS %1 %2 %3
  22. get-content -path %2 -stream %3
  23.  
  24. :set
  25. echo C:\Users\%USERNAME%> ADS %1 %2 %3
  26. set-content -path %2 -stream %3
  27.  
  28. :del
  29. echo C:\Users\%USERNAME%> ADS %1 %2 %3
  30. remove-content -path %2 -stream %3
  31.  
  32. :help
  33. echo USAGE: ADS [--option] [PATH] [STREAM]
  34. echo.
  35. echo.
  36. echo Example: ADS --get "C:\Users\%USERNAME%\Documents\hello.txt" mystream
  37. echo.
  38. echo.
  39. echo Zone Help
  40. echo Value Setting
  41. echo ——————————
  42. echo 0 My Computer
  43. echo 1 Local Intranet Zone
  44. echo 2 Trusted sites Zone
  45. echo 3 Internet Zone
  46. echo 4 Restricted Sites Zone
Add Comment
Please, Sign In to add comment