Writing scripts

pts.
Tags:
Network applications management
Networking
Scripting
I have to redirect "User Templates" in MS Word to shared folder on our network. I think this could be done by writing a script but I have no kwoledge of script writing. Does anyone know of a website that offers guides to scripting from basics onwards.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Oops I posted this a discussion of the answer first – not as the answer. Technology is so confusing….

There are a number of ways to do this. If you utilized logon scripts, you can easily modify this using vbscript or with a tool like Kixtart.

I have an article on modular scripts with kixtart from a few years ago – here at informit.com…

http://www.informit.com/articles/article.aspx?p=102209&seqNum=3&rl=1

More people tend to go with VB Script but kix is really much more accessible to most network administrators – with hundreds of functions and commands for doing things like what you are asking…

For instance, the following is some kixtart script that would alter where word would save documents by default – something else you can move to the network.

; Set registry settings for MS Office
$strregpath = “HKEY_CURRENT_USERSoftwareMicrosoftOffice11.0″

; Set Word
$strkey = “WordOptions”
$strentry = “DOC-PATH”
$strvalue = $strword
WriteValue($strregpath + $strkey, $strentry, $strvalue, “REG_SZ”)
===============================================
WriteValue alters the registry key based on the variables provided. This assumed Office 2003.

I hope this helps.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Kknowledge
    There are a number of ways to do this. If you utilized logon scripts, you can easily modify this using vbscript or with a tool like Kixtart. I have an article on modular scripts with kixtart from a few years ago - here at informit.com... http://www.informit.com/articles/article.aspx?p=102209&seqNum=3&rl=1 More people tend to go with VB Script but kix is really much more accessible to most network administrators - with hundreds of functions and commands for doing things like what you are asking... For instance, the following is some kixtart script that would alter where word would save documents by default - something else you can move to the network. ; Set registry settings for MS Office $strregpath = "HKEY_CURRENT_USERSoftwareMicrosoftOffice11.0" ; Set Word $strkey = "WordOptions" $strentry = "DOC-PATH" $strvalue = $strword WriteValue($strregpath + $strkey, $strentry, $strvalue, "REG_SZ") =============================================== WriteValue alters the registry key based on the variables provided. This assumed Office 2003. I hope this helps.
    10 pointsBadges:
    report
  • Lucke
    [...] More people tend to go with VB Script but kix is really much more ...http://itknowledgeexchange.techtarget.com/itanswers/writing-scripts/InformIT.comOnline resource center that delivers premium IT content, access to industry experts, [...]
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following