IT 162 - Activity - File Management

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Student Number: 20-020579 Name: Raymund Jake Bolo Date: September 15, 2022

ACTIVITY 1 : PowerShell File Management


Instruction: Refer to the problem specifications in Activity 1 - PowerShell File Management. Paste the
code/commands and the screenshot of the result in their designated sections.

New-Item -Path "C:\JakeFolder" -itemType Directory

New-Item -Path "C:\JakeFolder\JakeFolder1" -itemType Directory


New-Item -Path "C:\JakeFolder\JakeFolder2" -itemType Directory
New-Item -Path "C:\JakeFolder\JakeFolder3" -itemType Directory

MMSU | Department of Computing and Information Science IT 162 – System Administration and Maintenance
Student Number: 20-020579 Name: Raymund Jake Bolo Date: September 15, 2022

ACTIVITY 2 : PowerShell File Management


Instruction: Refer to the problem specifications in Activity 2 - PowerShell File Management. Paste the
code/commands and the screenshot of the result in their designated sections.

New-Item -Path "C:\JakeFolder\JakeFolder1" -name MyFile.txt -ItemType File


New-Item -Path "C:\JakeFolder\JakeFolder2" -name MyFile.txt -ItemType File
New-Item -Path "C:\JakeFolder\JakeFolder3" -name MyFile.txt -ItemType File

MMSU | Department of Computing and Information Science IT 162 – System Administration and Maintenance
Student Number: 20-020579 Name: Raymund Jake Bolo Date: September 15, 2022

ACTIVITY 3 : PowerShell File


Management
Instruction: Refer to the problem specifications in Activity 3 - PowerShell File Management. Paste the
code/commands and the screenshot of the result in their designated sections.

" Raymund" | Out-File -FilePath C:\JakeFolder\JakeFolder1\MyFile.txt

" 20" | Out-File -FilePath C:\JakeFolder\JakeFolder2\MyFile.txt

" Paoay" | Out-File -FilePath C:\JakeFolder\JakeFolder3\MyFile.txt

MMSU | Department of Computing and Information Science IT 162 – System Administration and Maintenance
Student Number: 20-020579 Name: Raymund Jake Bolo Date: September 15, 2022

ACTIVITY 4 : PowerShell File


Management
Instruction: Refer to the problem specifications in Activity 4 - PowerShell File Management. Paste the
code/commands and the screenshot of the result in their designated sections.

Start C:\JakeFolder\JakeFolder1\MyFile.txt

MMSU | Department of Computing and Information Science IT 162 – System Administration and Maintenance
Student Number: 20-020579 Name: Raymund Jake Bolo Date: September 15, 2022

ACTIVITY 5 : PowerShell File Management


Instruction: Refer to the problem specifications in Activity 5 - PowerShell File Management. Paste the
code/commands and the screenshot of the result in their designated sections.

" Raymund Bolo" | Out-File -FilePath C:\JakeFolder\JakeFolder1\MyFile.txt -Append


Start C:\JakeFolder\JakeFolder1\MyFile.txt

" 20" | Out-File -FilePath C:\JakeFolder\JakeFolder2\MyFile.txt -Append


Start C:\JakeFolder\JakeFolder2\MyFile.txt

" Paoay Ilocos Norte" | Out-File -FilePath C:\JakeFolder\JakeFolder3\MyFile.txt -


Append
Start C:\JakeFolder\JakeFolder3\MyFile.txt

MMSU | Department of Computing and Information Science IT 162 – System Administration and Maintenance
Student Number: 20-020579 Name: Raymund Jake Bolo Date: September 15, 2022

ACTIVITY 6 : PowerShell File Management


Instruction: Refer to the problem specifications in Activity 6 - PowerShell File Management. Paste the
code/commands and the screenshot of the result in their designated sections.

MMSU | Department of Computing and Information Science IT 162 – System Administration and Maintenance
Student Number: 20-020579 Name: Raymund Jake Bolo Date: September 15, 2022

Set-Content -Path C:\JakeFolder\JakeFolder3\MyFile.txt -Value "This will overwrite


everything in this text file"
start C:\JakeFolder\JakeFolder3\MyFile.txt

ACTIVITY 7 : PowerShell File Management


Instruction: Refer to the problem specifications in Activity 7 - PowerShell File Management. Paste the
code/commands and the screenshot of the result in their designated sections.

MMSU | Department of Computing and Information Science IT 162 – System Administration and Maintenance
Student Number: 20-020579 Name: Raymund Jake Bolo Date: September 15, 2022

Remove-Item -Path 'C:\JakeFolder\JakeFolder2\MyFile.txt'


start C:\JakeFolder\JakeFolder2\MyFile.txt

ACTIVITY 8 : PowerShell File Management


Instruction: Refer to the problem specifications in Activity 8 - PowerShell File Management. Paste the
code/commands and the screenshot of the result in their designated sections.

MMSU | Department of Computing and Information Science IT 162 – System Administration and Maintenance
Student Number: 20-020579 Name: Raymund Jake Bolo Date: September 15, 2022

Copy-Item "C:\Windows\*.xml" -Destination "C:\JakeFolder\JakeFolder1"

MMSU | Department of Computing and Information Science IT 162 – System Administration and Maintenance

You might also like