Ok I'm wanting to write a script for laptop users, they will receive script in email and run, that creates a folder called "Protected" in their My documents folder and set the properties (right-click folder, under general select advanced, check Encrypt contents to secure data).
I have found something similar on search but I can't get that code work properly, here's what I have so far:
Set fso = CreateObject("Scripting.FileSystemObject")
Set WshShell = CreateObject("Wscript.Shell")
'set parent directory for your new folder
sNetworkPath = "C:\document and settings\"
'Get My Documents Folder
sMyDocumentsFolder = WshShell.ExpandEnvironmentStrings("%USERPROFILE%") & "\My Documents\"
'Name the new folder Protected.
sNewFolder = ("Protected")
fso.CreateFolder sMyDocumentsFolder, sNetworkPath & sNewFolder , True
Any ideas how to do this???
Any help will be greatly appreciated.