powerpoint presentation · 28/10/2012 29 #import bits module import-module bitstransfer #get bits...

34
28/10/2012 1

Upload: others

Post on 18-Jun-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

28/10/2012

1

28/10/2012

2

28/10/2012

3

28/10/2012

4

28/10/2012

5

28/10/2012

6

#Create User

New-ADUser -Name "Simon Ansell" -SAMAccountName SAnsell -GivenName Simon -Surname Ansell -DisplayName "Simon Ansell"

-UserPrincipalName "[email protected]"-Path “OU=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

New-ADUser -Name "Simon Ansell" -SAMAccountName SAnsell -GivenName Simon -Surname Ansell -DisplayName "Simon Ansell" -UserPrincipalName [email protected] -Path “OU=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 User to Group

Add-ADGroupMember –Identity Students –Member Sansell

#Create Home Folder

New-Item H:\Users\Work\SAnsell –Type Directory

28/10/2012

7

#Set Home Folder Permissions $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

28/10/2012

8

28/10/2012

9

28/10/2012

10

28/10/2012

11

28/10/2012

12

28/10/2012

13

28/10/2012

14

28/10/2012

15

28/10/2012

16

28/10/2012

17

#Get DNS WMI Classes

Get-WMIObject –NameSpace Root\MicrosoftDNS –List | Where-Object {$_.Name NotMatch “__”}

28/10/2012

18

28/10/2012

19

28/10/2012

20

28/10/2012

21

28/10/2012

22

28/10/2012

23

28/10/2012

24

28/10/2012

25

28/10/2012

26

28/10/2012

27

28/10/2012

28

28/10/2012

29

#Import BITS Module Import-Module BITSTransfer #Get BITS Cmdlets Get-Command –Module BITSTransfer #View BITS Jobs Get-BITSTransfer –AllUsers

28/10/2012

30

28/10/2012

31

28/10/2012

32

28/10/2012

33

HKLM\SYSTEM\CurrentControlSet\Services\

fDenyTSConnections

0

28/10/2012

34