Similar documents
Connecting besecure to an Active Directory server

dn: CN=Fabian Alleyne, OU=Department,DC=etechd,DC=COM changetype: add cn: Fabian Alleyne objectclass: user samaccountname: Fabian

Deploying Dell Open Manage Server Administrator from IT Assistant 7.0

Step by Step Journey to Migration Exchange 2010 sp3 to Exchange Server 2016 Part-III

Force Active Directory Replication After Tombstone

Overview. Directory Services Practical Exercises

DirectShare Direct Collaboration File Sharing

Overview. Program Start VB SCRIPT SIGNER. IT Services

SEVENMENTOR TRAINING PVT.LTD

Cloud Attached Storage

MCSA Windows Server 2012

Module 1 Web Application Proxy (WAP) Estimated Time: 120 minutes

Backup using Quantum vmpro with Symantec Backup Exec release 2012

Let s manage agents. Tom Sightler, Principal Solutions Architect Dmitry Popov, Product Management

Server based Networking & Security IS375 Group 5 Project. The purpose of this project is to put into practice what we learned in classroom.

This course comes with a virtual lab environment where you can practice what you learn.

Windows Server 2008 Administration

These pages will help you get started with the Mazda Web Report System. Use the following options to find the information you need:

COURSE OUTLINE. COURSE OBJECTIVES After completing this course, students will be able to: 1 - INSTALLING & CONFIGURING DCS

Windows Server 2003 { Domain Controller Installation and Configuration}

Identity with Windows Server 2016

Faculty of Engineering Computer Engineering Department Islamic University of Gaza Network Lab # 5 Managing Groups

HEADLINE: STAFF DIRECTORY DE-CLUTTERING. The Need

Admin Reporting Kit for Active Directory

Disables all services configured as manual start. Among other things, this prevents Power Users from being able to start these services.

Standards User Guide. PowerSchool 6.0 Student Information System

Identity with Windows Server 2016

MCSE Server Infrastructure. This Training Program prepares and enables learners to Pass Microsoft MCSE: Server Infrastructure exams

Microsoft System Center Configuration Manager Dell Factory Integration

Filesharing. Jason Healy, Director of Networks and Systems

MCSA Windows Server 2012 Installation and Configuration

Microsoft System Center Configuration Manager 2012 Dell Factory Integration

Configuring, Managing, and Maintaining Windows Server 2008 R2 Servers

Products Data Migration From M1 to M2. User Manual

70-742: Identity in Windows Server Course Overview

Configuring, Managing and Maintaining Windows Server 2008-based Servers (Course 6419)

Overview. Audience Profile. Module Title : 20410DC -Installing and Configuring Windows Server Course Outline :: 20410DC::

MOC 6419B: Configuring, Managing and Maintaining Windows Server based Servers

Course CLD211.5x Microsoft SharePoint 2016: Search and Content Management

Exam Name: Installing and Configuring Windows Server 2012 R2 Exam

MOC 20410C: Installing and Configuring Windows Server 2012

Microsoft Exam

Microsoft Certified Solutions Associate (MCSA)

Course Content of MCSA ( Microsoft Certified Solutions Associate )

OpenNebula - Feature #2395 Provide windows guest contextualization scripts

Users. Setting up end-users to log calls against, and allow them to access the self-service web interfaces, there are several ways of achieving this.

Repository Management

M20742-Identity with Windows Server 2016

Introduction to Installing and Managing Microsoft Exchange Server 2007 (Course 5047A)

Phone: Fax: Directions for setting up MARCO Insert Item #A-6LI 3 H x 4 W

Microsoft Windows Small Business Server 2011 (R) Configuring.

Microsoft Server Administrator

Communication Tools Quick Reference Card

Symprex Folder Permissions Manager

Configuration and Operation Manual

Vendor: Microsoft. Exam Code: Exam Name: Installing and Configuring Windows Server Version: Demo

Windows 2000 System Administration Handbook, 1/e

20742: Identity with Windows Server 2016

Maintaining Cisco Unity Connection Server

Install and Configure Active Directory Domain Services

