Last active
July 17, 2018 17:52
-
-
Save h3nryza/f237941761b4b2446c2b129f925fdf38 to your computer and use it in GitHub Desktop.
Powershell connect to various consoles DNS, AD, Nutanix,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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