Copy file remotely with PowerShell

Simply use the administrative shares to copy files between systems. It’s much easier this way. By using UNC paths instead of local filesystem paths, you help to ensure that your script is executable from any client system with access to those UNC paths. If you use local filesystem paths, then you are cornering yourself into … Read more

How do you comment out code in PowerShell?

In PowerShell V1 there’s only # to make the text after it a comment. In PowerShell V2 <# #> can be used for block comments and more specifically for help comments. For more explanation about .SYNOPSIS and .* see about_Comment_Based_Help. Remark: These function comments are used by the Get-Help CmdLet and can be put before the keyword Function, or inside the {} before or after the code itself.