METHODOLOGY This program will be conducted with interactive lectures, PowerPoint presentations, discussions and practical exercises.

Active Directory Auditing Guide

SEMS SOFTWARE SUITE INSTALLATION WHERE TO DOWNLOAD THE INSTALLERS

SAM Data Management Manual

Course No. MCSA Days Instructor-led, Hands-on

Microsoft Configuring, Managing and Maintaining Windows Server 2008

6421A: Configuring and Troubleshooting a Windows Server 2008 Network Infrastructure

Click Studios. Passwordstate. Installation Instructions

Server : Manage and Administer 3 1 x

Data Store Management Best Practices. Bill Major Laurence Clinton

MCSA Windows Server 2012

Correct Answer: C. Correct Answer: B

MOC 20410B: Installing and Configuring Windows Server 2012

1. Introduction Minimum system requirements Basic Concept Server mode

User Guide. Avigilon Camera Configuration Tool

Installing and Configuring Windows Server 2012

Backup and Restore. About Backup and Restore

Compact Disc 1. Send us your feedback «Previous Next» Microsoft Windows 2000 Scripting Guide

Identity with Microsoft Windows Server 2016 (MS-20742)

Baseline Windows Vista Enterprise Computer Setup

microsoft. Number: Passing Score: 800 Time Limit: 120 min.

Installing and Configuring Windows Server 2012

DESCRIPTION OF TYPICAL NETWORK SERVICES ON SERVERS

Automating Administration with Windows PowerShell 2.0

subcomm will need to be involved if we also push certs for all users. WolfTech domain. John Klein is organizing proposal with specifics.

Active Directory Force Replication Command Line 2003

Identity with Windows Server 2016 (20742)

Setting Up the Dell DR Series System as an NFS Target on Amanda Enterprise 3.3.5

Active Directory Services with Windows Server

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services (Course 6425A)

Setting Up the DR Series System as an NFS Target on Amanda Enterprise 3.3.5

One Identity Password Manager 5.8.0

Installing and Configuring Windows Server 2012

Docusnap X - Configuration Manual

Installing and Configuring Windows Server Installing and Configuring Windows Server 2012

Course 20410D: Installing and Configuring Windows Server 2012

Computer Skills Checklist

Powershell. Working With Data COMP2101 Fall 2017

70-411: Administrating Windows Server 2012

Microsoft Certified Solutions Expert (MCSE)

Transcription:

New-ADUser -Name <Name> -SAMAccountName <Logon Name> - GivenName <First Name> -Surname <Surname> -DisplayName <Display Name> -UserPrincipalName <User Principal Name>- Path <Organizational Unit Path> -ProfilePath <Profile Path> -HomeDrive <Home Drive Letter> -HomeDirectory <Home Directory Path> -AccountPassword (ConvertTo-SecureString -AsPlainText <Password> -Force) -Enabled $True New-ADUser -Name "Simon Ansell" -SAMAccountName SAnsell -GivenName Simon -Surname Ansell -DisplayName "Simon Ansell" -UserPrincipalName "sansell@mainlinesoup.internal"-path "CN=Users,DC=Mainlinesoup,DC=Internal" -ProfilePath "\\MLS-DC-01\Users\Profiles\SAnsell" -HomeDrive "N:" - HomeDirectory "\\MLS-DC-01\Users\Home\sansell" - AccountPassword (ConvertTo-SecureString -AsPlainText "Change_Me" -Force) -Enabled $True Add-ADGroupMember Identity <Group Name> -Member <User Name>

Add-ADGroupMember Identity Students Member SAnsell New-Item <Folder Path and Name> -Type Directory New-Item H:\Users\Work\SAnsell Type Directory $Path = <Folder Path> $ACL = Get-ACL $Path $Permission = "<Domain\User>","FullControl","Allow" $AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule $Permission $acl.setaccessrule($accessrule) $ACL Set-Acl $Path

$Path = H:\Users\Home\SAnsell $ACL = Get-ACL $Path $Permission = "MLS\SAnsell","FullControl","Allow" $AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule $Permission $acl.setaccessrule($accessrule) $ACL Set-Acl $Path

