Building on top of my previous post on securing a password here and using it to join to a domain here, we can use this to define a user account to copy files from a workstation to a server.
Say you have a folder structure like the following where under each folder there are files but you want to copy the files in the subfolders to it’s own directory You can run the following PowerShell command
To join a Windows computer to a domain using PowerShell use the following script. You can read my previous post, here on how to create the password file.
Encrypt password with key using PowerShell. One major issue that I had to overcome, was to hide the password for the scripts that I will use them on schedule and there will be no need to include it as clear text. Using the below I was able to encrypt the password of the user that… Continue reading Encrypt password with key using PowerShell