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