Import-Module GroupPolicy Verbose $Date = Get-Date Format dd-mm-yyyy $BackupPath = Join-Path <Backup Folder> ChildPath $Date New-Item Path $BackupPath Type Directory Backup-GPO All Path $BackupPath > <Backup Path>\$Date.txt Import-Module GroupPolicy Verbose $Date = Get-Date Format dd-mm-yyyy $BackupPath = Join-Path D:\GPOBackup ChildPath $Date New-Item Path $BackupPath Type Directory Backup-GPO All Path $BackupPath > D:\GPOBackup\$Date.txt Import-Module GroupPolicy Verbose $GPO = <GPO Name> $BackupPath = <Backup Folder>

Get-GPO Name $GPO Backup-GPO Path $BackupPath Import-Module GroupPolicy Verbose $GPO = Default Domain Policy $BackupPath = D:\GPOBackup\Default Domain Policy Get-GPO Name $GPO Backup-GPO Path $BackupPath Restore-GPO Name <GPO Name> -Path <Backup Path> Restore-GPO Name Default Domain Policy -Path D:\GPOBackup Restore-GPO All -Path <Backup Path> Restore-GPO All -Path D:\GPOBackup

cscript GetReportsForAllGPOs.wsf <Target Folder>

cscript GetReportsForAllGPOs.wsf C:\Policies

Repadmin /Showrepl Example Repadmin /Showrepl <Server Name> Repadmin /Showrepl MLS-DC-01

Repadmin /Showrepl /CSV ><File Path> Repadmin /Showrepl /CSV >D:\Temp\Rep.csv Example Repadmin /Replicate <Destination DC> <Source DC> <Domain> Repadmin /Replicate MLS-DC-02 MLS-DC-01 DC=mainlinesoup, DC=internal The

Get-WMIObject NameSpace Root\MicrosoftDNS List Where- Object {$_.Name NotMatch }

Set q=mx

Server <Server name> Server alien.xtra.co.nz

Server <IP Address> scope <Scope Address> show clients 1 Server 10.0.186.10 scope 10.0.186.0 show clients 1 Server <IP Address> scope <Scope Address> set optionvalue 003 ipaddress <IP Address> Server 10.0.186.10 scope 10.0.186.0 set optionvalue 003 ipaddress 10.0.186.66

$a = (netsh dhcp server <> scope <> show clients 1) $lines = @() #start by looking for lines where there is both IP and MAC present:10 foreach ($i in $a){ if ($i -match "\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"){ If ($i -match "[0-9a-f]{2}[:-][0-9a-f]{2}[:- ][0-9a-f]{2}[:-][0-9a-f]{2}[:-][0-9a-f]{2}[:-][0-9af]{2}"){ $lines += $i.trim() } } } $csvfile = @() #Trim the lines for uneeded stuff, leaving only IP, Subnet mask and hostname. foreach ($l in $lines){ $Row = "" select Hostname,IP $l = $l -replace '[0-9a-f]{2}[:-][0-9a-f]{2}[:- ][0-9a-f]{2}[:-][0-9a-f]{2}[:-][0-9a-f]{2}[:-][0-9af]{2}', '' $l = $l -replace ' - ',',' $l = $l -replace '\s{4,}','' $l = $l -replace '--','-' $l = $l -replace '-D-','-' $l = $l -replace '[-]{1}\d{2}[/]\d{2}[/]\d{4}','' $l = $l -replace '\d{1,2}[:]\d{2}[:]\d{2}','' $l = $l -replace 'AM','' $l = $l -replace 'PM','' $l = $l -replace '\s{1}','' $l = $l + "`n" $l = $l -replace '[,][-]',','

