From 676ecd8944b67a4d9dce3b7406cc1972e3605f69 Mon Sep 17 00:00:00 2001 From: TheFlyingFool Date: Wed, 19 Jun 2024 16:48:50 -0500 Subject: [PATCH] Cleanup files installer, Minor adjustments to NFS install --- setup.ps1 | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/setup.ps1 b/setup.ps1 index 11c30b1..4f06516 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -151,6 +151,7 @@ do { InstallTheApps $Apps Invoke-WebRequest https://cdn.files.community/files/download/Files.Stable.exe -OutFile $HOME/Downloads/Files.Stable.exe & "$HOME/Downloads/Files.Stable.exe" + Remove-Item "$HOME/Downloads/Files.Stable.exe" } "2" { @@ -214,17 +215,24 @@ do { Get-Windot } '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 "ClientForNFS-Infrastructure" Add-WindowsCapability -Online -Name "NFS-Client" Add-WindowsCapability -Online -Name "RSAT-NFS-Admin" 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 "Y" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\Movies\Movies" - New-PSDrive -Name "Z" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\HBA\Media" - New-PSDrive -Name "Q" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\Local_4X\qBit_DL" - New-PSDrive -Name "B" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\Local_4X\VW_BUP" + 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" -Persist + 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" -Persist + New-PSDrive -Name "B" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\Local_4X\VW_BUP" -Persist