windows error 59 copying over network

Registry Settings

These registry values must be created on the SMB gateway, which is specified in the repository settings as “Gateway server”. If the gateway is set to “automatic”, add these registry values to all Windows servers managed by Veeam Backup & Replication.

  • NetUseShareAccess
    For Veeam B&R 8.0.0.917 or later, the following registry value allows Data Movers to open backup files by a resilient method similar to the Windows net use command.
     Key: HKLM\SOFTWARE\Veeam\Veeam Backup and Replication\
    DWORD: NetUseShareAccess
    Value: 1
    Note: If credentials are required, specify Domain\User or Host\User in the repository settings. .\User credentials are not supported with NetUseShareAccess. For example, specify “NAS-01\Admin” instead of “.\Admin”.
     
  • SessTimeout
    This increases the amount of time the Windows SMB client will wait for a response from an SMB server before it aborts the connection. The default timeout is one minute.
    Note: Reboot Required
     Key: HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters\
    DWORD: SessTimeout
    Value: 600
    Note:This is a value in seconds. Try a value of 600 decimal (10 minutes).
     
  • TcpMaxDataRetransmissions
    This increases the number of times the Windows TCP implementation will retransmit a data segment before it aborts the connection.
    Note: Reboot Required
     Key: HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
    DWORD: TcpMaxDataRetransmissions
    Value: 10 (Default: 5)
