70-411

70-411 WSUS and PowerShell

Posted on

####################################################### #Install WSUS Install-WindowsFeature UpdateServices -IncludeManagementTools #Initial configuration New-Item c:WSUScontent -ItemType Directory  & ‘C:Program FilesUpdate ServicesToolsWsusUtil.exe’ postinstall contentdir=c:WSUScontent  #Review synchronization settings $myWsus = Get-WsusServer  $myWsus.GetSubscription() #Initial synchronization  $mySubs = $myWsus.GetSubscription()  $mySubs.StartSynchronizationForCategoryOnly() #Sync status $mySubs.GetSynchronizationProgress()   $mySubs.GetSynchronizationStatus()   $mySubs.GetLastSynchronizationInfo()  ####################################################### #Define the product categories to include $myProducts = Get-WsusProduct | Where-Object { $_.Product.Title -in ( ‘Windows 8.1’, ‘Windows […]

70-411

70-411 WDS Capture, Drivers, and PowerShell

Posted on

Creating a capture image, and adding drivers to WDS. Additionally, install and configure WDS entirely using PowerShell70-411 WDS Capture, Drivers, and PowerShell by edgoad PowerShell commands #Authorize DHCPAdd-DhcpServerInDC #Create DHCP scopeAdd-DhcpServerv4Scope -StartRange 172.23.0.50 -EndRange 172.23.0.60 -SubnetMask 255.255.255.0 -Name LAB -State Active #Install WDSInstall-WindowsFeature -Name WDS -IncludeAllSubFeature -IncludeManagementTools #Configure/authorize WDSwdsutil /initialize-server /reminst:”c:remoteinstall”wdsutil /start-server #Import boot imageImport-WdsBootImage […]

Scripting

Remove HBAs from Navisphere

Posted on

Remove all Registered, and Logged Out HBAs NaviSECCli.exe -user emc -password emc -scope 0 -h tkj1506ds01 port -removehba -all Remove a specific HBA (logged in or out) NaviSECCli.exe -user emc -password emc -scope 0 -h tkj1506ds01 port -removehba -hbauid 50:01:39:71:00:0F:81:46:50:01:39:70:00:0F:81:46

Scripting

Gathering VM inventory via PowerShell

Posted on

We are moving several VMs from an ESX4.0 environment to a ESX4.1 environment and performing tools/HW upgrades at the same time. The two environments report to different Virtual Center servers, so we need to collect various information about the VMs prior to migrating them. Below is a combination of several scripts I found online to […]

Active Directory

Managing DNS records via PowerShell

Posted on

I am always looking for ways to automate tasks, and I make it my goal to only use GUI interfaces if tasks are infrequent or there is no other choice. We are in process of reconfiguring several of our VMs, and as such are creating static DNS entries for the systems. I was very excited […]