Deploy Office 2010 by using Group Policy - Invalid switch - "/config"

Hi All,
We are following steps described in this article -
http://technet.microsoft.com/en-us/library/ff602181.aspx . However it won't work and will terminate with error code 1 - "Setup ended with error code 1". Further investigations has shown that error is produced by start-up batch script due to Invalid
switch - "/config". According to the above article to trigger an install we need the following:
start /wait %DeployServer%\setup.exe /config %ConfigFile%
However it will fail with the error: Invalid switch - "/config", because obviously "/config" switch does not belong to START command
It seems to work if we will use the following (without START /WAIT):
%DeployServer%\setup.exe /config %ConfigFile%
Could anyone please elaborate on the above?
Also why would we want to use START /WAIT at all?
TY

So, you figured out that this problem occures if path to deployment share, config.xml and setup.exe has spaces in it, that is absolutely true.
But I see another workaround, not changing your share path to have no spaces in it.
I suggest changing the setup script.
Do the following:
1) Find this part of the script:
REM If 1 returned, the product was not found. Run setup here.
:DeployOffice
start /wait %DeployServer%\setup.exe /config %ConfigFile%
echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%\%computername%.txt
2) Use quotes wisely to get something like this:
REM If 1 returned, the product was not found. Run setup here.
:DeployOffice
start /wait "%DeployServer%\setup.exe" /config "%ConfigFile%"
echo %date% %time% Setup ended with error code %errorlevel%. >> "%LogLocation%\%computername%.txt"
As you can see, I used quotes to mark those parts of scipt that will have spaces in UNC paths when running the script in cmd.
It did the trick for me and i have spaces in my UNC path to setup share :) Hope that helps.

