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

Source code checked in, #0a2748cc148d29665c9ac95ca3cbce2d7a6d13c2

$
0
0
Merge branch 'master' of https://git01.codeplex.com/psappdeploytoolkit Conflicts: Sources/Deploy-Application/Deploy-Application.v12.suo

Source code checked in, #f352607bf2ad3bdfec26d4cd1f0fed0eed6c85b7

$
0
0
Praise be the lord I think I've finally beaten the balloon bug in a reasonably elegant way!

Source code checked in, #ce4bdb02be9038e1842274e88ec74916a27c8b1a

$
0
0
Removed -NoExit parameter left over from testing Show-BalloonTip function

Source code checked in, #ab41b6ddc0a7d905c4681eb6fe6b01b566c534b7

$
0
0
Resolved issue with the Show-WelcomePrompt timer being disposed and resetting where a user clicks continue but processes are still running

Closed Unassigned: -Patch Parameter for Execute-MSI [83]

$
0
0
Could you please implement a -Patch parameter similiar to the -Transform parameter?

I do not want to override the default switches everytime ive to specify patches.

e.g For Adobe Products its not recommended to slipstream the MSPs into the main MSI.

Regards,
Fabio
Comments: This feature has been added to v3.5

Source code checked in, #c30c6ba6cafcb6e05977d98ce395026403026ed7

Source code checked in, #f0dc0c199f6868eb27deb96f1c9f21e84e698b9a

$
0
0
Minor edit of change log, converted some spaces to tabs Converted some spaces to tabs in main toolkit. Minor edit of change log.

Created Release: PowerShell App Deployment Toolkit v3.5.0 (Nov 24, 2014)

$
0
0
We're excited to release the latest version of the PSADT. This is one of the biggest code overhauls we've done with lots of new features, improvements and bug fixes. We've also welcomed a third developer on to the team, Muhammed Mashwani.
  • Added CMTrace compatible log files to Write-Log (now the default). Legacy log format still available through configuration in XML config file
  • Added ability to modify HKCU registry settings for all users on a machine by loading registry hives. Added functions to support this: Invoke-HKCURegistrySettingsForAllUsers, Get-UserProfiles, ConvertTo-NTAccountOrSID. Modified functions to support this: Convert-RegistryPath, Get-RegistryKey, Set-RegistryKey, Remove-RegistryKey
  • Added ability in Register-DLL / Unregister-DLL to detect bitness of DLL files and register for the correct architecture automatically
  • Added ability for Test-PowerPoint to actually detect if user is presenting slideshow in fullscreen mode
  • Added Get-LoggedOnUser to get session details for all local and RDP logged on users
  • Added Refresh-SessionEnvironmentVariables to allow reloading of newly created environment variables for the current process
  • Added new variables for Domain Membership, Process Information, Account Permissions, OS Type and Versions, PowerShell and .NET versions, TimeZone Bias
  • Added TRANSFORMSSECURE=1 as default where Transform parameter is specified
  • Added ability to detect active console user (user with control of the monitor, keyboard, mouse)
  • Added ForceCloseAppsCountdown parameter to Show-InstallationWelcome allowing a countdown to close apps regardless of whether deferral is allowed
  • Added Patch parameter to Execute-MSI to allow an MSP file to be specified on the command line with an MSI installation
  • Added ability to Get-InstalledApplication to detect whether a 64-bit or 32-bit application
  • Added CreateNoWindow parameter to Execute-Process
  • Changed Deploy-Application.exe to new executable built in VB.NET
  • Changed detection of Admin rights by looking for Admin SID on the current processes access token, previous method check for membership in the BuiltInAdministrator group
  • Changed Restart Prompt default selected button to Restart Later
  • Changed $envOSArchitecture variable so that it reported consistent value regardless of OS language
  • Improved detection of change.exe failures for TerminalServerInstallMode
  • Improved detection of logged in users, including users connected through RDP
  • Improved error trapping and logging of messages throughout script. Modified messages for clarity and consistency.
  • Improved parameter validation on all functions to simplify function logic and give standard error messages when function parameters not specified properly, also helps make clear which parameters are mandatory and which are not
  • Improved Set-PinnedApplication to detect when one of the chosen actions is not available on an operating system (such as pinning items to Start Menu on Windows 8)
  • Improved session 0 detection
  • Improved Execute-MSI and Execute-Process to sync parameter names for -Path and -Parameters and add alias for backwards compatibility
  • Improved method of detecting OS architecture so that detection works on some non-English operatings systems
  • Improved Block-AppExecution to not flash CMD window right before displaying application block message
  • Show-InstallationWelcome, Show-InstallationPrompt: Fixed clipping of text when non-default DPI settings used
  • Fixed creation of URL shortcuts in New-Shortcut
  • Fixed detection of when script is running from a task sequence
  • Fixed issue in Get-InstalledApplication where an "Invalid Cast" error was thrown if registry contains a value with invalid data
  • Fixed issue in New-Shortcut where an error would be thrown if no icon was specified
  • Fixed issue in Test-Battery where the incorrect information would be returned if the battery was failing
  • Fixed issue in Send-Keys where there was an improper script exit upon failure
  • Fixed issue with Show-BalloonTip where icon was not disposed before exit
  • Fixed issue where Block-Execution would display an error creating the scheduled task if the Application Name was too long (command was longer than 261 characters)
  • Fixed issue where Block-Execution was not showing a message windows when user tries to open a blocked app
  • Fixed issue where Block-Execution was creating a scheduled task to clean up blocked apps which would not execute
  • Fixed issue where AppDeployToolkitHelp.ps1 threw an error when executed
  • Fixed CloseAppsCountdown and PersistPrompt in Show-InstallationWelcome (bug introduced in v3.2)
  • Fixed issue in Show-InstallationPrompt and Show-InstallationWelcome where timeout object was not disposed and would cause timeout of subsequent UI components
  • Fixed issue with enumerating hashtable boolean parameters into string format
  • Fixed centering of Show-InstallationProgress window where DPI scale is not 100%
  • Fixed centering of toolkit banner in UI elements where the full length banner is not used
  • Fixed issue where MinimizeAll() and UndoMinimizeAll() method cals were inserting a $null into the pipeline
  • Fixed issue in Execute-Process to asynchronously capture process Standard Output
  • Updated Deploy-Application template to be consistent with the rest of the toolkit. Scripts from previous versions are fully backwards compatible
  • Updated German translations
  • Updated Norweigan translations
  • Updated documentation

Released: PowerShell App Deployment Toolkit v3.5.0 (Nov 24, 2014)

$
0
0
We're excited to release the latest version of the PSADT. This is one of the biggest code overhauls we've done with lots of new features, improvements and bug fixes. We've also welcomed a third developer on to the team, Muhammad Mashwani.
  • Added CMTrace compatible log files to Write-Log (now the default). Legacy log format still available through configuration in XML config file
  • Added ability to modify HKCU registry settings for all users on a machine by loading registry hives. Added functions to support this: Invoke-HKCURegistrySettingsForAllUsers, Get-UserProfiles, ConvertTo-NTAccountOrSID. Modified functions to support this: Convert-RegistryPath, Get-RegistryKey, Set-RegistryKey, Remove-RegistryKey
  • Added ability in Register-DLL / Unregister-DLL to detect bitness of DLL files and register for the correct architecture automatically
  • Added ability for Test-PowerPoint to actually detect if user is presenting slideshow in fullscreen mode
  • Added Get-LoggedOnUser to get session details for all local and RDP logged on users
  • Added Refresh-SessionEnvironmentVariables to allow reloading of newly created environment variables for the current process
  • Added new variables for Domain Membership, Process Information, Account Permissions, OS Type and Versions, PowerShell and .NET versions, TimeZone Bias
  • Added TRANSFORMSSECURE=1 as default where Transform parameter is specified
  • Added ability to detect active console user (user with control of the monitor, keyboard, mouse)
  • Added ForceCloseAppsCountdown parameter to Show-InstallationWelcome allowing a countdown to close apps regardless of whether deferral is allowed
  • Added Patch parameter to Execute-MSI to allow an MSP file to be specified on the command line with an MSI installation
  • Added ability to Get-InstalledApplication to detect whether a 64-bit or 32-bit application
  • Added CreateNoWindow parameter to Execute-Process
  • Changed Deploy-Application.exe to new executable built in VB.NET
  • Changed detection of Admin rights by looking for Admin SID on the current processes access token, previous method check for membership in the BuiltInAdministrator group
  • Changed Restart Prompt default selected button to Restart Later
  • Changed $envOSArchitecture variable so that it reported consistent value regardless of OS language
  • Improved detection of change.exe failures for TerminalServerInstallMode
  • Improved detection of logged in users, including users connected through RDP
  • Improved error trapping and logging of messages throughout script. Modified messages for clarity and consistency.
  • Improved parameter validation on all functions to simplify function logic and give standard error messages when function parameters not specified properly, also helps make clear which parameters are mandatory and which are not
  • Improved Set-PinnedApplication to detect when one of the chosen actions is not available on an operating system (such as pinning items to Start Menu on Windows 8)
  • Improved session 0 detection
  • Improved Execute-MSI and Execute-Process to sync parameter names for -Path and -Parameters and add alias for backwards compatibility
  • Improved method of detecting OS architecture so that detection works on some non-English operatings systems
  • Improved Block-AppExecution to not flash CMD window right before displaying application block message
  • Show-InstallationWelcome, Show-InstallationPrompt: Fixed clipping of text when non-default DPI settings used
  • Fixed creation of URL shortcuts in New-Shortcut
  • Fixed detection of when script is running from a task sequence
  • Fixed issue in Get-InstalledApplication where an "Invalid Cast" error was thrown if registry contains a value with invalid data
  • Fixed issue in New-Shortcut where an error would be thrown if no icon was specified
  • Fixed issue in Test-Battery where the incorrect information would be returned if the battery was failing
  • Fixed issue in Send-Keys where there was an improper script exit upon failure
  • Fixed issue with Show-BalloonTip where icon was not disposed before exit
  • Fixed issue where Block-Execution would display an error creating the scheduled task if the Application Name was too long (command was longer than 261 characters)
  • Fixed issue where Block-Execution was not showing a message windows when user tries to open a blocked app
  • Fixed issue where Block-Execution was creating a scheduled task to clean up blocked apps which would not execute
  • Fixed issue where AppDeployToolkitHelp.ps1 threw an error when executed
  • Fixed CloseAppsCountdown and PersistPrompt in Show-InstallationWelcome (bug introduced in v3.2)
  • Fixed issue in Show-InstallationPrompt and Show-InstallationWelcome where timeout object was not disposed and would cause timeout of subsequent UI components
  • Fixed issue with enumerating hashtable boolean parameters into string format
  • Fixed centering of Show-InstallationProgress window where DPI scale is not 100%
  • Fixed centering of toolkit banner in UI elements where the full length banner is not used
  • Fixed issue where MinimizeAll() and UndoMinimizeAll() method cals were inserting a $null into the pipeline
  • Fixed issue in Execute-Process to asynchronously capture process Standard Output
  • Updated Deploy-Application template to be consistent with the rest of the toolkit. Scripts from previous versions are fully backwards compatible
  • Updated German translations
  • Updated Norweigan translations
  • Updated documentation

Updated Release: PowerShell App Deployment Toolkit v3.5.0 (Nov 24, 2014)

$
0
0
We're excited to release the latest version of the PSADT. This is one of the biggest code overhauls we've done with lots of new features, improvements and bug fixes. We've also welcomed a third developer on to the team, Muhammad Mashwani.
  • Added CMTrace compatible log files to Write-Log (now the default). Legacy log format still available through configuration in XML config file
  • Added ability to modify HKCU registry settings for all users on a machine by loading registry hives. Added functions to support this: Invoke-HKCURegistrySettingsForAllUsers, Get-UserProfiles, ConvertTo-NTAccountOrSID. Modified functions to support this: Convert-RegistryPath, Get-RegistryKey, Set-RegistryKey, Remove-RegistryKey
  • Added ability in Register-DLL / Unregister-DLL to detect bitness of DLL files and register for the correct architecture automatically
  • Added ability for Test-PowerPoint to actually detect if user is presenting slideshow in fullscreen mode
  • Added Get-LoggedOnUser to get session details for all local and RDP logged on users
  • Added Refresh-SessionEnvironmentVariables to allow reloading of newly created environment variables for the current process
  • Added new variables for Domain Membership, Process Information, Account Permissions, OS Type and Versions, PowerShell and .NET versions, TimeZone Bias
  • Added TRANSFORMSSECURE=1 as default where Transform parameter is specified
  • Added ability to detect active console user (user with control of the monitor, keyboard, mouse)
  • Added ForceCloseAppsCountdown parameter to Show-InstallationWelcome allowing a countdown to close apps regardless of whether deferral is allowed
  • Added Patch parameter to Execute-MSI to allow an MSP file to be specified on the command line with an MSI installation
  • Added ability to Get-InstalledApplication to detect whether a 64-bit or 32-bit application
  • Added CreateNoWindow parameter to Execute-Process
  • Changed Deploy-Application.exe to new executable built in VB.NET
  • Changed detection of Admin rights by looking for Admin SID on the current processes access token, previous method check for membership in the BuiltInAdministrator group
  • Changed Restart Prompt default selected button to Restart Later
  • Changed $envOSArchitecture variable so that it reported consistent value regardless of OS language
  • Improved detection of change.exe failures for TerminalServerInstallMode
  • Improved detection of logged in users, including users connected through RDP
  • Improved error trapping and logging of messages throughout script. Modified messages for clarity and consistency.
  • Improved parameter validation on all functions to simplify function logic and give standard error messages when function parameters not specified properly, also helps make clear which parameters are mandatory and which are not
  • Improved Set-PinnedApplication to detect when one of the chosen actions is not available on an operating system (such as pinning items to Start Menu on Windows 8)
  • Improved session 0 detection
  • Improved Execute-MSI and Execute-Process to sync parameter names for -Path and -Parameters and add alias for backwards compatibility
  • Improved method of detecting OS architecture so that detection works on some non-English operatings systems
  • Improved Block-AppExecution to not flash CMD window right before displaying application block message
  • Show-InstallationWelcome, Show-InstallationPrompt: Fixed clipping of text when non-default DPI settings used
  • Fixed creation of URL shortcuts in New-Shortcut
  • Fixed detection of when script is running from a task sequence
  • Fixed issue in Get-InstalledApplication where an "Invalid Cast" error was thrown if registry contains a value with invalid data
  • Fixed issue in New-Shortcut where an error would be thrown if no icon was specified
  • Fixed issue in Test-Battery where the incorrect information would be returned if the battery was failing
  • Fixed issue in Send-Keys where there was an improper script exit upon failure
  • Fixed issue with Show-BalloonTip where icon was not disposed before exit
  • Fixed issue where Block-Execution would display an error creating the scheduled task if the Application Name was too long (command was longer than 261 characters)
  • Fixed issue where Block-Execution was not showing a message windows when user tries to open a blocked app
  • Fixed issue where Block-Execution was creating a scheduled task to clean up blocked apps which would not execute
  • Fixed issue where AppDeployToolkitHelp.ps1 threw an error when executed
  • Fixed CloseAppsCountdown and PersistPrompt in Show-InstallationWelcome (bug introduced in v3.2)
  • Fixed issue in Show-InstallationPrompt and Show-InstallationWelcome where timeout object was not disposed and would cause timeout of subsequent UI components
  • Fixed issue with enumerating hashtable boolean parameters into string format
  • Fixed centering of Show-InstallationProgress window where DPI scale is not 100%
  • Fixed centering of toolkit banner in UI elements where the full length banner is not used
  • Fixed issue where MinimizeAll() and UndoMinimizeAll() method cals were inserting a $null into the pipeline
  • Fixed issue in Execute-Process to asynchronously capture process Standard Output
  • Updated Deploy-Application template to be consistent with the rest of the toolkit. Scripts from previous versions are fully backwards compatible
  • Updated German translations
  • Updated Norweigan translations
  • Updated documentation

New Post: Show-InstallationWelcome CloseApps is failing

$
0
0
It looks like line 4671 failed to find any .exe files in the directory where notes is supposed to be installed. Because $notesPathExes is $null, the Compare-Object command fails on next line. If there truly are no .exe files in that directory, then we would have to add a check that says to only process line 4673 and 4674 if $notesPatheExes is not null by adding conditional: If ($notesPatheExes) { LINE 4673, 4674 }

New Post: How To - Converting Commands

$
0
0
You haven't provided too much information. The function you need is Execute-MSI in the toolkit. Use this function to install your MSI. The function parameters are well documented so that you know what information to specify for each parameter. If you are having problems with the parameters, then show us what you are specifying for each parameter and then we can try and help.

New Post: How To - Converting Commands

$
0
0
Thanks for the reply, I have already sorted this out and fixed the issues. there was a couple items that needed changed and the parameters needed to be closed. I did go through all the documentation but it did not really go through what I was having issues with.

essentially I was looking for input on what I was missing in the above Execute-MSI command. running the command with msiexec.exe worked without issues but the execute-msi would not work. below is a snip of the final command that worked...

Execute-MSI -Action Install -Path "ClientSetup.msi" -parameters "/qn ADDLOCAL=ImageNowClient,Pixtran,Accusoft,SystemFiles,LeadTools,OneDirectory,ImageNowPrinter IN_PROFILENAME=DefaultProfile IN_SERVER_NAME=image.server.ca IN_PORT_NO=6000 STARTMENUICON=Yes DESKTOPICON=Yes QUICKLAUNCHICON=Yes REMOVEOLDVERSIONS=Yes"

Again thanks for the reply back, much appreciated.

New Post: DWord Reg key creation

$
0
0
Ok so when I create a registry key with the following it does not seem to create the type any thoughts?

If ($psArchitecture -eq "x64") {
               Set-RegistryKey -Key  "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Google\Update\UpdateDefault" -Value "0" -Type 'DWord'  
               } 

              ElseIf ($psArchitecture -eq "x86") {
                Set-RegistryKey -Key  "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Update\UpdateDefault" -Value "0" -Type 'DWord'            
                }

New Post: DWord Reg key creation

$
0
0
What does the log file show for this operation?

New Post: BlockExecution not unblocking the execution of applications in version 3.5

$
0
0
Hi,

I just created a script with version 3.5 and it is not removing the block to execute applications after the installation.

Here is the part of the log that mentions it:
[Pre-Installation] :: [-BlockExecution] parameter specified.    Show-InstallationWelcome    11/25/2014 3:25:37 PM   1 (0x0001)
[Pre-Installation] :: Create scheduled task to cleanup blocked applications in case installation is interrupted.    Block-AppExecution  11/25/2014 3:25:38 PM   1 (0x0001)
[Pre-Installation] :: Retrieve Scheduled Tasks  Get-ScheduledTask   11/25/2014 3:25:38 PM   1 (0x0001)
[Pre-Installation] :: [C:\Windows\System32\schtasks.exe] is a valid path, continue  Execute-Process 11/25/2014 3:25:43 PM   1 (0x0001)
[Pre-Installation] :: Working Directory is [C:\Windows\System32]    Execute-Process 11/25/2014 3:25:43 PM   1 (0x0001)
[Pre-Installation] :: Executing [C:\Windows\System32\schtasks.exe /Create /TN .NET.Framework.4.5.2.Multi-Targeting.Pack_4.5.51651_001_BlockedApps /RU "NT AUTHORITY\SYSTEM" /SC ONSTART /TR "C:\Program Files\XX\PSAppDeployToolkit\AppDeployToolkit_UnBlockApps.bat"]...   Execute-Process 11/25/2014 3:25:43 PM   1 (0x0001)
[Pre-Installation] :: Execution completed with exit code [0]    Execute-Process 11/25/2014 3:25:44 PM   1 (0x0001)
[Pre-Installation] :: Set the Image File Execution Option registry key to block execution of [iexplore.exe].    Block-AppExecution  11/25/2014 3:25:44 PM   1 (0x0001)
[Pre-Installation] :: Return fully qualified registry key path [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iexplore.exe]    Convert-RegistryPath    11/25/2014 3:25:44 PM   1 (0x0001)
[Pre-Installation] :: Set registry key value: [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iexplore.exe] [Debugger = wscript.exe "C:\Program Files\XX\PSAppDeployToolkit\AppDeployToolkit_BlockAppExecutionMessage.vbs"] Set-RegistryKey 11/25/2014 3:25:44 PM   1 (0x0001)
[Post-Installation] :: Remove the Image File Execution Options registry key to unblock execution of []. Unblock-AppExecution    11/25/2014 3:26:24 PM   1 (0x0001)
[Post-Installation] :: Retrieve Scheduled Tasks Get-ScheduledTask   11/25/2014 3:26:24 PM   1 (0x0001)
[Post-Installation] :: Delete Scheduled Task [.NET.Framework.4.5.2.Multi-Targeting.Pack_4.5.51651_001_BlockedApps]. Unblock-AppExecution    11/25/2014 3:26:26 PM   1 (0x0001)
[Post-Installation] :: [C:\Windows\System32\schtasks.exe] is a valid path, continue Execute-Process 11/25/2014 3:26:26 PM   1 (0x0001)
[Post-Installation] :: Working Directory is [C:\Windows\System32]   Execute-Process 11/25/2014 3:26:26 PM   1 (0x0001)
[Post-Installation] :: Executing [C:\Windows\System32\schtasks.exe /Delete /TN .NET.Framework.4.5.2.Multi-Targeting.Pack_4.5.51651_001_BlockedApps /F]...   Execute-Process 11/25/2014 3:26:26 PM   1 (0x0001)
[Post-Installation] :: Execution completed successfully with exit code [0]  Execute-Process 11/25/2014 3:26:26 PM   1 (0x0001)
When blocking it correctly identifies the process to block (Set the Image File Execution Option registry key to block execution of [iexplore.exe].). But that is not happening while unblocking (Remove the Image File Execution Options registry key to unblock execution of [].).

New Post: BlockExecution not unblocking the execution of applications in version 3.5

$
0
0
Is this using the 3.5 final release from yesterday or with a beta release you may have downloaded prior to yesterday evening?

New Post: BlockExecution not unblocking the execution of applications in version 3.5

$
0
0
The 3.5 final release. I downloaded it today.

New Post: BlockExecution not unblocking the execution of applications in version 3.5

$
0
0
I'm testing with blocking "iexplore" right now on a Windows 8 x64 system and it is blocking and unblocking properly for me each time. I am running the deploy script directly from an elevated command prompt. Can you share some more details about your system and how you are executing the script?

New Post: BlockExecution not unblocking the execution of applications in version 3.5

$
0
0
Actually, if you want to test with the same script I am running, it is the Testing script under the "Testing" folder of the toolkit download.
Viewing all 2341 articles
Browse latest View live