Monday, April 17, 2017

70-411 File Screening and Storage Reports


70-411 File Screening and Storage Reports by edgoad

70-411 FSRM and File Quotas


70-411 FSRM and Quotas by edgoad

70-411 DFS and PowerShell



70-411 DFS and PowerShell by edgoad

#############################################
#Setup file shares
#Execute on Server1
New-Item C:\Sales -Type directory
New-SmbShare -Name "Sales" -Path "C:\Sales" -ReadAccess "Everyone"

#Execute on Server2
New-Item C:\Marketing -Type directory
New-SmbShare -Name "Marketing" -Path "C:\Marketing" -ReadAccess "Everyone"

#############################################
#Install DFS
Install-WindowsFeature "FS-DFS-Replication", "FS-DFS-Namespace" -IncludeManagementTools
Install-WindowsFeature -Computername 411Server2-00 "FS-DFS-Replication" -IncludeManagementTools

#Setup DFS Namespace
New-Item C:\DFSRoots\Company -Type directory
New-SmbShare -Name "Company" -Path "C:\DFSRoots\Company" -ReadAccess "Everyone"
New-DfsnRoot -TargetPath "\\411server1\Company" -Type DomainV2 -Path "\\411dom1-00.local\Company"
New-DfsnFolder -Path "\\411dom1-00.local\Company\Sales" -TargetPath "\\411Server1\Sales"
New-DfsnFolder -Path "\\411dom1-00.local\Company\Marketing" -TargetPath "\\411Server2-00\Marketing"

#############################################
#Execute on Server1
New-Item C:\Accounting -Type directory
New-SmbShare -Name "Accounting" -Path "C:\Accounting" -ReadAccess "Everyone"
New-Item "C:\Accounting\Server1.txt" -Type File

#Execute on Server2
New-Item C:\Accounting -Type directory
New-SmbShare -Name "Accounting" -Path "C:\Accounting" -ReadAccess "Everyone"
New-Item "C:\Accounting\Server2.txt" -Type File

#setup DFS Replication
New-DfsReplicationGroup -GroupName "Accounting Replication Group"
New-DfsReplicatedFolder -FolderName "Accounting" -GroupName "Accounting Replication Group"
Add-DfsrMember -ComputerName 411Server1, 411Server2-00 -GroupName "Accounting Replication Group"
Add-DfsrConnection -GroupName "Accounting Replication Group" -SourceComputerName 411Server1 -DestinationComputerName 411Server2-00
Set-DfsrMembership -GroupName "Accounting Replication Group" -FolderName "Accounting" -ContentPath "C:\Accounting" -ComputerName 411Server1 -PrimaryMember $true -Force
Set-DfsrMembership -GroupName "Accounting Replication Group" -FolderName "Accounting" -ContentPath "C:\Accounting" -ComputerName 411Server2-00  -Force


Thursday, April 13, 2017

70-411 DFS Replication


70-411 DFS Replication by edgoad

70-411 DFS Install and Configure


70-411 DFS install and configure by edgoad

70-411 WSUS and PowerShell


70-411 WSUS and PowerShell by edgoad

####################################################### 
#Install WSUS 
Install-WindowsFeature UpdateServices -IncludeManagementTools 

#Initial configuration 
New-Item c:\WSUScontent -ItemType Directory  
& 'C:\Program Files\Update Services\Tools\WsusUtil.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 Server 2012 R2')}  
$myProducts | Set-WsusProduct 
  
#Define the update classifications to include 
$myClass = Get-WsusClassification | Where-Object { $_.Classification.Title -in ('Security Updates', 'Critical Updates', 'Definition Updates')}  
$myClass | Set-WsusClassification 


######################################################## 
#Create the computer group  
$myWsus.CreateComputerTargetGroup("Desktops") 
$myWsus.CreateComputerTargetGroup("Servers") 


####################################################### 
#Setup automatic synchronization 
$mysubs = $myWsus.GetSubscription()  
$mysubs.SynchronizeAutomatically = $true  
$mysubs.NumberOfSynchronizationsPerDay = 1  
$mysubs.Save() 

