Windows Connect to NFS Share

Windows Connect to NFS Share KB ID 0001861

Problem

I have an old Buffalo NAS box I use on my test network, its shared between some Windows servers and is also used by my vSphere ESX deployment as a datastore. I replaced my main admin server which had a drive mapped to the device and ‘forget’ how I’d mapped the drive originally, so it took me a while to work it out again.

Windows Connect to NFS Share: Solution

The first task is to install NFS client which you can do with the following PowerShell command.

[box]

Install-WindowsFeature NFS-Client

[/box]

Then to map the drive (persistently as Drive Letter S:) use the following command.

[box]

New-PSDrive -Name 'S' -PSProvider FileSystem -Root '\\server-name\folder-name' -Persist -Scope Global

[/box]

Your drive should now be present like so.

Windows Connect to NFS: SMB1 Warning Message

In my case, my target is a very old NAS box that still used SMB1, in production this might be a concern but as this is my test network and there only ever me on it, I enable SMB1 on the Windows 2022 server (Note: Add it as a feature from Server Manager).

Error: You can’t connect to the file share because it’s not secure. This share requires the obsolete SMB1 protocol which could expose your system to attack.

I’ve put the link to my normal SMB1 article below.

Related Articles, References, Credits, or External Links

SMB1 Is Dead? (Unfortunately Not Yet)

Adding Windows Server NFS Shares to VMware ESX

VMware vSphere: Adding NFS Storage

VMware Cannot Remove / Unmount an NFS Store

Arcserve – Backup a ‘Mapped Drive / UNC Path”

KB ID 0001165 

Problem

It’s been such a long time since I touched any backup software, I setup Arcserve UDP this week for a  client to backup their servers to a NAS drive, then they wanted to back that data off to tape for an offsite backup.

I installed Arcserve no problem, it looks much the same as it did last time I used it. When I expanded the server-name only the local drives were shown, as I only had a basic licence adding the NAS drive was not an option.

Solution

A quick call to the boys in the data center who look after all our backups pointed me in the right direction. Instead of adding the mapped drive letter, you simply add the UNC path to the share as a “Preferred Shared/Machines” source.

Related Articles, References, Credits, or External Links

NA

WDS – Unattended file – Removing /Formatting Drive Partitions

KB ID 0000490 

Problem

Over the last couple of years I’ve done a lot of imaging of School PC’s I don’t know why but they come with a myriad of different drive and partition configurations. Even big vendors like HP and Dell ship their machines with recovery partitions these days.

If you are imaging with WDS this can cause a problem so what I usually want to do is remove all the partitions, create one big one that takes up all the drive, and format it as NTFS.

Solution

Before you begin make sure you are clued up on working with WDS unattended files, run through my instructions here.

The following procedure needs to be added to the WDS Unattended file NOT the unattended file for the image, (again run through KB0000180 if you are unsure.)

1. While editing your Unattended answerfile you need to locate, “Microsoft-Windows-Setup_neutral” and add “DiskConfiguration” to the “1 windowsPE” component.

2. Right click it and add a disk > Set Disk ID = 0 > Set WillWipeDisk = true.

3. Right Click > Create Partition > Set Extend = true > Set Order = 1 > Set Type = Primary.

4. Select Modify Partitions > Set Active = true > Set Extend = false > Set Format = NTFS > Set Label = SYSTEM > Set Letter = C > Set Order = 1 > Set Partition ID = 1.

5. This procedure will add the following to your unattended file.

 

Related Articles, References, Credits, or External Links

NA

Windows – Map a Drive to OneDrive

KB ID 0000659 

Problem

You could do this with Windows 7, but as you can log into Windows 8 with your Microsoft Live ID (formally Microsoft Passport), the process is a lot simpler.

Solution

1. Whist logged into Windows 8 with your Microsoft Live ID, open your web browser and go to https://onedrive.live.com/about/en-gb/ Log in > Files > Create > Folder.

2. For simplicity I’ve just called the folder SkyDrive.

3. Open a Microsoft Office application > File > Save and Send > Save to Web > Sign In > Provide your credentials if prompted.

4. Select the folder you created earlier.

5. In a short while the ‘Save As” Window will open > Right click the ‘path” and copy the address. At this point I’d post it into notepad to make sure you have a copy of the URL. You can close all the office windows down without saving anything, we just need the URL.

6. Open Windows Explorer (Windows Key+E) > Computer > Map network drive > Select a spare drive letter > Paste in the SkyDrive URL > Tick ‘Reconnect at sign-in’ > Finish.

7. Now you have a 25GB ‘Cloud Drive’.

Related Articles, References, Credits, or External Links

NA