2

In Windows, SMBv1 and SMBv2/3 are implemented in two separate drivers (Srv and Srv2) – if an SMBv1 handshake is received, one hands off the connection to another. Disabling either SMBv1 or SMBv2 via Set-SmbServerConfiguration will just make the driver refuse to negotiate the corresponding protocol. The driver is still there and running, but it only does what ...


1

You may need to add a trailing slash to your folder names because you're joining them again. Try out writing your values back to the console and see if they are actually correct, plus you can remove some of your path checking since you're using -Force already: $csvpath = 'C:\temp\temp.csv' $invalid = "[{0}]" -f [RegEx]::Escape(([IO.Path]::...


Only top voted, non community-wiki answers of a minimum length are eligible