Tuesday, February 7, 2012

SelfDeploy Tool

One of our customers wanted a solution where their users could start a migration from Windows XP to Windows 7 from within windows, and without being Local Administrator or contacting helpdesk. 

Our developers created this tool SpecopsDeployOsSelfService.
It's not a Self Service Portal, it's just a .exe file the user can execute locally on the PC which will talk to a server component and trigger a reinstall of the PC.

The client has this syntax;

C:\temp\SelfDeploy\SpecopsDeployOsSelfService\DeployReinstallOs>DeployReinstallOs.exe /?
Initiates an reinstallation of the local computer
DeployReinstallOs [/Silent] [/Reboot] [/NoEndPrompt] [/NoConfirm] [/?]

  /Silent               Presents no output to the end user, but unless /NoConfirm is also passed an confirmation question will still be displayed
  /Reboot               Performs a reboot after the computer has been configured for an reinstallation
  /NoEndPrompt  No message and question to exit will be shown after processing
  /NoConfirm            The operating system will be configured for reinstallation without user input
  /?                            Displays this help text
Press Any Key to continue...

You can then create any kind of UI to the application, for example a HTA that shows the user some info and a confirmation box.

To install the server service. Extract the SpecopsDeploySelfServiceServer.zip to a folder on your server, for example into c:\program files\specops\specops deploy\selfdeploy\

Then run this command;
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\installutil" –i "c:\program files\specops\specops deploy\selfdeploy\SpecopsDeploySelfServiceServer.exe"

Verify in services.msc that the service has been installed and is running.
There should also be a new registry key here: HKEY_LOCAL_MACHINE\SOFTWARE\Specopssoft\Specops Deploy\Deployment Self Service
You can enable Debug logging by using Debug = 1
DisableClientLookup = 1 will not perform a reverse lookup.

You should now be able to trigger a reinstall from the client.
By the way, it will also be possible to do this "out of the box" from the "Specops Self Service Portal" without using the above solution.

The description says it can take some time until the reinstall is
starting. We initiate a start at once via a remote command, but if
there is no access, it will be triggered at next gpupdate.

The user will be able to trigger a reinstallation of any PC that the user is "owner of"....



No comments:

Post a Comment