Quantcast
Channel: PowerShell App Deployment Toolkit
Viewing all 2341 articles
Browse latest View live

New Post: What was used to generate the "Deploy-Application.EXE"

$
0
0
Sean,

Thanks for the informative feed-back. I used a tool called ExeScript Editor to compile the "Deploy-Application.ps1" into an exe. The compiled exe performed well with a minor caveat. The compiled exe exhibited weird behavior during both install and uninstalls, the close applications dialog box would appear even when the application was not running. I hope that this bug is isolated to the version of the software tool that was used to compile the "Deploy-Application.ps1" and is resolved with an upgrade to the latest release.

Best Regards,

Yves

New Post: Function to detect pending reboot

$
0
0
If the pending reboot is true do you just reboot and the install will restart at next logon or do you have to trigger a defer? I am using SCCM 12.

New Post: Can I use an IF statement Install only on systems not present

$
0
0
Thanks sintaxasn, that has helped me immensely!

New Post: Regarding the SCCM limitation with Applications and "allow user to interact with program installation"

$
0
0
Nozuka wrote:
Had some problems with ServiceUi.exe after all... couldnt get it to run on 32bit machines.
Still the same problem. Tried the exact same with a "Package" instead of Application now and it works perfectly on 32bit machines too.
Even recreated the Application, but no luck.

Guess i'll have to use a Package then.

New Post: Progress Prompt fails to update

$
0
0
Here is the screenshot:

Image


The log file is identical to one which did not show the issue, also the Welcome window sometimes closes the running apps without prompting to close them or save work.

New Post: Progress Prompt fails to update

$
0
0
ive got this problem too and sometimes the Show-InstallationProgress windows wont even show up and deploy-application.exe and powershell.exe are still running in the background though.

New Post: Progress Prompt fails to update

$
0
0
Maybe using an ID tag on the windows and using that for the update functions would resolve the problem?


New Post: Anyone here using the toolkit with Intune?

$
0
0
I'm very new to the toolkit (just heard about it), and currently use Intune to deploy OS and 3rd party patches. I suspect that the toolkit will make it a lot easier to handle events like closing browser before Flash updates, and look forward to trying it out in the coming weeks.

Is anyone here already using it with Intune, any 'gotchas' to watch out for?

I expect to upload the final package as an Application as opposed to an Update, for starters.

New Post: Show-InstallationWelcome

$
0
0
Hi,

I have this problem, when i use the Show-InstallationWelcome -closeapps, and a users clicks on the "Close Programs" button, it will of course close all programs listed but when there is Word, Or oultook listed the next time the use it and close Word or Outlook, they get an error about the normal.dot.
So is it possible to use the Show-InstallationWelcome -closeapps function, and not have the Close Programs button visible? So they have to close the programs in a normal/good way?

New Post: VPN session detection logic

$
0
0
Hello All,

I just started to work with PS App Deployment Toolkit and this tool is awesome! I am no PowerShell expert but thus far its pretty easy to pick up and use for my needs.

With that being said I could use some guidance on how to best handle the logic for a script I am working on. Brief synopsis of what I what I want my script to perform -

" I am deploying an updated WiFi driver via an application using SCCM 2012. I have modified the Deploy-Application script to -CloseApps for "vpnagent" and "vpnui" since I want to prevent this application from deploying to a customer while they have a VPN session established."

Unfortunately these processes are always running on our workstations, even when a VPN session is not established. We are using Cisco AnyConnect Secure Mobility Client. The script actually works as intended but I would like to find a better way to handle the detection of a VPN session being established. Being that these processes are always running if I deploy as is customers in the Office will get a notification to close the VPN processes I have defined.

I appreciate your time and any suggestions.

New Post: VPN session detection logic

$
0
0
This should hopefully work:
# Determine if the Cisco VPN adapter is active with an IP address
$lanAdapters = Get-WmiObject  Win32_NetworkAdapterConfiguration -Filter "IPEnabled = 'True'" -ErrorAction SilentlyContinue
Foreach ($adapter in $lanAdapters) {
    If ($adapter.Description -match "Cisco Systems VPN Adapter") {
        $vpnConnection = $true
        Break
    }
}

# Only show Welcome Screen over VPN, otherwise silently terminate the VPN processes
If {$vpnConnection -eq $true) {
    Show-InstallationWelcome -CloseApps "vpnagent,vpnui"
}
Else {
    Show-InstallationWelcome -CloseApps "vpnagent,vpnui" -Silent
}
Hope this helps., Dan.

New Post: VPN session detection logic

$
0
0
Thanks for your prompt response Dan, I had to edit the code just a bit but overall is Detecting things successfully.

Just in case anyone else ever needs this please see code below. I am sharing this site with all my friends!
# Determine if the Cisco VPN adapter is active with an IP address
$lanAdapters = Get-WmiObject  Win32_NetworkAdapterConfiguration -Filter "IPEnabled = 'True'" -ErrorAction SilentlyContinue
Foreach ($adapter in $lanAdapters) {
    If ($adapter.Description -match "Cisco AnyConnect Secure Mobility Client Virtual Miniport Adapter for Windows x64") {
        $vpnConnection = $true
        Break
    }
}

# Only show Welcome Screen over VPN, otherwise silently terminate the VPN processes
If ($vpnConnection -eq $true) {
    Show-InstallationWelcome -CloseApps "vpnagent,vpnui" -AllowDefer -DeferTimes 3
}
Else {
    Show-InstallationWelcome -CloseApps "vpnagent,vpnui" -Silent
}

