Skip to content

Instantly share code, notes, and snippets.

@h3nryza
Last active July 17, 2018 17:52
Show Gist options
  • Select an option

  • Save h3nryza/f237941761b4b2446c2b129f925fdf38 to your computer and use it in GitHub Desktop.

Select an option

Save h3nryza/f237941761b4b2446c2b129f925fdf38 to your computer and use it in GitHub Desktop.
Powershell connect to various consoles DNS, AD, Nutanix,
# Nutanix
#open Powershell x86
#%SystemRoot%\syswow64\WindowsPowerShell\v1.0\powershell.exe
#Add Nutanix Snappin
Add-PsSnapin NutanixCmdletsPSSnapin
Connect-NutanixCluster -server $objNutanixBlockIP -AcceptInvalidSSLCerts
# SCCM
cd (Drive of Install)
cd "(Drive of Install)\Program Files\Microsoft Configuration Manager\AdminConsole\bin"
import-module .\ConfigurationManager.psd1
cd (Name of Site):
Example
cd c:\
cd "c:\Program Files\Microsoft Configuration Manager\AdminConsole\bin"
import-module .\ConfigurationManager.psd1
cd KJL:
# DNS
import-module *dns*
$objDNSRecord = get-dnsrecord -recordtype A | select name,RecordData
# AD
import-module *AD*
get-user
get-computer
# Server Manager
#Server manager module
Import-Module ServerManager
#IIS module
#& "$env:programfiles\IIS\PowerShellSnapin\iisConsole.psc1"
Import-Module WebAdministration
cd iis:\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment