Forum / Wayk Now - Support

Deploying Wayk Now with command-line options

  • Create an Issue
  • Cancel


In consideration of the discussion at https://forum.devolutions.net/topic32095-possible-to-deploy-waykden-with-credentials-and-registration.aspx

would it be possible to show us a template of what that deployment might look like, best practices included? I would like to deploy a customized version of Wayk Now through SCCM and am unsure how this might be implemented, though it appears it can be done. Is there any examples we could use as a guide?

Clock2 mths

Hello Martin,

Could you detail what you are looking to perform, which configuration are you expecting in the installation with SCCM?

We are working on a Wayk Now Powershell which will help to configure the application ( https://github.com/Devolutions/WaykNow-ps )

When I deploy Wayk Now internally, I love using Wayknow Config in my script. Further detail at https://helpwayk.devolutions.net/kb_configcommandline.htm

Best regards,



David Grandolfo

signaturesignature

Clock2 mths


Specifically, what an example script might look like, and how it could be implemented here:
image

Clock2 mths

Hello Martin,

Another customer I had a discussion is using a script instead of installing the MSI directly with SCCM.

I don't have a script for the new WaykNow-PS feature, but I have one with the Wayk Now Config command as explained here.

Here is my script, please adjust the command in WaykConfig line 8 and the network path for Wayk Now wkpath in line 19:

if (!(New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
{
Write-Verbose "Powershell is not running with elevated privileges"
exit
}

# Wayk Now Configuration, full list available at https://helpwayk.devolutions.net/kb_configcommandline.htm
$WaykConfig = @(
"ControlMode 1", #0: All remote control modes, 1: Take remote control (client only) or 2: Allow remote control (server only)
"AutoLaunchOnUserLogon true",
"ShowMainWindowOnLaunch false",
"Language en",
"PersonalPasswordType 1", #0: Generated or 1: Custom
"PersonalPassword Strong_Password",
"RegistrationSerial XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
)

# Un-comment for installation from UNC Patch, MSI command line options available at https://docs.microsoft.com/en-us/windows/desktop/msi/command-line-options
$wkpath = "\\Your_Network_Path\WaykNow-x64-3.X.X.0.msi"

Start-Process -FilePath "msiexec.exe" -ArgumentList "/I $wkpath /quiet /norestart" -Wait
Remove-Item $wkpath -Recurse

if(Test-Path -path "$Env:Programfiles\Devolutions\Wayk Now\WaykNow.exe"wink {
Stop-Process -Name "WaykNow" -Force
foreach ($config in $WaykConfig){
Start-Process -FilePath "$Env:Programfiles\Devolutions\Wayk Now\WaykNow.exe" -ArgumentList "config $config" | Start-Sleep 0.5
}
}
else {
Write-Verbose "Wayk Now is not installed"
}

Best regards,



David Grandolfo

signaturesignature

Clock2 mths

Thank you very much David - this will be of great use.

Clock2 mths


Hi Martin,

Just an update: we have published a new version of the Wayk Now cmdlet with Set-WaykNowConfig, Get-WaykNowConfig commands that expose the Wayk Now configuration management: https://github.com/devolutions/WaykNow-ps#configuration

The Install-WaykNow command combined with Set-WaykNowConfig should be sufficient to perform an installation of Wayk Now (it downloads the .msi from our CDN automatically) followed by setting the configuration options that you need.

Best regards,

Marc-André Moreau

signaturesignature

Clock2 mths