uses basic copying robocopy c:\files e:\destfiles robocopy c:\files e:\destfiles *.txt add copying folders.

Download Report

Transcript uses basic copying robocopy c:\files e:\destfiles robocopy c:\files e:\destfiles *.txt add copying folders.

1
2
3
4
5
uses
6
basic copying
robocopy c:\files e:\destfiles
robocopy c:\files e:\destfiles *.txt
7
add copying folders
8
add the "robo"
9
keeping two folders identical
10
"I don't understand why it's doing what it's doing…"
11
repeating something once I have it right: jobs
robocopy c:\src e:\dest /mir /save:myjob
robocopy /job:myjob
robocopy /job:myjob /secfix /save:job2
12
speeding things up
robocopy c:\files x:\ boot.wim /mt:16
13
manage-bde –forcerecovery e:
format e: /p:3
cipher /w:e:\
14
an evil, but a necessary one…
cscript //h:cscript
slmgr –xpr
15
slmgr –rearm
slmgr –dli
slmgr –upk
slmgr –ato
slmgr –skms kms1.bigfirm.com
16
the original Windows power tool
17
for %a in (b*.txt) do (chml %a)
18
net user user001 swordfish /add
for /L %i in (1,1,500) do (net user user%i swordfish /add)
19
20
21
for /f %i in (c:\pix\good.txt c:\pix\great.txt) do copy
c:\newpics\%i c:\keepers
22
23
powercfg -list
24
25
on
powercfg –h
26
powercfg –lastwake
powerfg -energy
27
diskpart
select vdisk file=e:\test.vhd
compact vdisk
diskpart
select vdisk file=e:\test.vhd
expand vdisk maximum=1000
shrink querymax
33
34
35
mklink /d c:\myphotos \\S2\photos
36
37
blat - -body “Event ID 763 happened!” –
server mail.bigfirm.com –to [email protected] –
f [email protected] –subject “Event 763
alert” –u joe –pw swordfish
38
39
wevtutil cl Security
/bu:\\s1\centralELbackups\01012001.evtx
40
wevtutil qe System "/q:*[System [(Level=1 or Level=2)]]"
/f:text
41
42
43
44
45
whoami /all /fo list > mysec.txt
46
47
48
• As I've discussed many tools in the past, here's
a list that quickly points you to some of the
terrific power tools I've discussed in past talks
in case you've never heard of them before
• Google Bing them or drop me a line if you
need to know more
50
51
52
53
54
55
#TEWSV350
Hands-On Labs
DOWNLOAD
Windows Server
2012 Release
Candidate
DOWNLOAD
Microsoft System
Center 2012
Evaluation
microsoft.com/windowsserver
microsoft.com/systemcenter
http://europe.msteched.com
www.microsoft.com/learning
http://microsoft.com/technet
http://microsoft.com/msdn
http://europe.msteched.com/sessions