Prerequisites:
  Ensure the the target machine has PowerShell Remoting Enabled (as it's Disabled by default)

PS C:\Users\kimconnect\Desktop\Notes> Enable-PSRemoting -Force
WinRM has been updated to receive requests.
WinRM service type changed successfully.
WinRM service started.
WinRM has been updated for remote management.
WinRM firewall exception enabled.
Alternative method:
a. Get PSExec: https://docs.microsoft.com/en-us/sysinternals/downloads/psexec > extract copy contents into %windir% or "C:\Windows"

b. Run this command:
psexec \\hdqfswp001 reg add “HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters” /v SessTimeout /t REG_DWORD /d 3600 /f

Add this registry key to increase File Session Timeout:

$serverName="FILESERVER01"
Invoke-Command -ComputerName $serverName -ScriptBlock {reg add “HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters” /v SessTimeout /t REG_DWORD /d 3600 /f }

To Reset TCP / IP Stack in Windows 10.

1. Click the Start button in the bottom left corner of the screen.

windows start button


2. Type Command Prompt in the Search bar. Then right-click on the Command Prompt icon, and select Run as administrator.

command prompt/run as administrator button


3. If prompted, select Yes to allow changes to be made to computer.

4. Type in netsh int ip reset, and press Enter.

reset tcp/ip stack

Disable HPET (High Precision Event Timer)
Disable Hardware-accelerated GPU scheduling

Automount VHD Windows10

Note: This method utilizes PowerShell commands which work only when the Hyper-V feature is enabled. You need to activate Hyper-V on your PC to proceed.

To Automatically Mount VHD or VHDX File on Startup in Windows 10,

  1. Open Administrative Tools.
  2. Click the Task Scheduler icon.Administrative Tools Control Panel
  3. In the Task Scheduler library, click on the Create Task… link on the right.Windows 10 Create Task Link
  4. In Create Task dialog, fill in the Name box some meaningful text like “Automount of my VHD Drive”.Windows 10 Automount VHD Task Name
  5. Set the options as follows:
    – Configure for Windows 10.
    – Run whether user is logged on or not
    – Run with highest privileges boxWindows 10 Shutdown Event Task Options
  6. Switch to the Triggers tab and click on the New… button.Windows 10 Triggers Tab
  7. Set the Begin the task option to At startup.Windows 10 Automount VHD Task Trigger 1
  8. Select to the Actions tab, and click on the New button.Windows 10 Task Scheduler New Action Button
  9. In the Program/script text box type powershell.exe.Windows 10 Task Scheduler New Action PowerShell Exe
  10. Type the following in the Add arguments text box: Mount-VHD -Path "Full\path\to\your\VHD or VHDX\file". Change the Full\path\to\your\VHD or VHDX\file portion  to the actual full path of the VHD/VHDX file you want to have automatically mounted at startup.Windows 10 Automount VHD Task ActionWindows 10 Automount VHD Task Action Created
  11. Switch to the Conditions tab and disable the option Start the task only if the computer is on AC power.
  12. Click on the OK button to create the task.
  13. Type your user account password (or other administrative user account credentials).Windows 10 Save Credentials

You are done!

Notes:

  • If your VHD file is encrypted with BitLocker, you may need to add a delay to make a credential prompt appear after you sign in to Windows. Enable the Delay task for option on the New Trigger page, or edit the existing trigger. 30 Seconds should be enough.Windows 10 Automount VHD Task Trigger 2
  • You can disable this task to temporarily stop mounting your VHD/VHDX file at startup. You can re-enable it when needed.Windows 10 Automount VHD Disable Task
  • To permanently disable the VHD file auto-mount, delete your task under Administrative Tasks > Task Scheduler > Task Scheduler Library.Windows 10 Automount VHD Delete Task

That’s it.

Solve Windows 10 does not automount USB Drives anymore

My Windows 10 machine started behaving weirdly and did not mount any USB Drives / Harddrives and such anymore. I had to open the Disk Management Tool and mount them manually, which is quite inconvenient. So I was looking up the error and came across the nearly perfect solution at http://woshub.com/windows-doesnt-assign-letters-to-external-and-usb-flash-drives/ . However, I did change it a bit so that the VDS is changed to automatically start on boot via the CLI :).

Oh, and yes, you need to do this from an admin cmd 😉

First thing to check if something is wrong, is if your VDS (Virtual Disk Service) works. If not, set it to start on boot and start the service:

sc query vds
sc config vds start= auto
sc start vds
sc query vds

If automounting still not works, it could be deactivated. Start diskpart, watch the status of automount and if it is disabled, activate it.

diskpart
DISKPART> automount
DISKPART> automount enable
DISKPART> exit

windows 10 enterprise ubuntu shares

  • You can enable the legacy SMB client to access network devices using SMBv1 protocol via the Control Panel (Control Panel -> Programs and Features -> Turn Windows features on or off -> SMB 1.0 / CIFS File Sharing Support -> SMB 1.0 / CIFS Client). In addition, you can access the features installation dialog by running the optionalfeatures.exe command.
  • If you use anonymous access to connect NAS or other computers, you need to enable the insecure guest logon policy. In Windows 1803/1709 it blocks access to shared network folders over the SMB 2.0 protocol under an anonymous (guest) account. To do this, in the Windows 10 Local Policy Editor (gpedit.msc), enable the Enable insecure guest logons policy in the GPO section: Computer Configuration -> Administrative templates -> Network -> Lanman Workstation.

900gb Ext HDD->HDD copy test

Dell Inspiron 15 3567
12GB DDR4 2400mhz/2 x Seagate 1TB Expansion
Source : Seagate 1TB -> Usb3.1 port leftside
863 GB (926,755,439,240 bytes)
1,233,950 Files, 6,376 Folders
Destination : Seagate 1TB -> Usb2 port rightside

Ubuntu 19.10 Lenovo amd a9 s145-15ast

Screen flicker:

sudoedit /etc/default/grub

Find the line beginning GRUB_CMDLINE_LINUX_DEFAULT and add the text amdgpu.dc=0 between the double quotes (""). Leave any other parameters as they are. For example, you may end up with a line like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amdgpu.dc=0"

Save the file and exit, and then run

sudo update-grub

to write the configuration, and reboot.

ubuntu 19 speed up local samba access

sudo nano /etc/nsswitch.conf

hosts:          files wins dns mdns4_minimal [NOTFOUND=return]

sudo nano /etc/avahi/avahi-daemon.conf

use-ipv6=no

disable ipv6 in wifi/eth0 interfaces

sudo ufw disable
sudo sysctl vm.swappiness=10

sudo su
echo "#disable ipv6" >> /etc/sysctl.conf
echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.conf

sudo nano /etc/samba/smb.conf

add
netbios name = linuxlap1
name resolve order = lmhosts wins bcast host