$Row.IP = ($l.split(","))[0] #Subnet mask not used, but maybe in a later version, so let's leave it in there: #$Row.SubNetMask = ($l.split(","))[1] $Row.Hostname = ($l.split(","))[2] $csvfile += $Row } #let create a csv file, in case we need i later.. $csvfile sort-object Hostname Export-Csv "Out_List.csv" #Create the HTML formating $a = "<style>" $a = $a + "body {margin: 10px; width: 600px; fontfamily:arial; font-size: 12px;}" $a = $a + "TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}" $a = $a + "TH{border-width: 1px;padding: 2px;borderstyle: solid;border-color: black;background-color: rgb(179,179,179);align='left';}" $a = $a + "TD{border-width: 1px;padding: 2px;borderstyle: solid;border-color: black;background-color: white;}" $a = $a + "</style>" #And create HTML file... $csvfile sort-object Hostname ConvertTo-HTML -head $a Out-File -Append "DHCPLeases.html"

Const HARD_DISK = 3 strcomputer = "." Set objwmiservice = GetObject("winmgmts:" _ & "{impersonationlevel=impersonate}!\\" & strcomputer & "\root\cimv2") Set coldisks = objwmiservice.execquery _ ("Select * from Win32_LogicalDisk Where DriveType = " & HARD_DISK & "") For Each objdisk in coldisks Wscript.Echo "DeviceID: "& vbtab & objdisk.deviceid Wscript.Echo "Free Disk Space: "& vbtab & objdisk.freespace Next Example cscript <Path>\FreeSpace.vbs

cscript D:\Temp\FreeSpace.vbs Get-WmiObject Win32_LogicalDisk -filter "DriveType=3 Select SystemName,DeviceID,VolumeName,@{Name="Size(GB)";Expre ssion={"{0:n1}" - f($_.size/1gb)}},@{name="freespace(gb)";expression={"{ 0:N1}" -f($_.freespace/1gb)}}

Get-WmiObject Win32_LogicalDisk Computer <Computer Name> -filter "DriveType=3 Select SystemName,DeviceID,VolumeName,@{Name="Size(GB)";Expre ssion={"{0:n1}" - f($_.size/1gb)}},@{name="freespace(gb)";expression={"{ 0:N1}" -f($_.freespace/1gb)}}

[reflection.assembly]::loadwithpartialname("micr osoft. UpdateServices.Administration") Out-Null $wsus = [Microsoft.UpdateServices.Administration.AdminProxy]:: getupdateserver() $wsussubscription = $wsus.getsubscription() $objcategories = New-Object Microsoft.UpdateServices.Administration.UpdateCategory Collection foreach ($category in $wsus.getupdatecategories()) { if ($category.title.tolower() -eq "exchange server 2010") {$objcategories.add($category) Out-Null} } $wsussubscription.setupdatecategories($objcategories) $wsussubscription.save() $wsussubscription.startsynchronization() [reflection.assembly]::loadwithpartialname("microsoft. UpdateServices.Administration") Out-Null $wsus = [Microsoft.UpdateServices.Administration.AdminProxy]:: getupdateserver() $wsussubscription = $wsus.getsubscription() $Req = "Exchange 2010" $arrrequired = "exchange",

"developer tools, runtimes, and redistributables", "expression", "office", "silverlight", "virtual server", "windows live" # But we want to exclude these $arrexclude = "windows 2000", "eu browser choice update-for europe only" $objcategories = New-Object Microsoft.UpdateServices.Administration.UpdateCategory Collection foreach ($category in $wsus.getupdatecategories()) { if ($arrrequired -contains $category.title.tolower()) { if ($category.type -eq "ProductFamily") {$objcategories.add($category) Out-Null} } elseif ($category.title -eq "Windows") { foreach ($subcategory in $category.getsubcategories()) { if ($arrexclude -notcontains $subcategory.title) {$objcategories.add($subcategory) Out-Null} } } } $wsussubscription.setupdatecategories($objcategories) $wsussubscription.save() $wsussubscription.startsynchronization()

Import-Module BITSTransfer Get-Command Module BITSTransfer Get-BITSTransfer AllUsers

MSTSC /v <Target Name> /Admin MSTSC /v MLS-DC-02 /Admin

Shutdown /m \\<Computer Name> /r Shutdown /m MLS-DC-01 /r