Sign in to join the PowerShell Group
Surender Kumar commented on
How to change Remote Desktop port (RDP port) using PowerShell 4 days, 2 hours ago
You’re right. VPN is the way to go for RDP access over internet but port obfuscation also helps a bit to keep dumb-bots in check who keep knocking on the default ports.
Job Cacka commented on
How to change Remote Desktop port (RDP port) using PowerShell 4 days, 9 hours ago
After doing this attempt to run nmap against those ports. I believe the command is this.
#nmap -p0- -v -A -T4It should show that the obfuscation of changing the port number is easily detected and VPN is absolutely necessary.
Thanks for posting this. I have used the MIR function of Robocopy to maintain a software distribution scheme so that all of the destinations end up with the same files as the source regularly. It “finds” corruption and corrects it nicely against a known good copy and helps force good update practices.
andy N commented on
Uninstall tamper-protected Sophos Antivirus with PowerShell 4 days, 16 hours ago
tested and confirm, this script is no longer working – you must update parts of this with updated GUID’s to get it working again
I use robocopy to copy bulk data on my eDiscovery servers and it still works great. You did a great job explaining its use cases. Thank you Leos.
A lot of sites have more details on the switches, but it is also hit and miss on how well it works depending on the source and destination.
For one backup operation I had to make a ‘fall’ and ‘spring’ set since when dst kicked in, robocopy would copy everything again and not just the changed files.
It might also be worth mentioning a few tricks for copying and comparison.
For copying from one source to multiple destinations, using the ‘start’ command in a ‘for’ loop can start the copies simultaneously and allow the 100% cache hit to effectively double the copy speed since the original is basically only being read once and written twice. I’ve used this for up to 4 destinations simultaneously and it works best with similar destinations. Even when the destinations are not similar and the individual robocopy sessions become ‘off sync’ from each other, the latency of hitting the disk usually brings them back into alignment because one of the sessions has a cache hit while the other is still going to disk.
For comparison, MS’s own windiff is a pretty good way to compare entire tree branches. However, if one needs to compare a single source to multiple destinations, winmerge does a better job since it has the ability to actually compare a single source to 2x destinations. And being a portable program that runs on the various windows platforms (just like windiff), it’s another handy tool that can check the work of a robocopy session for bit by bit accuracy.
Wolfgang Sommergut wrote a new post,
Run Windows Terminal as admin 5 days, 14 hours ago
Like with cmd.exe or PowerShell, you often have to run Windows Terminal as admin to execute commands that need elevated privileges. In Windows Terminal, you can configure the elevation of privileges for an individual shell or for all shells. However, you have to expect some inconsistencies and peculiarities.
It may be worth mentioning that the various Robocopy exit codes for successes and failures. 0 through 7 are all successes, 8 through 16 are failures.
Yes, End to end automation is possible from installation to managing in vcenter.
I have never used robocopy on any other system than NTFS. Yes there is that switch which somehow filters the file selection. No idea how it works and the description in help is not much useful. 🙂
Samir commented on
Robocopy usage examples 6 days ago
It actually does between non-NTFS file systems/nas units. There is even the /DST switch to help with the issue.
Not using rclone but as I checked, its a similar tool. Robocopy is built-in in Windows and its not cross platform.
I dont think that DST has any impact since NTFS timestamps are stored in UTC format. Of course, robocopy was created mainly for NTFS filesystem.
Surender Kumar joined the group
PowerShell 6 days, 1 hour ago
You have defined $DomainName as both hidden and static:
`hidden static [string]$DomainName = “DC=District,DC=Local”`
But when you create an instance of the class in your final example, you do:
`$NewEmployee.OU = “OU=Internal,OU=Users,OU=HQ,” + [employee]::DomainName`
Shouldn’t the addition of + [employee]::DomainName throw an error since it’s hidden? I’m trying to understand the hidden attribute and how it differs from common public/private method declarations in other languages.
So, to get this straight, even though a property is hidden, it can still be used/queried from outside of the class?
I saw there are some workbooks on Github, by those you can prepare CSV reports for the resources which have a tag and don’t have a tag.
While robocopy is one of the most powerful ways to sync drives, it does fail spectacularly in certain events–dst changes, file systems other than ntfs, and just missing files. It is important to check on it periodically to make sure the results are what you want them to be. Another great alternative to robocopy is its non-ms twin, xxcopy.
Leos Marek wrote a new post,
Robocopy usage examples 6 days, 14 hours ago
Robocopy (Robust File Copy) is a command line folder and file replication tool available as a standard Windows feature since Windows Server 2008. The goal of this post is to give you a quick start guide by providing some Robocopy examples.
- Load More