####################################################### 
#Create the auto-approval rule 
$myWsus = Get-WsusServer 
$myRule = $myWsus.CreateInstallApprovalRule("Desktops") 
  
#Define a deadline 
#$myDeadline = New-Object Microsoft.UpdateServices.Administration.AutomaticUpdateApprovalDeadline 
#$myDeadline.DayOffset = 3 
#$myDeadline.MinutesAfterMidnight = 180 
#$myRule.Deadline = $myDeadline 

#Add update classifications to the rule 
$myClass = $myRule.GetUpdateClassifications() 
$myClass.Add(($myWsus.GetUpdateClassifications() | Where-Object Title -eq 'Critical Updates')) 
$myClass.Add(($myWsus.GetUpdateClassifications() | Where-Object Title -eq 'Security Updates')) 
$myRule.SetUpdateClassifications($myClass) 

#Assign the rule to a computer group 
$myGroups = New-Object Microsoft.UpdateServices.Administration.ComputerTargetGroupCollection 
$myGroups.Add(($myWsus.GetComputerTargetGroups() | Where-Object Name -eq "Desktops")) 
$myRule.SetComputerTargetGroups($myGroups) 

#Enable and save the rule 
$myRule.Enabled = $true 
$myRule.Save() 

####################################################### 
#Initiate synchronization 
$mySubs = $myWsus.GetSubscription() 
$mySubs.StartSynchronization()  

70-411 WSUS computer groups, GPOs and Auto Approval


70-411 WSUS Computer Groups, GPO, and Auto... by edgoad

70-411 WSUS Install and initial setup


70-411 WSUS Install by edgoad

Sunday, April 09, 2017

70-411 WDS Capture, Drivers, and PowerShell

Creating a capture image, and adding drivers to WDS. Additionally, install and configure WDS entirely using PowerShell

70-411 WDS Capture, Drivers, and PowerShell by edgoad

PowerShell commands

#Authorize DHCP
Add-DhcpServerInDC

#Create DHCP scope
Add-DhcpServerv4Scope -StartRange 172.23.0.50 -EndRange 172.23.0.60 -SubnetMask 255.255.255.0 -Name LAB -State Active

#Install WDS
Install-WindowsFeature -Name WDS -IncludeAllSubFeature -IncludeManagementTools

#Configure/authorize WDS
wdsutil /initialize-server /reminst:"c:\remoteinstall"
wdsutil /start-server

#Import boot image
Import-WdsBootImage -Path "D:\sources\boot.wim" -NewImageName "Win 2012 R2 boot" -NewDescription "Win 2012 R2" -NewFileName "W2012R2boot.wim"

#New image group
New-WdsInstallImageGroup -Name "Windows Server 2012 R2"

#Import install image
#Get-WindowsImage -ImagePath D:\sources\install.wim
Import-WdsInstallImage -Path "D:\sources\install.wim" -ImageGroup "Windows Server 2012 R2" -ImageName "Windows Server 2012 R2 SERVERSTANDARD"

#Import drivers
wdsutil /add-drivergroup /DriverGroup:"VMware Drivers"
Import-WdsDriverPackage -Path "C:\Program Files\Common Files\VMware\Drivers\vmxnet3\vmxnet3ndis6.inf" -Architecture X64 -DisplayName "VMware NIC" -GroupName "VMware Drivers"
Add-WdsDriverPackage -Architecture X64 -ImageName "Win 2012 R2 boot" -Name "VMware NIC"

Saturday, April 01, 2017

70-411 WDS Install, Configure, and Deploy

Installing and configuring WDS, and deploying a Windows system using WDS step by step.

70-411 WDS Install, Configure, and Deploy by edgoad

70-411 Installing Windows Server 2012 R2

In preparation for the Microsoft 70-411 exam, I am starting a video series tackling the criteria for the test. The first video, Installing Windows Server 2012 R2 is setup and available


70-411 Install Server 2012 R2 by edgoad