Welcome, Guest
Please Login or Register.    Lost Password?

Redirect everyones My Documents to common location
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Redirect everyones My Documents to common location
#1418
Redirect everyones My Documents to common location 11 Years, 4 Months ago Karma: 0
Hi

Has anyone found a way to rediret all users My Documents for the Go Global server to a common drive\Directory

I have tried various scripts which work manually but throw up errors when I try to run them with the Go Global cluster manager
grantcooper
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1419
Re: Redirect everyones My Documents to common location 11 Years, 4 Months ago Karma: 6
grantcooper,

Can you forward one of your tested scripts? If you're not comfortable posting, pls send to support@graphon.com. Also, show us how you're using the script? Is this a login script or a published application script?

-Erik
Erikt
Administrator
Posts: 591
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1420
Re: Redirect everyones My Documents to common location 11 Years, 4 Months ago Karma: 0
Hi

I am trying to run it as a login script using GG Cluster manager as a global script but when I login to gg I get a script error.

Const HKEY_CLASSES_ROOT = &H80000000
Const HKEY_CURRENT_USER = &H80000001
Const HKEY_LOCAL_MACHINE = &H80000002
Const HKEY_USERS = &H80000003
Const HKEY_CURRENT_CONFIG = &H80000005



sComputer = "."
sMethod = "SetStringValue"
hTree = HKEY_CURRENT_USER
sKey = "Software\Microsoft\Windows\Currentversion\Explorer\User Shell Folders"
sValueName = "Personal"
sValue = "w:\"

Set oRegistry = GetObject("winmgmts:{impersonationLevel=impersonate}//" & _
sComputer & "/root/default:StdRegProv")

Set oMethod = oRegistry.Methods_(sMethod)
Set oInParam = oMethod.inParameters.SpawnInstance_()

oInParam.hDefKey = hTree
oInParam.sSubKeyName = sKey
oInParam.sValueName = sValueName
oInParam.sValue = sValue

Set oOutParam = oRegistry.ExecMethod_(sMethod, oInParam)
grantcooper
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: troy, Andyl