Guest User

Untitled

a guest
Jul 17th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. # Nutanix
  2. #open Powershell x86
  3. #%SystemRoot%\syswow64\WindowsPowerShell\v1.0\powershell.exe
  4. #Add Nutanix Snappin
  5. Add-PsSnapin NutanixCmdletsPSSnapin
  6. Connect-NutanixCluster -server $objNutanixBlockIP -AcceptInvalidSSLCerts
  7.  
  8.  
  9. # SCCM
  10. cd (Drive of Install)
  11. cd "(Drive of Install)\Program Files\Microsoft Configuration Manager\AdminConsole\bin"
  12. import-module .\ConfigurationManager.psd1
  13. cd (Name of Site):
  14.  
  15.  
  16. Example
  17. cd c:\
  18. cd "c:\Program Files\Microsoft Configuration Manager\AdminConsole\bin"
  19. import-module .\ConfigurationManager.psd1
  20. cd KJL:
  21.  
  22. # DNS
  23. import-module *dns*
  24. $objDNSRecord = get-dnsrecord -recordtype A | select name,RecordData
  25.  
  26. # AD
  27. import-module *AD*
  28. get-user
  29. get-computer
  30.  
  31. # Server Manager
  32. #Server manager module
  33. Import-Module ServerManager
  34.  
  35.  
  36.  
  37. #IIS module
  38. #& "$env:programfiles\IIS\PowerShellSnapin\iisConsole.psc1"
  39. Import-Module WebAdministration
  40. cd iis:\
Add Comment
Please, Sign In to add comment