Question Locked

Create a Folder in Client's PC Remotely, using Group Policy

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi all,

Is there a way, of creating a folder in all the client's pc which is in the domain using the group policy?

For example, I want all the clients to have a folder call XYZ and it has a full sharing capabilities. Instead of me doing it one by one, can I just implement it remotely using the group policy?

Your help is much appreciated. Thank you!

4 replies

by lowlands

You'll have to create a startup or shutdown script to do this. You can then assign the script using a GPO

by anuharan.km

Thank you for the FAST reply. I am very new to this and will appreciate if you could give some sample script on how to go about it.

p/s: This script shall cater for both file creation and sharing?

by mhashemi

Here's what I do, this is a batch file called createDir

REM First parameter should be the AD account name
mkdir C:\desiredDirectory\
Cacls C:\desiredDirectory\ /T /E /G Domain Users:C
Cacls C:\desiredDirectory\ /T /E /G Administrators:F
NET SHARE C:\desiredDirectory\ /GRANT:Everyone,Full

Google "cacls switches" for more info

This discussion is closed to new replies.