Quantcast
Channel: psappdeploytoolkit Discussions Rss Feed
Viewing all 1769 articles
Browse latest View live

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

$
0
0
No, that's not what I want. I'm deploying the applications to users.

If the computer is at the desk, the user should be able to defer the script.

If the computer is new I'm using "User Device Affinity" and set the primary user for the device. After the Task Sequence has finished, SCCM installs all the applications wich are deployed to the primary user. Nobody is logged on. Now the script starts and hangs at:
[Pre-Installation] User has the option to defer.

New Post: Allowing applications to automatically close while using the defer option

$
0
0
Hi Sean,

We are planning to use the -ForceCloseAppsCountdown parameter only with the -AllowDeferCloseApps to ensure that the users will only be prompted if they have any of the specified processes open. I tested the new code and it's behaving exactly like that. =)

Thank you very much for including this!

Regards,
Anderson Cassimiro

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

$
0
0
I see what you mean. We need to add another if statement to set the deployMode to non-interactive if there are no users logged in.

Replace this line:
Write-Log -Message "Session 0 detected, process running in user interactive mode." -Source $appDeployToolkitName
With this:
If (-not $usersLoggedOn) {
    $deployMode = 'NonInteractive'
    Write-Log -Message "Session 0 detected, process running in user interactive mode, no users logged in: deployment mode set to [$deployMode]." -Source $appDeployToolkitName
}
Else {
    Write-Log -Message "Session 0 detected, process running in user interactive mode." -Source $appDeployToolkitName
}

New Post: Set-HKCURegistrySettingsForAllUsers include 'Default' hive?

$
0
0
Just reading through the changelog for the latest version and see the new 'Set-HKCURegistrySettingsForAllUsers' command.

This goes through and allows you to make changes to every current user of the system, does this also include the 'Default' hive so that new users also get the keys?

Thanks!

New Post: Allowing applications to automatically close while using the defer option

$
0
0
Hey Anderson,

Yeah that makes sense.

Cheers
Sean

New Post: Set-HKCURegistrySettingsForAllUsers include 'Default' hive?

$
0
0
Yes, it does include the default registry hive so new users also get the keys.

New Post: Is there a way to manually execute installation

$
0
0
Hi,


Is there a way to manually execute a psappdeploy installation without SCCM ?

I have created an application for deploying a software, but for some reasons I have some computers that don't have SCCM Agent.
I need to install this application on these computer. Is it possible to utilize the created powershell script (with a lot of customization) without SCCM ?

thanks

New Post: Is there a way to manually execute installation

$
0
0
Providing the users have admin rights on the machine, they can just right click Deploy-Application.exe and Run as administrator.

Alternatively you could push using Group Policy.

Dan

New Post: Is there a way to manually execute installation

$
0
0
I like that :D
no need to specify install parameter to Deploy-application.exe ?

New Post: Is there a way to manually execute installation

$
0
0
Nope. Not unless you need specific parameters that you've added yourself.

Regards, Dan

New Post: Set-HKCURegistrySettingsForAllUsers include 'Default' hive?

$
0
0
Ah that's great!

Thanks for the response and great work to everyone involved!

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

New Post: Test-Battery but how can i use the result

$
0
0
Hello,

i love the PSAPPDEP, this is a very good tool but i have a little problem.

how can i use the result of TEST-BATTERY. True or False good but there is no variable defined for it. Or what goes on when a battery is found, stop the script with a specfied errorcode?

who can give me a little bit more information about this topic.

thx
aaj

New Post: Add the ability to accept user input from Show-Installation Prompt

$
0
0
I recently had a situation where I needed to be able to accept input from the user in order to complete an installation. I modified Show-InstallationPrompt to allow for the creation of a textbox as well as the return of that information.

I added a Parameter of ShowTextBox which controls whether or not the TextBox is displayed on the screen.
.PARAMETER ShowTextBox
    Specifies whether to create a textbox [Default is false]
Add this to your Param section:
[boolean] $ShowTextBox = $false,
This goes after the Param block:
$textBox = New-Object System.Windows.Forms.TextBox 

# Textbox
$textBox.DataBindings.DefaultDataSourceUpdateMode = 0
$textBox.Location = "100,150" 
$textBox.Name = "textBox"
$textBox.Size = "260,20"
$textBox.AutoSize = $true
Under the Form Installation Prompt Section, I added the following:
    If ($ShowTextBox) {
        $System_Drawing_Size = New-Object System.Drawing.Size
        $System_Drawing_Size.Height = 98 #148
        $System_Drawing_Size.Width = 385
        $labelText.Size = $System_Drawing_Size
        $formInstallationPrompt.Controls.Add($textBox)
    }
Since we want to get back the information that the user has entered into the textbox, we have to modify the code at the end of the existing function. So we need to replace the section below:
  Switch ($result) {
                "Yes" { Return $buttonRightText}
                "No" { Return $buttonLeftText}
                "Ignore" { Return $buttonMiddleText}
                "Abort" {
                    # Restore minimized windows
                    $shellApp.UndoMinimizeAll()
                    If ($ExitOnTimeout -eq $true) {
                        Exit-Script $configInstallationUIExitCode
                    }
                    Else {
                        Write-Log "UI timed out but ExitOnTimeout set to false. Continuing..."
                    }
                }
            }
With this newly updated code (I am sure that there is a prettier way to do this, I was in a hurry):
``` If ($ShowTextBox) {
        Switch ($result) {
            "Yes" { Return $textBox.Text}
            "No" { Return $textBox.Text}
            "Ignore" { Return $textBox.Text}
            "Abort" {
                # Restore minimized windows
                $shellApp.UndoMinimizeAll()
                If ($ExitOnTimeout -eq $true) {
                    Exit-Script $configInstallationUIExitCode
                }
                Else {
                    Write-Log "UI timed out but ExitOnTimeout set to false. Continuing..."
                }
            }
        }
    }Else{
        Switch ($result) {
            "Yes" { Return $buttonRightText}
            "No" { Return $buttonLeftText}
            "Ignore" { Return $buttonMiddleText}
            "Abort" {
                # Restore minimized windows
                $shellApp.UndoMinimizeAll()
                If ($ExitOnTimeout -eq $true) {
                    Exit-Script $configInstallationUIExitCode
                }
                Else {
                    Write-Log "UI timed out but ExitOnTimeout set to false. Continuing..."
                }
            }
        }
    }
I hope that this helps someone else who needs to accept input from the Show-InstallationPrompt.

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

$
0
0
In the beta 3.5 on the Source page. I just pushed an update in git so the latest 3.5 beta should have this fix now. Please test with that.

New Post: Test-Battery but how can i use the result

$
0
0
it was to late to work yesterday. it´s so simple. sry for question.

New Post: Test-Powerpoint

$
0
0
So I looked into this a little bit more for you. There is a solution for the type of setup you're talking about but it will only work for Vista and above. This solution will not work for XP.

If the below code returns "FullScreenOrPresentationMode" or "PresentationMode", then that means that PowerPoint is presenting on one of you screens.

Let me know if this works for you. If it does, then we can perhaps think about integrating this into the toolkit as an additional check that can be performed on Vista or higher.
$UserNotificationStateSource = @'
using System;
using System.Runtime.InteropServices;
namespace QueryUser
{
    public class NotificationState
    {
        // http://msdn.microsoft.com/en-us/library/bb762533(v=vs.85).aspx
        public enum UserNotificationState
        {
            ScreenSaverOrLockedOrFastUserSwitching=1, FullScreenOrPresentationMode=2, RunningDirect3dFullScreen=3, PresentationMode=4, AcceptsNotifications=5, QuietTime=6, WindowsStoreAppRunning=7
        }
        // Only for Vista or above
        [DllImport("shell32.dll")]
        static extern int SHQueryUserNotificationState(out UserNotificationState pquns);
        public static UserNotificationState GetState()
        {
            UserNotificationState state;
            int returnVal = SHQueryUserNotificationState(out state);
            return state; 
        }
    }
}
'@
If (-not ([System.Management.Automation.PSTypeName]'QueryUser.NotificationState').Type) {
    Add-Type -TypeDefinition $UserNotificationStateSource -Language CSharp
}
Start-Sleep -Seconds 10
[QueryUser.NotificationState]::GetState()

New Post: Test-Powerpoint

$
0
0
mmashwani, you're a star!!

We're looking into this one.

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

$
0
0
looks like that 3.5 is broken. If I run the downloaded script and run Deploy-Application.ps1 I got this:
Resolve-Error : The term 'Resolve-Error' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At C:\Temp\psappdeploytoolkit-8360e31d022d3c69478310ccac6e5e729ecfcf59\Toolkit\
Deploy-Application.ps1:172 char:33
+     [string]$mainErrorMessage = "$(Resolve-Error)"
+                                    ~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Resolve-Error:String) [], Comma
   ndNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

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

$
0
0
I don't know if this is the same issue but it comes from the same direction.

Here is what i want:
Deploy Software to Devices e.g. Adobe Flash
Users should be prompted to close e.g. IE -> therefore i need to setup the DT to "Install for System & Only when a user is logged on & allow users to interact blabla"

What i also want to do:
Install the exact Application during my Task Sequence OSD Staging Process.


The problem is that i can't select the Applications in the TS Editor unless i set the DT to "run whether or not a user is logged on"

So, as of now i have to create 2 Applications
1x for a Deployment with PSAppToolkit
1x for the OSD Deployment...

Is there no way around this?

Deployment of Adobe Flash to logged on Users:
[13-11-2014 11:08:36] [Initialization] Adobe_FlashPlayer_15.0.0.223_MUI_01 setup started.
[13-11-2014 11:08:36] [Initialization] Script [C:\Windows\ccmcache\x\AppDeployToolkit\AppDeployToolkitExtensions.ps1] dot-source invoked by [C:\Windows\ccmcache\x\AppDeployToolkit\AppDeployToolkitMain.ps1]
[13-11-2014 11:08:36] [Initialization] Adobe_FlashPlayer_15.0.0.223_MUI_01 script version is [1.0.0]
[13-11-2014 11:08:36] [Initialization] Deploy Application script version is [3.2.0]
[13-11-2014 11:08:36] [Initialization] The following non-default parameters were passed to [Deploy Application]: [-DeploymentType Install]
[13-11-2014 11:08:36] [Initialization] App Deploy Toolkit Main script version is [3.2.0]
[13-11-2014 11:08:36] [Initialization] App Deploy Toolkit Extensions version is [1.0.0]
[13-11-2014 11:08:36] [Initialization] PowerShell version is [2.0 x86]
[13-11-2014 11:08:36] [Initialization] PowerShell host is [ConsoleHost version 2.0]
[13-11-2014 11:08:36] [Initialization] OS version is [Microsoft Windows 7 Enterprise 32-Bit 6.1.7601]
[13-11-2014 11:08:36] [Initialization] Hardware platform is [Physical]
[13-11-2014 11:08:36] [Initialization] Computer name is [DEBEW036]
[13-11-2014 11:08:36] [Initialization] Current user is [MYDOMAIN\DEBEW036$]
[13-11-2014 11:08:36] [Initialization] Current Culture is [de-DE] and UI language is [DE]
[13-11-2014 11:08:36] [Initialization] Deployment type is [Installation]
[13-11-2014 11:08:36] [Initialization] Script [C:\Windows\ccmcache\x\AppDeployToolkit\AppDeployToolkitMain.ps1] dot-source invoked by [C:\Windows\ccmcache\x\Deploy-Application.ps1]
[13-11-2014 11:08:36] [Initialization] The following users are logged on to the system: MYDOMAIN\grothe
[13-11-2014 11:08:36] [Initialization] Session 0 detected.
[13-11-2014 11:08:36] [Initialization] Installation is running in [NonInteractive] mode.



Deployment of MS Office to logged on Users:
[13-11-2014 10:59:13] [Initialization] Microsoft_Office_2013_x86_MUI_01 setup started.
[13-11-2014 10:59:14] [Initialization] Script [C:\Windows\ccmcache\r\AppDeployToolkit\AppDeployToolkitExtensions.ps1] dot-source invoked by [C:\Windows\ccmcache\r\AppDeployToolkit\AppDeployToolkitMain.ps1]
[13-11-2014 10:59:14] [Initialization] Microsoft_Office_2013_x86_MUI_01 script version is [1.0.0]
[13-11-2014 10:59:14] [Initialization] Deploy Application script version is [3.2.0]
[13-11-2014 10:59:14] [Initialization] The following non-default parameters were passed to [Deploy Application]: [-DeploymentType install]
[13-11-2014 10:59:14] [Initialization] App Deploy Toolkit Main script version is [3.2.0]
[13-11-2014 10:59:14] [Initialization] App Deploy Toolkit Extensions version is [1.0.0]
[13-11-2014 10:59:14] [Initialization] PowerShell version is [2.0 x64]
[13-11-2014 10:59:14] [Initialization] PowerShell host is [ConsoleHost version 2.0]
[13-11-2014 10:59:14] [Initialization] OS version is [Microsoft Windows 7 Enterprise 64-Bit 6.1.7601]
[13-11-2014 10:59:14] [Initialization] Hardware platform is [Physical]
[13-11-2014 10:59:14] [Initialization] Computer name is [DEBEN043]
[13-11-2014 10:59:14] [Initialization] Current user is [MYDOMAIN\DEBEN043$]
[13-11-2014 10:59:14] [Initialization] Current Culture is [de-DE] and UI language is [DE]
[13-11-2014 10:59:14] [Initialization] Deployment type is [Installation]
[13-11-2014 10:59:14] [Initialization] Script [C:\Windows\ccmcache\r\AppDeployToolkit\AppDeployToolkitMain.ps1] dot-source invoked by [C:\Windows\ccmcache\r\Deploy-Application.ps1]
[13-11-2014 10:59:14] [Initialization] The following users are logged on to the system: MYDOMAIN\administrator
[13-11-2014 10:59:14] [Initialization] Session 0 not detected.
[13-11-2014 10:59:14] [Initialization] Installation is running in [Interactive] mode.
Viewing all 1769 articles
Browse latest View live


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