70-411

70-411 DFS and PowerShell

Posted on

70-411 DFS and PowerShell by edgoad ##############################################Setup file shares#Execute on Server1New-Item C:Sales -Type directoryNew-SmbShare -Name “Sales” -Path “C:Sales” -ReadAccess “Everyone” #Execute on Server2New-Item C:Marketing -Type directoryNew-SmbShare -Name “Marketing” -Path “C:Marketing” -ReadAccess “Everyone” ##############################################Install DFSInstall-WindowsFeature “FS-DFS-Replication”, “FS-DFS-Namespace” -IncludeManagementToolsInstall-WindowsFeature -Computername 411Server2-00 “FS-DFS-Replication” -IncludeManagementTools #Setup DFS NamespaceNew-Item C:DFSRootsCompany -Type directoryNew-SmbShare -Name “Company” -Path “C:DFSRootsCompany” -ReadAccess “Everyone”New-DfsnRoot -TargetPath “\411server1Company” […]

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 […]