Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 30534

Re: Log on script? Run once?

$
0
0

Hi GM.

I have figured it out and thought I would share.

The procedure I have written will do this:

Write a file to the Windows directory,  Write a registry entry in the run once hkey local machine ,  Shut down the machine.  That way when any user logs on - the file will run, and only run once.  I have just used this for a migration with OPH as the file.  Forces the user to input the email address and password before the desktop is available, then continues to load their desktop and configures outlook for them and imports their mail.  This works for xp32-64 and  win7 - 32 and 64.  I just deployed this technique to 200 users to set their new outlook profile and import their accounts.

Could be used with any other exe, msi, or app.

I deployed this at 1 am and this was available when any employee came in and turned their workstation on.  I wouldn't suggest using this during work hours as you might shut down a user in the middle of something without the chance to save their work.

Here is the info:

Run Once

Always true

Set registry path HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\(Name Folder) of datatype REG_SZ to value C:\(Location of file)

Write file (LOCATION OF FILE) to C:\(Name Folder)\(FILE NAME)

Execute procedure IT Automation.IT Center.2 Desktop Tools and Utility Procedures.Windows Shutdown delayed by Immediate

The "Name Folder" and "Location of file" are your variables.  The file name is the name of the file, app, or msi with extension.

Thanks again for everyone's input!

Brad Willard


Viewing all articles
Browse latest Browse all 30534

Latest Images

Trending Articles



Latest Images