Skip to content

Tag: powershell

Install Server 2016 Core as DC, configure AD Account using Powershell

Installing A DC on Server Core uses less resources: Create new VM named DC01 Go through the install Set 30GB disk size Choose Non Gui install once installed type sconfig enable rdp configure name DC01, restart connect to host using rdp type powershell get-windowsfeature Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools The below…

Hyper-V 2016 Server using Windows Admin Center and Hyper-V Manager on Win 10

Reset RAID: remove logical drives and recreate. 1 x 500GB, 1x 1.3 TB DL Install Hyper-V 2016 server using iLO on a 3ogb partition Run all updates on hyper-v server Create other partitions during disk setup such as 800gb VM Storage and 1TB Disk Storage Install: Win 10 1803 Enterprise…

Setup PowerShell 5.1 Self Signed Certificate and sign Script

Create a self signed certificate on Win10 and PS5.1 The cmdlet generates an ssl cert for testing purposes. Unlike makecert this cannot be used to sign a driver or an application code. Get-Command -Module PKI New-SelfSignedCertificate -DnsName test.vmlab.local -CertStoreLocation cert:\LocalMachine\My -Type CodeSigningCert View the Cert: cd cert: dir cd localmachine…

Powershell Notes – Advanced Tools and Scripting

Course 2 – Advanced Tools and Scripting Instead of real time we will do scripting Make tools to use and share DL scripts from here: https://powershell.org/2013/07/29/mva-powershell-jumpstart-2-scripts-for-aug-1st/ Steps to create tools with modules inside scripts and clean them up Automate things you need to do again In Win Server 2012 R2…

Powershell Jumpstart Notes

Microsoft Virtual Academy, MVA 23/06/2017 Getting started with Powershell 3.0 Jump Start Useful Links: https://Powershell.org https://Powershell.org/wp/ebooks/ http://blogs.msdn.microsoft.com/powershell/ https://ss64.com/ps/ Module 1 – Don’t fear the shell set powershell normal as taskbar icon, can right click and start as admin or start ise right click icon in taskbar > properties > shortcut…

Lost network to Hyper-V 2016 after changing virtual switch settings

In Hyper-V Virtual Switch Manager i had unticked “Allow management operating system to share this network adapter” and also enabled VLAN identification. After applying this i lost all network connectivity to the host Hyper-V Server. I had to access it through the console and run PS cmdlet: Get-VMSwitch Remove-VMSwitch “Name…

Windows 10 System Image Manager (SIM) Unattend answer file

Note: OS Used is Windows 10 Creator’s Update Enterprise Trial (Win10CU-EntT) DL ADK 1703 from here: https://developer.microsoft.com/en-us/windows/hardware/windows-assessment-deployment-kit Install deployment tools from ADK which includes Windows SIM.Open PS run this:Go to path of adksetup.exe Run Windows SIM with this command in PS: Mount Windows 10 ISO right click file and Mount.Open…

Import start layout XML into Windows 10 install.wim Image using PowerShell

In the previous post I exported the Start Layout to an XML file. Now I will import this into a mounted Windows 10 Image which can then be deployed using various methods. Copy Windows 10 Creator’s Update Enterprise ISO to local disk in C:\imagestore\. Mount the ISO using PS: [ccie_powershell]Mount-DiskImage…