Advertisement
c0psrul3

PowerShell - Remote Exec. & other stuff

Dec 28th, 2015
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. Powershell :: Executing from remote [procedure] call
  2.  
  3.  
  4. "" PowerShell itself doesn't natively use SSH. It uses something called Remoting, which uses the WS-Management protocol.
  5. [[http://powershell.org/wp/forums/topic/executing-powershell-scripts-from-linux-servers/]]
  6.  
  7.  
  8.  
  9. "" After some head scratching and research, I ended up overcoming this challenge through free open source product saltstack which I use for my other production multiple server management and orchestration purposes. With saltstack, you can configure a Windows system as a salt-minion (like a client or managed server) and then executing remote commands and perform various operations from Linux server.
  10. powershell script on a Windows 2012R2 from CentOS [[http://www.youtube.com/watch?v=miK25mDV9ik]]
  11.  
  12.  
  13.  
  14.  
  15. "" PowerShell Web Access - Richard Siddaway - PowerShell Summit 2013
  16. [[https://www.youtube.com/watch?v=EloMKpvfES8]]
  17.  
  18. "" 10 Basic Powershell Commands and how to output data to CSV formatting
  19. [[https://www.youtube.com/watch?v=wqaqeUASxAs]]
  20.  
  21. "" 02 - Powershell for Active Directory -Working with Users and Groups
  22. [[https://www.youtube.com/watch?v=8gvPFj6Mzpk]]
  23.  
  24. Import-CSV ".\newusers.csv" | Select-Object Title, Detpartment, City, State, Office, EmpoyeeID, `
  25. @{name='name';exporession={($_.'First Name'.substring(0,3)+$_.'Last Name').substring(0,7).toLower()}}, `
  26. @{name='samAccountName';expression={($_.'First Name'.substring(0,3)+$_.'Last Name').substring(0,7).toLower()}}, `
  27. @{name='displayName';expression={$_.'First Name'+' '+$_.'Last Name'}}, `
  28. @{name='givenName';expression={$_.'First Name'}}, `
  29. @{name='surName';expression={$_.'Last Name'}}, `
  30. @{name='path';expression{'OU=NewUsers,DC=<DOMAIN>,DC=com'}} |
  31. Out-GridView
  32.  
  33. Import-CSV ".\newusers.csv" | Select-Object Title, Detpartment, City, State, Office, EmpoyeeID, `
  34. @{name='name';exporession={($_.'First Name'.substring(0,3)+$_.'Last Name').substring(0,7).toLower()}}, `
  35. @{name='samAccountName';expression={($_.'First Name'.substring(0,3)+$_.'Last Name').substring(0,7).toLower()}}, `
  36. @{name='displayName';expression={$_.'First Name'+' '+$_.'Last Name'}}, `
  37. @{name='givenName';expression={$_.'First Name'}}, `
  38. @{name='surName';expression={$_.'Last Name'}}, |
  39. New-ADUser -ChangePasswordAtLogin $true -Enabled $True -AccountPassword $(ConvertTo-SecureString
  40.  
  41. Get-ADUser -Filter 'Office -eq "MVA"' | ogv
  42.  
  43.  
  44.  
  45. "" Learn Windows PowerShell in a Month of Lunches
  46. [[https://www.youtube.com/watch?v=6CRTahGYnws&list=PL6D474E721138865A]]
  47.  
  48. "" Introduction to Microsoft Windows Powershell for Systems Administrators
  49. [[https://www.youtube.com/watch?v=CYuUx6SB-Lc]]
  50.  
  51.  
  52. "" PowerShell Web Access
  53. [[http://blogs.msdn.com/b/powershell/archive/2012/03/07/introducing-windows-powershell-web-access-in-windows-server-8-beta.aspx]]
  54.  
  55. "" PowerShell Web Access Install
  56. [[https://technet.microsoft.com/en-us/library/hh831611.aspx]]
  57.  
  58. "" PowerShell Gallery
  59. [[http://www.powershellgallery.com/PSModule]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement