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

Commented Unassigned: Office 2013 example script bugs [137]

$
0
0
You spelled boolean wrong in your example script. It is spelled bloolean which is obviously not a valid type.
Comments: Thanks for reporting this. We will get it fixed in the next release.

Edited Unassigned: Office 2013 example script bugs [137]

$
0
0
You spelled boolean wrong in your example script. It is spelled bloolean which is obviously not a valid type.

New Post: run the exe as another user?

Commented Unassigned: Install-SCCMUpdates [133]

$
0
0
Hi ,

I tried to run function install-sccmupdates but i am getting error message that [System.Management.ManagementClass] Installupdates method not fund. MSDN doesnt show that ManagementClass has a method name installupdates.

Are you able to help on this

Thanks
Comments: Yes i was able to access the class

Commented Unassigned: Install-SCCMUpdates [133]

$
0
0
Hi ,

I tried to run function install-sccmupdates but i am getting error message that [System.Management.ManagementClass] Installupdates method not fund. MSDN doesnt show that ManagementClass has a method name installupdates.

Are you able to help on this

Thanks
Comments: Can you share some more details regarding SCCM client version, OS, and how your script is being deployed? Are you running in a WinPE environment or a full Windows OS?

Commented Unassigned: Install-SCCMUpdates [133]

$
0
0
Hi ,

I tried to run function install-sccmupdates but i am getting error message that [System.Management.ManagementClass] Installupdates method not fund. MSDN doesnt show that ManagementClass has a method name installupdates.

Are you able to help on this

Thanks
Comments: Also, the actual error message you get and the log entry for that error would be helpful.

Commented Unassigned: Install-SCCMUpdates [133]

$
0
0
Hi ,

I tried to run function install-sccmupdates but i am getting error message that [System.Management.ManagementClass] Installupdates method not fund. MSDN doesnt show that ManagementClass has a method name installupdates.

Are you able to help on this

Thanks
Comments: OK, I think you were right. That method did not exist on that class. Please test the updated function below to see if this works: ``` Function Install-SCCMSoftwareUpdates { <# .SYNOPSIS Scans for outstanding SCCM updates to be installed and installs the pending updates. .DESCRIPTION Scans for outstanding SCCM updates to be installed and installs the pending updates. This function can take several minutes to run. .PARAMETER ContinueOnError Continue if an error is encountered. .EXAMPLE Install-SCCMSoftwareUpdates .NOTES .LINK http://psappdeploytoolkit.codeplex.com #> [CmdletBinding()] Param ( [Parameter(Mandatory=$false)] [ValidateNotNullorEmpty()] [boolean]$ContinueOnError = $true ) Begin { ## Get the name of this function and write header [string]${CmdletName} = $PSCmdlet.MyInvocation.MyCommand.Name Write-FunctionHeaderOrFooter -CmdletName ${CmdletName} -CmdletBoundParameters $PSBoundParameters -Header } Process { Try { $StartTime = Get-Date ## Trigger SCCM client scan for Software Updates Write-Log -Message 'Trigger SCCM client scan for Software Updates...' -Source ${CmdletName} Invoke-SCCMTask -ScheduleId 'SoftwareUpdatesScan' $WaitingSeconds = 180 Write-Log -Message "The SCCM client scan for Software Updates has been triggered. The script is suspended for [$WaitingSeconds] seconds to let the update scan finish." -Source ${CmdletName} Start-Sleep -Seconds $WaitingSeconds ## Find the number of missing updates [System.Management.ManagementObject[]]$CMMissingUpdates = @(Get-WmiObject -Namespace 'ROOT\CCM\ClientSDK' -Query "SELECT * FROM CCM_SoftwareUpdate WHERE ComplianceState = '0'") ## Install missing updates and wait for pending updates to finish installing If ($CMMissingUpdates.Count) { # Install missing updates Write-Log -Message "Install missing updates. The number of missing updates is [$($CMMissingUpdates.Count)]." -Source ${CmdletName} $CMInstallMissingUpdates = (Get-WmiObject -Namespace 'ROOT\CCM\ClientSDK' -Class 'CCM_SoftwareUpdatesManager' -List).InstallUpdates($CMMissingUpdates) # Wait for pending updates to finish installing. Timeout in 45 minutes. Do { Start-Sleep -Seconds $WaitingSeconds [array]$CMInstallPendingUpdates = @(Get-WmiObject -Namespace "ROOT\CCM\ClientSDK" -Query "SELECT * FROM CCM_SoftwareUpdate WHERE EvaluationState = 6 or EvaluationState = 7") Write-Log -Message "The number of updates pending installation is [$($CMInstallPendingUpdates.Count)]." -Source ${CmdletName} } While (($CMInstallPendingUpdates.Count -ne 0) -and ((New-TimeSpan -Start $StartTime -End $(Get-Date)) -lt '00:45:00')) } Else { Write-Log -Message 'There are no missing updates.' -Source ${CmdletName} } } Catch { Write-Log -Message "Failed to trigger installation of missing software updates. `n$(Resolve-Error)" -Severity 3 -Source ${CmdletName} If (-not $ContinueOnError) { Throw "Failed to trigger installation of missing software updates: $($_.Exception.Message)" } } } End { Write-FunctionHeaderOrFooter -CmdletName ${CmdletName} -Footer } } ```

Commented Unassigned: Install-SCCMUpdates [133]

$
0
0
Hi ,

I tried to run function install-sccmupdates but i am getting error message that [System.Management.ManagementClass] Installupdates method not fund. MSDN doesnt show that ManagementClass has a method name installupdates.

Are you able to help on this

Thanks
Comments: Thanks alot for that, i will test it tomorrow at work and let you know.. Once again much appreciate your help. Thanks Hassan

Commented Unassigned: Execute-MSI Log Strange Behavior [134]

$
0
0
Hi,

```
Execute-MSI -Action Install -Path $Itemvar_MSI_Name[0] -Parameters $Itemvar_MSI_Name[2]`
-LogName "test.log"

```
In that scenario, I will get test.log_install.log this should be wrong

```
Execute-MSI -Action Install -Path $Itemvar_MSI_Name[0] -Parameters $Itemvar_MSI_Name[2]`
-LogName "test"

```
In that scenario, I will get test_install.log this is correct.
And a log call test.

In the log call test, I see:

```
<![LOG[[Installation] :: Get properties from MSI file [C:\Temp\Vcredist2005_Frv1\Sources\ActivePerl-5.14.3.1404-MSWin32-296513.msi] in table [Property]]LOG]!><time="23:20:11.274-300" date="01-03-2015" component="Get-MsiTableProperty" context="W7SDJ\Client" type="1" thread="34" file="Vcredist2005_Frv1.ps1">
<![LOG[[Installation] :: Get information for installed Product Code [{2B1EE128-27B8-4420-A048-A31E48718779}]...]LOG]!><time="23:20:11.362-300" date="01-03-2015" component="Get-InstalledApplication" context="W7SDJ\Client" type="1" thread="34" file="Vcredist2005_Frv1.ps1">


```



Comments: The 3.6 solved at least 3 issues on my side :)

New Post: run the exe as another user?

$
0
0
thanks it is funny I decided to use the scheduled task approach before reading your reply. I was able to import a scheduled task and run the powershell app toolkit with my functions in it beautifully thru sccm. I did find one issue however. It seems if a user is not part of the administrator group my scheduled task does not get run. Anyone run across this or have any suggestions? We have pretty tight policies so I cannot store passwords either it seems.

New Post: Calling local batch file on client with update repository

$
0
0
I am trying to update Teamcenter. It has a batch file in the local client install directory that has to be called for updates maintenance. I am trying to figure how to call the local batch and point to a repository in the $dirFiles to point to supplied update folder.

If I call the batch file on the client through powershell it opens the session, but i cant figure out to point it to the update repository in the files folder. It needs to pass in the command window.

New Post: Email with .log file...

$
0
0
I have been using the APP Deployment Toolkit for all of my applications and I love it but there is one feature missing or that I don't know how to code that is stopping me from converting all of my .VBS scripts to PS.

How can I after every install, repair and uninstall send an email to a email address with the .LOG attachment? Any answer would be greatly appreciated.

If you need more information please let me know.

Thanks,

Joe

New Post: CloseAppsCountdown ignoring remaining Deferrals

$
0
0
Just started testing this toolkit (v 3.5) to integrate your notification functions into our own installation script library (very nice job!).

However, testing the option to close apps after a countdown seems to be ignoring the Defer count.
Searching the discussions, it seems likely that the change for this thread:
https://psappdeploytoolkit.codeplex.com/discussions/551194
Broke the intended functionality

My command-line is this:

Show-InstallationWelcome -CloseApps "notepad" -PersistPrompt -CloseAppsCountdown 30 -AllowDefer -DeferTimes 3

But even though I have deferalls remaining, the CloseApps countdown starts and closes my apps and proceeds with the install unless I press the Defer button first.

New Post: CloseAppsCountdown ignoring remaining Deferrals

$
0
0
Just downloaded v3.2 and tested and functions as expected - CloseApps countdown does not get invoked until deferrals = 0

New Post: CloseAppsCountdown ignoring remaining Deferrals

$
0
0
Problem seems to be in function Show-WelcomePrompt, line 4789:
        ## If deferral is being shown and 'close apps countdown' or 'persist prompt' was specified, enable those features.
        If ($showDefer) {
            If ($closeAppsCountdown -gt 0) {
                Write-Log -Message "Close applications countdown has [$closeAppsCountdown] seconds remaining." -Source ${CmdletName}
                $showCountdown = $true
            }
            If ($persistPrompt) { $persistWindow = $true }
        }
This should be "if deferral is NOT being shown" and separate from $persistPrompt I think. I changed it to:
        If (!($showDefer)) {
            If ($closeAppsCountdown -gt 0) {
                Write-Log -Message "Close applications countdown has [$closeAppsCountdown] seconds remaining." -Source ${CmdletName}
                $showCountdown = $true
            }
        }
        If ($showDefer) {
            If ($persistPrompt) { $persistWindow = $true }
        }
and that seems to be behaving

Commented Unassigned: Install-SCCMUpdates [133]

$
0
0
Hi ,

I tried to run function install-sccmupdates but i am getting error message that [System.Management.ManagementClass] Installupdates method not fund. MSDN doesnt show that ManagementClass has a method name installupdates.

Are you able to help on this

Thanks
Comments: Hi MMAshwami, This has worked , thanks a lot for your help. Cheers

New Post: Anybody using AppDeployToolkit to deploy package with SCCM 2012 R2?

$
0
0
But installing as user is hard... when users are not local admin. What is your solution?
We are looking into using Beyond Trust Power Broker to resolve issues like this and other privilege elevation issues. Some applications will still install fine in the system context but are missing user settings. I am going to tackle this problem in the future with active setup rather than Group Policy preferences or say a log on script.
So you have an AD group for each user?
Sorry. I should be been clearer. We have an AD group for each application. This also allows applications to easily follow to users primary devices. We use all three methods of UDA. User, Usage and administrator defined methods.
This is during OSD but on day to day. I was thinking showing a message to the user with PSADT asking for a reboot and then using fast retry to see if the problem is solve before returning a true error code. Might it be a good idea? The problem I might see would be in OSD because fast retry in OSD... not sure or being sure all reboot happen when need during OS setup...
The PSADT will detect session 0 or task sequences and run non-interactive automatically. If you use Show-InstallationRestartPrompt it is automatically bypassed in this mode. This might be your solution?
What is your average time to create a package for simple to really hard software?
1 to 32 hours. Hard would classify having no option but to repackage.

New Post: CloseAppsCountdown ignoring remaining Deferrals

$
0
0
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.

New Post: run the exe as another user?

$
0
0
Yeah, it will only work for local admins if you need to do anything that requires admin rights.

New Post: Feature Request: Ability to determine the UI language by a new toolkit parameter (e.g. UILanguage)

$
0
0
Hello PSAD maker,

I love your idea and how you implemented the toolkit so far, but I have a feature request.

As we are an internaltional company located in more then 90 countries worldwide we have a lot of employees around the world speaking different languages with computers with a lot of different keyboard layouts. However we decided to unify the environment and use only english as global standard. Therefore we want, that PSAD toolkit UI elements and dialogs are always displayed in english independed from which keyboard layout/ windows input method or IME a user is currently using. The best solution I can think of would be the ability to determine the UI language by a new toolkit parameter

e.g. -UILanguage 1033

whereas 1033 is the LCID in decimal for English (full table here: http://msdn.microsoft.com/de-de/goglobal/bb964664.aspx).

is it possible to implement this feature?

I would really love it!!!!
Viewing all 2341 articles
Browse latest View live


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