Cleanup files installer, Minor adjustments to NFS install

This commit is contained in:
TheFlyingFool 2024-06-19 16:48:50 -05:00
parent 5c1c67b136
commit 676ecd8944

View File

@ -151,6 +151,7 @@ do {
InstallTheApps $Apps InstallTheApps $Apps
Invoke-WebRequest https://cdn.files.community/files/download/Files.Stable.exe -OutFile $HOME/Downloads/Files.Stable.exe Invoke-WebRequest https://cdn.files.community/files/download/Files.Stable.exe -OutFile $HOME/Downloads/Files.Stable.exe
& "$HOME/Downloads/Files.Stable.exe" & "$HOME/Downloads/Files.Stable.exe"
Remove-Item "$HOME/Downloads/Files.Stable.exe"
} }
"2" { "2" {
@ -214,17 +215,24 @@ do {
Get-Windot Get-Windot
} }
'8'{ '8'{
Install-WindowsFeature NFS-Client, RSAT-NFS-Admin
Enable-WindowsOptionalFeature -FeatureName ServicesForNFS-ClientOnly, ClientForNFS-Infrastructure -Online -NoRestart
Add-WindowsCapability -Online -Name "ServicesForNFS-ClientOnly" Add-WindowsCapability -Online -Name "ServicesForNFS-ClientOnly"
Add-WindowsCapability -Online -Name "ClientForNFS-Infrastructure" Add-WindowsCapability -Online -Name "ClientForNFS-Infrastructure"
Add-WindowsCapability -Online -Name "NFS-Client" Add-WindowsCapability -Online -Name "NFS-Client"
Add-WindowsCapability -Online -Name "RSAT-NFS-Admin" Add-WindowsCapability -Online -Name "RSAT-NFS-Admin"
Add-WindowsCapability -Online -Name "Rsat.ServerManager.Tools~~~~0.0.1.0" Add-WindowsCapability -Online -Name "Rsat.ServerManager.Tools~~~~0.0.1.0"
New-PSDrive -Name "X" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\Local_4X\media" New-PSDrive -Name "X" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\Local_4X\media" -Persist
New-PSDrive -Name "Y" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\Movies\Movies" New-PSDrive -Name "Y" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\Movies\Movies" -Persist
New-PSDrive -Name "Z" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\HBA\Media" New-PSDrive -Name "Z" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\HBA\Media" -Persist
New-PSDrive -Name "Q" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\Local_4X\qBit_DL" New-PSDrive -Name "Q" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\Local_4X\qBit_DL" -Persist
New-PSDrive -Name "B" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\Local_4X\VW_BUP" New-PSDrive -Name "B" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\Local_4X\VW_BUP" -Persist