---
# System prepended metadata

title: windows server

---

# windows server 


**主機名稱很重要一定要改**
有個名稱要記起來**administrator**-系統管理員

---

ADDS 
![](https://i.imgur.com/WLjHlpp.png)

win+R快速指令
`dsa.msc` 遠端伺服器管理員



---

`fsutil file createnew <FILE_NAME> <FILE_SIZE_IN_KB>` 生成指定大小的檔案(cmd)記得要進入要生成的指定位置
`<FILE_NAME>`是要生成的檔案名稱
`<FILE_SIZE_IN_KB>`是檔案大小



> 
> | 1KB      | 1MB      | 100MB   |1GB|
> | -------- | -------- | -----   |-----
> | 1024     | 104857600| 104857600    |   1073741824 |
> 
> 1 個 1KB 的檔案大小是 1 x 1024 = 1024
> 1 個 1MB 的檔案大小是 1 x 1024 x 1024 = 1048576
> 1 個 100MB 的檔案大小是 10 x 1024 x 1024 = 104857600
> 1 個 1GB 的檔案大小是 1 x 1024 x 1024 x 1024 = 1073741824


---

今天用到了
* ADAC
* DHCP
* DFS
* DNS


---
**ADUC-管理使用者**
![](https://i.imgur.com/jwbOGvT.png)

![](https://i.imgur.com/lKLdNpy.png)

---
**DFS-分享資料夾並設定權限**
![](https://i.imgur.com/N8lPh6j.png)

![](https://i.imgur.com/aXTFUR1.png)





```net group Mkt /add```增加一個叫Mkt的group 
```for /l %%i in (1,1,9) do net user Mkt0%%i Skills39 /add```建立Mkt01-9
```for /l %%i in (10,1,50) do net user Mkt%%i Skills39 /add```建立Mkt10-50
```for /l %%i in (1,1,9) do net group Mkt Mkt0%%i /add```把Mkt01-9加入Mkt group
```for /l %%i in (10,1,50) do net group Mkt Mkt%%i  /add```把Mkt10-50加入Mkt group

```
net group Mkt /add 
for /l %%i in (1,1,9) do net user Mkt0%%i Skills39 /add
for /l %%i in (10,1,50) do net user Mkt%%i Skills39 /add
for /l %%i in (1,1,9) do net group Mkt Mkt0%%i /add
for /l %%i in (10,1,50) do net group Mkt Mkt%%i  /add 