Similar Messages

  • Deploy Quicktime 7.6 Using Group Policy

    I have the .msi installer. But for some reason when I run msiexec /a quicktime.msi it starts the installer then vanishes.
    Anyone else having this issue?

    So, you figured out that this problem occures if path to deployment share, config.xml and setup.exe has spaces in it, that is absolutely true.
    But I see another workaround, not changing your share path to have no spaces in it.
    I suggest changing the setup script.
    Do the following:
    1) Find this part of the script:
    REM If 1 returned, the product was not found. Run setup here.
    :DeployOffice
    start /wait %DeployServer%\setup.exe /config %ConfigFile%
    echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%\%computername%.txt
    2) Use quotes wisely to get something like this:
    REM If 1 returned, the product was not found. Run setup here.
    :DeployOffice
    start /wait "%DeployServer%\setup.exe" /config "%ConfigFile%"
    echo %date% %time% Setup ended with error code %errorlevel%. >> "%LogLocation%\%computername%.txt"
    As you can see, I used quotes to mark those parts of scipt that will have spaces in UNC paths when running the script in cmd.
    It did the trick for me and i have spaces in my UNC path to setup share :) Hope that helps.

  • How can I disable Outlook 2010 addins using Group Policy

    I have downloaded and imported the templates to enable me to set a GPO for disabling Outlook  addins, but I am confused about how I disable things like the SharePoint addins (we do not use SharePoint so this is not needed). I have found several
    posts saying to do this via a registry change, which I can easily do via GPO, but it does not say how to add keys for the different addins.
    Does anyone have details of what I need to add into the registry or have a link to somewhere that gives a list of common ones I can use?

    Hi,
    >>Does anyone have details of what I need to add into the registry or have a link to somewhere that gives a list of common ones I can use?
    After searching around, I think the following article may give us some tips about how to manage application-level add-ins. To disable a specific add-in, we can try to set the value of
    LoadBehavior entry to 0 in the add-in's corresponding registry key. The registry key path for a specific add-in is as follows:
    HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE\Software\Microsoft\Office\application name\Addins\add-in ID
    Registry Entries for Application-Level Add-Ins
    http://msdn.microsoft.com/en-us/library/vstudio/bb386106.aspx#LoadBehavior
    If this doesn't help, in order to get better help, it's recommended that we ask for suggestions in the following Outlook or SharePoint forums.
    Outlook IT Pro Discussions
    https://social.technet.microsoft.com/Forums/office/en-US/home?forum=outlook
    SharePoint forums
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/home?category=sharepoint
    TechNet Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
    Best regards,
    Frank Shen

  • Deploy Office 2010 gpo/oct activation

    I am trying to deploy Office 2010 Standard through  group policy startup computer script. A batchfile runs which starts the setup off Office and a msp file. First office 2003 gets deinstalled and Office 2010 installed. This all go fine but the activation
    fails. When i start a Office program the program wants to activate.
    Reading on the Internet about this problem comes with a lot of solutions which do not work. Solutions like AUTO_ACTIVATE and ospp /act in the oct configuration already tried without luck.
    We use a proxy server in our orginisation but the proxy server is set in Internet Explorer. The difference is that the installation runs as a system user when set as computer startup script policy. Maybe that is the issue that the system user cannot reach
    the internet....
    Off course when i login as the user and start for example excel then he cannot activate because of the user rights. A prompt appears of UAC that a username and password must be given but that can not be left over to the users....
    We use a MAK key and not KMS (not a solution because MAK key is chosen..)
    Also tried to activate remotly thru ospp but then a error appears 0x80072ee2. According to Microsoft this has something to do with rights, but how to overcome this problems.
    I would like a silent install thru GPO and no user intervention, including activating....
    What is the best way to solve this problem?
    freddie

    I have almost the complete silent install however struggling with activation. Tried the above command in OCT with the cmd.exe /c etc switch but nothing happens because after starting a office programm activation requered coms in. It could be do that the installation
    is in a batchfile and runs in a computer GPO maybe the system user has no rights to activate….
    I cannot find a log file in %temp% to see what errors are…
    I have also tried to set a batchfile at computer startup the runonce and even force in the OCT to start the machine up after Office 2010 is installed but then i need to restart the machine again because the runonce batchfile is put there after a restart is
    taken place i guess so the machine needs to reboot the second time for the activation batchfile runs.
    I am now seeking a easy way to activate silently and automatically without user intervention.
    Summarize what i have tried:
    configure office thru OCT in the OCT tried AUTO_ACTIVATE =1 and add registry keys which adds a key in the runonce to start a batchfile which suppoce to activate Office. But after install office the machine restarts and after login the batch is not started,
    it is started next reboot....
    Als tried in OCT to run cscript OSPP /act as a command post installation.
    Non of the above works. Auto_activate and the direct script OSPP does nothing. The batchfile in the runonce starts the OSPP command but after a new restart so it needs 2 restarts.
    The msp file is saved on a shared resource and the command to start the msp file is put in a batchfile which runs at startup script thru gpo, so maybe the local system user which runs the installation then cannot access the internet or whatever but thatswhy
    i made  batchfile in the runonce so that batch is started under the user, but if only the batchfile would start after the installation and reboot of Office 2010 and not reboot again to start it...
    What else can i do to activate Office automatically?
    freddie

  • EMET 5.x Configure EAF+ and ASR using Group Policy

    I'm deploying EMET 5.2 in a test environment here at the office, and trying using Group Policy to configure the actual EMET mitigation policies.  I'm aware of the new mitigations in 5.x, EAF+ and ASR, but I don't see any way to configure those using
    Group Policy; they're not in the "available parameters" list in the GPO description, and nothing is mentioned about configuring them using GPO in the 5.2 config guide.  Is there something I'm missing?  I definitely updated the Group Policy
    files with the latest from 5.2 in our domain's sysvol.
    For example, to match the default configuration, I'd want a few GPO config lines like:
    *\7-Zip\7zG.exe -EAF -EAF+ -ASR
    *\Adobe\Acrobat*\Acrobat\Acrobat.exe -ASR

    Hi.
    Read this please: 
    Works well for the enterprise. Enterprise IT professionals can easily deploy EMET through Microsoft System Center Configuration Manager and apply Group Policies in Windows Active Directory to comply with enterprise account, user, and
    role policies. Administrators can customize and configure EMET deployments and determine which applications they want to protect through which mitigation techniques. 
    I found it at the
    Emet 5.2 Download website, in Details

  • Uninstall Lync 2010 client, Install Lync 2013 using Group Policy/VB/MS Customisation Tool

    Hi, I am using Group Policy/vb/Lync customization tools to deploy 2013 and remove 2010. The machines have Office 2010. The vb script is as below:
    Dim objShell 'As Object
    Dim objFSO 'As FileSystemObject
    '-- SET OBJECTS
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objShell = CreateObject("WScript.Shell")
    strComputerName = objShell.ExpandEnvironmentStrings("%COMPUTERNAME%")
    Dim WshNetwork : Set WshNetwork = WScript.CreateObject("WScript.Network")
    objShell.Run """\\xxxxxxxxx - Do not Remove\Lync Install 2013 2010\Lync 2013 Outlook 2010\setup.exe"""
    I have amended the OCT with relevant settings, Lync 2013 installs but Lync 2010 does not uninstall. Here is how i have it set:
    In the Office Customization Tool - Set-up - Add Installation and Run Programs,
    In target - pointing to the Lync2010 exe file (on above share)
    In Arguments - /silent /uninstall
    Is this correct?
    Also, i would have thought that, Remove Previous Installations, it would have an option to remove Lync2010?
    Anyway..pulling my hair out here!
    Hope you can help.

    Hi,
    Based on your description, we can refer to the following threads for help.
    Slient Unninstall of Lync 2010 on client machines script required
    http://social.technet.microsoft.com/Forums/lync/en-US/69e32128-4581-4be5-9a44-b5d133e1f480/slient-unninstall-of-lync-2010-on-client-machines-script-required
    Scripting a Lync 2010 client Uninstall
    http://social.technet.microsoft.com/Forums/en-US/a65bd0d0-daa1-4616-8725-63f349fdde86/scripting-a-lync-2010-client-uninstall?forum=lyncconferencing
    For this issue is more related to Lync, in order to get better help, we can ask the question in the following TechNet dedicated Lync forum.
    Lync 2010 and OCS - Lync Clients and Devices
    http://social.technet.microsoft.com/Forums/lync/en-US/home?forum=ocsclients&filter=alltypes&sort=lastpostdesc
    In addition, for it also involves scripts, we can also ask for help in the following scripting forum.
    The Official Scripting Guys Forum
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
    Hope it helps.
    Best regards,
    Frank Shen

  • Does using Group Policy Preferences to deploy printers require the print driver to be pre-installed?

    I'm trying to prepare our school system for Windows 7 (we currently use XP).  I would like to use the new Group Policy Preferences method of deploying printers.  I pushed out the XP client side extensions through WSUS.  In my test environment, I added the shared printer in group policy preferences.  My XP machine had the printers show up automatically, but my Windows 7 machine did not.  I realized that I had previously connected a printer of the same type to my XP machine before and the drivers were already installed.  To test this theory, I manually connected the shared printers to the Windows 7 machine, deleted them, then logged off and back on.  Now the printers are showing up from group policy.  My question is does using group policy preferences to deploy printers require the print driver to be pre-installed?  If not, then what am I doing wrong?  If so, is there a way to work around this?  Thanks for your help.
    EDIT:  To clarify, I am using the share method in GPP.  This is the error message I get in the event log:
    The user 'PRINTERNAME' preference item in the 'win7 printer test {946461A1-27F8-406F-A0B3-0A1A05AF34F6}' Group Policy object did not apply because it failed with error code '0x80070bcb The specified printer driver was not found on the system and needs to be downloaded.' This error was suppressed.

    This link have a description of resolution:
    http://technet.microsoft.com/en-us/library/cc725938.aspx
    Open the GPMC.
    Open the GPO where the printer connections are deployed, and navigate to Computer Configuration, Policies, Administrative Templates, Control
    Panel, and thenPrinters.
    Note
    The Point and Print Restrictions setting can also be found under User Configuration\Policies\Administrative Templates\Control Panel\Printers.
    This policy is ignored by Windows 7 and Windows Server 2008 R2, but is enforced by earlier editions of Windows including Windows XP with SP1, Windows Server 2003 with SP1, and Windows Server 2008. We recommend that you change
    this policy setting in both locations so that all down-level clients have a consistent experience.
    Right-click Point and Print Restrictions, and then click Properties.
    Click Enabled.
    Clear the following check boxes:
    Users can only point and print to these servers 
    Users can only point and print to machines in their forest 
    In the When installing drivers for a new connection box, select Do not show warning or elevation prompt.
    Scroll down, and in the When updating drivers for an existing connection box, select Show warning only.
    Click OK.

  • How can I deploy EFS using Group Policy and automatically encrypt computers for ALL users who login?

    How can I deploy EFS using Group Policy and Active Directory with a goal to automatically encrypt computers for ALL users who login? (NOT an option for me to use BitLocker)
    I was asked to deploy EFS to encrypt the user my documents folder and profile on all of the users laptops. The laptops are in common areas (board meeting rooms, etc) and security of files is a must.
    I successfully created a recovery certificate in AD. I created an OU and setup an EFS policy and users can now login and select to encrypt their own files. The issue is that management would like to have automaticy Encrypt ALL users my documents AUTOMATICALLY
    when a user login.
    Can this be done?
    Please help

    Hi,
    Any update?
    Just checking in to see if the suggestions were helpful. Please let us know if you would like further assistance.
    Best Regards,
    Andy Qi
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Andy Qi
    TechNet Community Support

  • Outlook 2010 profiles via Group Policy

    We have already deployed Office 2010.  Currently, we are using Groupwise mail & will soon instead be using Outlook 2010 (with Exchange 2010).  We would like to create an Outlook profile and set it to be the default mail profile by purely using
    Group Policies.  Is this possible or are we forced to script the use of PRF files ?  We won't be purchasing any other deployment products (besides perhaps upgrading our System Centre Essentials)
    Thanks

    Hi
    Thank you for using
    Microsoft Office for IT Professionals Forums.
    You can manually edit a .PRF file to customize Outlook 2010 to include Outlook settings or MAPI services that are not included in the Office Customization
    Tool (OCT) user interface.
    Download OCT from the Microsoft Download Center:
    Office 2010 Administrative Template files (ADM, ADMX/ADML)
    and Office Customization Tool (http://go.microsoft.com/fwlink/?LinkId=189316).
    Apply a .prf file
    You can apply a .prf file in several ways to update Outlook profiles.
    To apply a .prf file by using the customization file
    From the root of the network installation point, run the following command line to start the OCT:
    \\server\share\setup.exe /admin
    To edit an existing .msp file, in the
    Select Product dialog box, click Open an existing Setup customization file. Or to create a new customization file, select the Office suite that you want to customize, and then click
    OK.
    In the
    Outlook area, click Outlook Profile. Select
    Apply PRF, and then browse to the file.
    On the
    File menu, click Save to save the .msp file.
    Exit the OCT.
    Put the .msp file in the Office installation source \Updates folder.
    Install Office 2010 from the original installation source.
    To apply a .prf file by using other options
    Specify the .prf file as a command-line option for Outlook.exe to import a .prf file without prompting the user. For example:
    outlook.exe /importprf \\server1\share\outlook.prf.
    Specify the .prf file as a command-line option for Outlook.exe, but prompt the user before importing the .prf file. For example:
    outlook.exe /promptimportprf \\localfolder\outlook.prf. If you put the specified .prf file in a shared folder on a network, the settings might not be applied if the file is not found or is not available when Outlook runs.
    Office Customization Tool in Office 2010
    http://technet.microsoft.com/en-us/library/cc179097.aspx
    Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything I can do for
    you, please feel free to let me know.
    Best regards
    William Zhou
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • How to use Group Policy to remove the shutdown button on the logon screen

    Environment:  Shared use computers running Window 7 Professional and MS office Suite; Windows 2008 Standard server, Windows 7 EC Domain Policy and MS Office 2007 ADML Template downloaded from Microsoft. WIndows 7 Accounts OU.
    I am in the process of developing a shared use computer lockdown policy for several Windows 7 computers that will made available in my client's computer lab.  I need to use a group policy setting to remove the Shut Down button on
    the logon screen of the Windows 7 client computers.  I am editing the Windows 7 EC Domain Policy to user accounts in a Windows 7 Accounts OU that I created.  I am using the Group Policy editor in the Group Policy Management Console.  
    Please let me know the best practice for accomplishing this using Group Policy editor.
    Thanks.
    P.S. I tried a setting recommended in the following link in the Windows 7 EC Domain Policy which did not seem to work.
    http://www.windowsitpro.com/article/group-policy/can-i-use-group-policy-to-display-or-remove-the-shut-down-button-on-the-logon-screen-.aspx

    Hi Vernon,
    I tried the group policy you mentioned (Computer Configuration, Windows Settings, Security Settings, Local Policies, and select Security Options, "Shutdown: Allow system to be shut down without having to log on") and it worked on a Windows 7 client.
    Thus you may need to check if the group policy you created is actually applied to clients.
    A screenshot can be found here:
    http://cid-b7ed40feb32ba29f.office.live.com/self.aspx/.Public/desktop/Capture.JPG

  • Uninstalling older versions of reader using Group Policy

    I am using Group Policy to deploy Acrobat reader version 8.1.2 - however this does not do an upgrade to older versions or delete older versions. is there a way to do uninstalls or upgrades to the latest version using group policy?
    Thanks.

    Adobe Reader usually updates fine from one version to the subsequent next (e.g. from 9 to 10).
    However, this does not always work well when skipping some versions (e.g. from 7 to 10).  In this case I always recommend to uninstall the previous version first.

  • Problem deploying Office 2010 via SCCM 2007

    Hello, 
    I have a problem with deploying Office 2010 to Workstations. 
    I did exactly as instructed settings: http://technet.microsoft.com/en-us/library/ff404178(v=office.14).aspx
    When you release it manually (I tested it) everything went fine but when I let you install via SCCM 2007 workstation, just run setup.exe and processes stuck there and nothing happens.I have no idea why setup.exe. What is wrong any ideas?
    (It does not matter who's office: 013,010,07)
    Thanks

    Are you using any silent key like setup.exe/s S  or setup/quite etc.. ??
    Kamala kannan.c| Please remember to click “Mark as Answer” or Vote as Helpful if its helpful for you. |Disclaimer: This posting is provided with no warranties and confers no rights
    No, should i? Microsoft does not say anything like that...  Name field,
    which in this example is named Office 2010 silent installation.
    In the Command line field,
    in this example type setup.exe.
    Of course I'll try but I do not suppose this helped ...

  • Deploy Office 2010 pro without XP SP3

    So I'm in an environment where a large portion of the fleet is still running XP SP2. Pushing Office 2010 out before particular things like WSUS are fixed so we would like to avoid upgrading to SP3 at all costs, as the business is riding us hard for a quick
    deployment.
    What I want to know is - Is there any way to deploy Office 2010 to PCs that don't have XP SP3?

    "L0k" wrote in message
    news:[email protected] .com...
    So I'm in an environment where a large portion of the fleet is still running XP SP2. Pushing Office 2010 out before particular things like WSUS are fixed so we would like to avoid upgrading to SP3 at all costs, as the business is riding us hard for a quick
    deployment.
    What I want to know is - Is there any way to deploy Office 2010 to PCs that don't have XP SP3?
    No.  Office 2010 requires XP SP3 to be installed to be able to install the Office suite.
    http:// technet.microsoft.com/en-us/library/ee624351.aspx shows
    system requirements for Office 2010.  You may have to log in to get there but here is a copy of the pertinent parts.
    "Microsoft Office Professional Plus 2010
    The following table lists the system requirements for Microsoft Office Professional Plus 2010. (Other volume and retail licenses are similar OS requirements)
    Component
    Requirement
    Computer and processor
    500-megahertz (MHz) processor or higher; 1 gigahertz (GHz) required for Outlook with Business Contact Manager
    Memory
    256 megabytes (MB) of RAM or higher; 512 MB recommended for graphics features, Outlook Instant Search, Outlook with Business Contact Manager, Communicator, and certain advanced functionality
    Hard disk
    3.5 gigabyte (GB) available disk space
    Display
    1024 �? 768 or higher-resolution monitor
    Operating system
    Windows XP with Service Pack (SP) 3 (32-bit), Windows Vista with SP1 (32-bit or 64-bit), Windows Server 2003 R2 (32-bit or 64-bit) with MSXML 6.0 installed, Windows Server 2008 or later (32-bit or 64-bit), Windows 7 (32-bit or 64-bit). Terminal Server
    and Windows on Windows (WOW) (which allows installing 32-bit versions of Office 2010 on 64-bit operating systems) are supported
    Additional
    Requirements and product functionality can vary based on the system configuration and operating system.
    Other
    Certain inking features require running Windows XP Table PC edition or later. Speech recognition functionality requires a close-talk microphone and audio output device. Information Rights Management features require access to a Windows
    Server 2003 with SP1 or later running Windows Rights Management Services.
    Connectivity to Microsoft Exchange 2000 Server or later is required for certain advanced functionality in Office Outlook 2007. Instant Search requires Windows Desktop Search 3.0. Dynamic Calendars require server connectivity.
    Connectivity to Windows Server 2003 with SP1 or later running Windows SharePoint Services is required for certain advanced collaboration functionality. Microsoft Office SharePoint Server 2007 is required for certain advanced functionality.
    PowerPoint Slide Library requires Office SharePoint Server 2007. To share data among multiple computers, the host computer must be running Windows Server 2003 with SP1, Windows XP Professional with SP2 or later.
    Graphics hardware acceleration requires a DirectX 9.0c graphics card with 64-MB or higher video memory.
    Internet Explorer 6 or later, 32-bit browser only. Internet functionality requires Internet access (fees might apply)
    512 MB of RAM or higher recommended for Outlook Instant Search. Grammar and contextual spelling in Word 2010 is not turned on unless the computer has 1 GB memory.
    Silverlight plug-in. See
    Get started with Microsoft Silverlight (http://go.microsoft.com/fwlink/?LinkID=169372)."
    </T R>

  • When Deploying SharePoint 2010 solution using Powershell gives me nothing

    When Deploying SharePoint 2010 solution using Powershell gives me nothing
    And when go to Central Admin >> System Settings >> Farm Management >> Manage Farm Solution
    I found my Solution Status is Deploying and still deploying and nothing.

    Hi,
    According to your description, my understanding is when you deploy the SharePoint solution, the deploy status stuck on the deploying status.
    To resolve this issue, I suggest you can do as the followings:
    1. On any server, start, run, services.msc, enter, this will open the services console.
    2. Now type s, this will give you all the services that start with S, look for SharePoint timer service and make sure it’s in started mode.
    3. This service should be started on all the front ends as well as application server.
    More information:
    Solution deployment stuck on deploying: SharePoint 2010
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Applying custom Group policy to existing users using group policy

    Hello Everyone,
    i am unable to find a way to push a custom theme to client PC using group policy.
    I have tried "Load a Specific Theme" Group Policy but it is only applying to a new user logging on windows.
    I have a custom theme that i want it to load to every existing user's machine.
    Is there any way to do it using GPO??

    Apply theme group policy does not work. Known issue.
    I use a vb script,
    '@SLH // This Script applies the Themepack "
    On Error Resume Next
    Select Case themeApplied
    Case "yes"
    'Has been set once before, nothing happens!
    Case Else
    'Has not been set before, Company theme is applied
    strRegistryKey = readfromRegistry("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\General\WallpaperSource", "C:\Windows\web\wallpaper\Windows\img0.jpg")
    End Select
    Function readFromRegistry (strRegistryKey, strDefault )
    Dim WshShell, value
    Set WshShell = CreateObject("WScript.Shell")
    value = WshShell.RegRead( strRegistryKey )
    if strDefault = value then
    'Write key in registry
    WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\themeApplied", "yes", "REG_SZ"
    'Applying theme from server
    'Remember to change the path tothe location of your .themepack file
    WshShell.Run "rundll32.exe %SystemRoot%\system32\shell32.dll,Control_RunDLL %SystemRoot%\system32\desk.cpl desk,@Themes /Action:OpenTheme /file:""\\seraddressto\ Default.themepack"""
    WScript.Sleep 1000
    WshShell.AppActivate("Desktop Properties")
    WshShell.Sendkeys "%{F4}"
    end if
    End Function
    I then run this in a run once script when the user first logs in, this sets the theme once on new profile generation.

Maybe you are looking for

  • HT1338 Just got 27 inch display for my Mac Book Air how do I use extended desktop

    How do I use the extended display to view a architectual print on the 27 inch display and have numbers running on mac book air

  • Creation of Contextual Navigation Panel

    Hi Experts, I need to create a contaxtual navigation panal instead of tree for hierarchical display of records having two columns. first column being the hierachical struture and second is the static text. How I can create Contextual Navigation Panel

  • Working with Frames in Dreamweaver MX 2004

    I've created a frameset (called index.htm) containing 3 frames (banner.htm, nav_bar.htm and content.htm). I have no borders and the borders width is set to zero. I'm using the layout mode so I get to see the 3 frames (gray lines dividing the frames).

  • InDesign suddenly stopped supporting properties or methods

    So I feel a bit silly having to ask this, but it seems that overnight (that is, between shutting down and turning on my work system), InDesign has abruptly stopped some properties or methods. Had I previously written a functioning script using, among

  • Silent Installation - Respond file not getting created !!!

    Hi, I am trying to create a respond file by running the installation as follows ./runInstaller -ignoreSysPrereqs -record -destinationFile /backup/ORA_DOWNLOADS/9201.rsp ignoreSysPrereqs is used because we have Sun Solaris 5.10 which is not in orapara