Create second folder according personal folder

Here is the link for the script I am using to create additional personal folders (Version 2.0).

It is compare between two folders and create folders with same permissions as in the first.

I am running this script from scheduler every day to create second personal folders for new users created in my domain.

The script is wrote in powershell.

It is can be run from command line like schedule task: “C:WindowsSystem32WindowsPowerShellv1.0powershell.exe -command”

Download the Script and rename the suffix from .txt to .ps1

On the first section you need to feel relevant data for your domain, your file location, your servers and emails for update when creation occur (change the brackets to relevant data, NO NEED BRACKETS!!!):

$tempfile1 = “D:TempUsersPST.txt”
$tempfile2 = “D:TempUsersDataNotInUsersPST.txt”
$tempfile3 = “D:TempUsersDataInUsersPST.txt”
$tempfile4 = “D:TempUsersData.txt”
$smtpServer = “[SMTPSERVER]”
$path1 = “[Second Location for personal Folder]”
$path4 = “[First Location of personal Folder]”
$Sender = “[Script@domain.com]”
$Receptions = “[1stContact@domain.com,2ndContact@domain.com]”
$Subject = “Second personal folder created for users”

I will be glade to get suggestions…

Thanks

Tal

One thought on “Create second folder according personal folder”

  1. This is the right blog for anyone who wants to find out about this topic.You rezliae so much its almost hard to argue with you (not that I actually would wanta1adHaHa).You definitely put a new spin on a topic thats been written about for years.Great stuff, just great!

Leave a Reply

Your email address will not be published. Required fields are marked *