New Post: Show-InstallationRestartPrompt

$
0
0
Hi ,

i am trying to detect if there's any system restart pending then prompt the restart windows by Show-InstallationRestartPrompt.

when the restart prompt shows up , i'd want the rest of the script stop running. just like how Show-InstallationRestartPrompt -wait

any idea how i can do that?

New Post: Supersedence Behavior (SCCM2012r2)

$
0
0
Hey guys,

i'm an friend of 'Tssthahn', we are working together on the described issue.

i invested more time and come to the following solution:

-The new beta (v4) worked for us under the following customizations and SCCM-Options:


Customization for the case "No User is logged on" in your: AppDeployToolkitMain.ps1
*Row 4458 ff.: before:
$usersLoggedOn = Get-WmiObject -Class "Win32_ComputerSystem" -Property UserName | Select UserName -ExpandProperty UserName

        If ($usersLoggedOn -ne $Null) {
            Write-Log "The following users are logged on to the system: $($usersLoggedOn | % {$_ -join ","})"
        }
*Row 4458 ff.: after:
$usersLoggedOn = Get-WmiObject -Class "Win32_ComputerSystem" -Property UserName | Where-Object {$_.UserName -ne $null} | Select UserName -ExpandProperty UserName
        If ($usersLoggedOn -ne $Null) {
            Write-Log "The following users are logged on to the system: $($usersLoggedOn | % {$_ -join ","})"
        }
        Else {
            Write-Log "No User is logged on"
        }
Reason:
Get-WmiObject -Class "Win32_ComputerSystem" -Property UserName | Select UserName -ExpandProperty UserName - throws an Error if there is no Username where he can't expand the Property.

Customization in SCCM for the "ServiceUI: API [CreateProcessAsUser] Error: [5]"
In SCCM you have to activate the Option on the Deployment Type of your deployed application(under Programm):

"Installationsprogramm ausführen und Programm als 32-Bit-Prozess auf 64-Bit-Clients deinstallieren"

Reason: Access denied when ServiceUI wants to create an 64-Bit Process.


Hope this helps in your enviroments!

Thanks,
Marco

New Post: Supersedence Behavior (SCCM2012r2)

$
0
0
Hi Marco,

This is excellent work, thanks for finding the solution and reporting it back. I've actually been without an SCCM environment to test this myself which is why we haven't made any progress on it, but I'll encorporate these changes and then we can share with the community for wider feedback.

Thanks for your support,
Sean

New Post: Detection rules when using option to defer

$
0
0
When I give the user the option to defer an installation, it sends the 5000 exit code back SCCM 2012.
when using the application model I get an "Installation failed" balloon message since the detection rule checks and finds the application not installed.

Is there a way to avoid this?

Great tool anyway. /SteLu

New Post: Supersedence Behavior (SCCM2012r2)

$
0
0
Hi,

I have added your change above in to the v4 beta. I've also forced ServiceUIx86 instead of ServiceUIx64 as this may be part of the problem, plus I've added some code to make sure the same PowerShell architecture is launched by ServiceUI as was used to launch ServiceUI. This it to avoid forcing 32-bit PowerShell which will have an impact on accessing 64 bit registry, etc. Ideally we want to get this working without having to tick the 32-bit process box.

Could you do us a favour and run the following tests:

-Run the latest v3 toolkit using <ServiceUIx64.exe Deploy-Application.exe> as a 64-bit installation
-Run the latest v4 toolkit as a 64-bit installation.
-Run the latest v4 toolkit as a 64-bit installation launching 32-bit PowerShell.
-Run the latest v4 toolkit as a 64-bit installation launching PowerShell.exe -File "Deploy-Application.ps1" instead of the Deploy-Application.exe

We need to establish if the access denied message with ServiceUI is because ServiceUIx64 doesn't play well at all with ccmexec.exe, ServiceUIx86 doesn't play well with ccmexec 64-bit, or it has something to do with Deploy-Application.exe or the PSArchitecture.

Thanks,
Sean

Source code checked in, #9a25eddb101f31bfeb5eb1fad5fdd9226935c2c3

$
0
0
- Fixed detection of logged on users - Forced x86 ServiceUI.Exe - Configured consistent execution of PSarchitecture in ServiceUI execution space

New Post: Deployment Script: Oracle Java Runtime 1.7.0.45

$
0
0
Hello

I would like like to install both x86 and x64 versions of Java on OSx64 and x86 on OSx86 with a single SCCM package. I'm assuming I could use the following to detect the OS.
# Perform installation tasks here
If ($psArchitecture -eq "x64") {
Execute-MSI -Action Install jre1.7.0_60.msi TRANSFORMS=jre1.7.0_60_x64.mst /qn /norestart
Execute-MSI -Action Install jre1.7.0_60.msi TRANSFORMS=jre1.7.0_60_x32.mst /qn /norestart
} 

ElseIf ($psArchitecture -eq "x86") {
Execute-MSI -Action Install jre1.7.0_60.msi TRANSFORMS=jre1.7.0_60_x32.mst /qn /norestart
My problem. In a batch file I have the installation files for each Java architecture in separate folders Javax86 and Javax64 and use path like %~dp0Javax86\jre1.7.0_60.msi TRANSFORMS=jre1.7.0_60_x32.mst /qn /norestart to call them. Can I do this in Powershell / Power App Deployment? If so how?

Thanks

New Post: Installation failed message

$
0
0
wondering if we can display a prompt message if any installation failed?
Viewing all 2341 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>