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

New Post: Error: App Deploy Toolkit Main requires Administrator rights...

$
0
0
Hi mniccum

You could just go in to the AppDeployToolkit\AppDeployToolkitMain.ps1

Edit the file with notepad or powershell ISE or whichever ps editor you use.

Search for "administrator" string.

You should be able to find what you want in line 4995
# Check current permissions and exit if not running with Administrator rights
If ($configToolkitRequireAdmin) {
    If (!([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
        If ($ShowBlockedAppDialog -ne $true) {
            Throw "Error: $appDeployMainScriptFriendlyName requires Administrator rights to function. Please re-run the deployment script as an Administrator."
        }
    }
}
Just put the whole section in comments like this (watch the <# and #> at beginning and end):
<# Check current permissions and exit if not running with Administrator rights
If ($configToolkitRequireAdmin) {
    If (!([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
        If ($ShowBlockedAppDialog -ne $true) {
            Throw "Error: $appDeployMainScriptFriendlyName requires Administrator rights to function. Please re-run the deployment script as an Administrator."
        }
    }
}#>
Save the file. Now the restriction goes away. It runs with standard user rights (even if user is local admin with UAC on)

Hope this helps.

This works on 3.2.0. Haven't tested on older versions

New Post: Error: App Deploy Toolkit Main requires Administrator rights...

$
0
0
There's a much easier way of doing this, just locate the switch in the config XML file that requires admin rights.

New Post: Error: App Deploy Toolkit Main requires Administrator rights...

$
0
0
Good to know there's an easier way! :)

Reviewed: PowerShell App Deployment Toolkit v3.2.0 (Nov 20, 2014)

$
0
0
Rated 5 Stars (out of 5) - This toolkit is a app packager's dream come true, the Microsoft SCCM team could learn a thing or two from this tool. The SCCM application model is great but since most apps require scripting unloading the app installation into a non standard script is just not going to work on the long term. This toolkit provides structure, customization and greatly reduced packaging time. This tookit really shines if you need meaningful user interaction.

New Post: Error: App Deploy Toolkit Main requires Administrator rights...

$
0
0
So where do I go to vote on that change for Salesforce? Our group has to install it too and it is a PITA.

-Austin

New Post: ADD Path or Remove Path if it exists

$
0
0
Found this on the scripting guy's blog and needed to set a path in an old app maybe this will be useful to someone

Function global:ADD-PATH()
{
[Cmdletbinding()]
param
(
[parameter(Mandatory=$True,
ValueFromPipeline=$True,
Position=0)]
[String[]]$AddedFolder
)

Get the current search path from the environment keys in the registry.

$OldPath=(Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH).Path

See if a new folder has been supplied.

IF (!$AddedFolder)
{ Return ‘No Folder Supplied. $ENV:PATH Unchanged’}

See if the new folder exists on the file system.

IF (!(TEST-PATH $AddedFolder))
{ Return ‘Folder Does not Exist, Cannot be added to $ENV:PATH’ }

See if the new Folder is already in the path.

IF ($ENV:PATH | Select-String -SimpleMatch $AddedFolder)
{ Return ‘Folder already within $ENV:PATH' }

Set the New Path

$NewPath=$OldPath+’;’+$AddedFolder

Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH –Value $newPath

}

Function global:REMOVE-PATH()
{
[Cmdletbinding()]
param
(
[parameter(Mandatory=$True,
ValueFromPipeline=$True,
Position=0)]
[String[]]$RemovedFolder
)

Get the Current Search Path from the environment keys in the registry

$NewPath=(Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH).Path

Find the value to remove, replace it with $NULL. If it’s not found, nothing will change.

$NewPath=$NewPath –replace $RemovedFolder,$NULL

Update the Environment Path

Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH –Value $newPath


}

New Post: Reg file import

$
0
0
I ended up taking what was in my reg file and using set-registrykey in the deployment script.

New Post: Handling multiple reboots

$
0
0
I am trying to deploy an application that requires pre-install steps, a reboot, the app install, and another reboot. I typically would use an SCCM task sequence for this because of the multiple reboots; however, I wanted to see if there was a way to handle multiple reboots in the script. Any ideas or insight are greatly appreciated!

Jeff

Source code checked in, #19fdff949f99848fb80a31b8d39b7d2eca431186

$
0
0
Updated Execute-Process not to write a log entry containing the entire script block for Show-BalloonTip

Source code checked in, #0e30f926d61be437264c7f736bc9255665640161

$
0
0
Changed CreateNoWindow parameter in Execute-Process function from boolean to switch

Commented Unassigned: OSArchitecture detection on French Windows [100]

$
0
0
If you run the command for $is64Bit on a French Windows' 64-bit OS, the value comes back as False. The reason is because when you run (Get-WmiObject -Class Win32_OperatingSystem).OSArchitecture, the value comes back as "64 bits" instead of "64-bit". In AppDeployToolkitMain.ps1, the line for $is64Bit needs could be changed to "$is64Bit = (((Get-WmiObject -Class Win32_OperatingSystem -ea 0).OSArchitecture -eq '64-bit') -or ((Get-WmiObject -Class Win32_OperatingSystem -ea 0).OSArchitecture -eq '64 bits'))" and that will fix the issue.
Comments: Great, thanks for testing.

Closed Unassigned: OSArchitecture detection on French Windows [100]

$
0
0
If you run the command for $is64Bit on a French Windows' 64-bit OS, the value comes back as False. The reason is because when you run (Get-WmiObject -Class Win32_OperatingSystem).OSArchitecture, the value comes back as "64 bits" instead of "64-bit". In AppDeployToolkitMain.ps1, the line for $is64Bit needs could be changed to "$is64Bit = (((Get-WmiObject -Class Win32_OperatingSystem -ea 0).OSArchitecture -eq '64-bit') -or ((Get-WmiObject -Class Win32_OperatingSystem -ea 0).OSArchitecture -eq '64 bits'))" and that will fix the issue.

Updated Wiki: Donate

$
0
0

When you click the PayPal icon, you will be taken to the PayPal website where you will be able to donate any amount to the PS App Deploy Toolkit project. Note that you donot have to create a PayPal account in order to donate money to the PS App Deploy Toolkit project. Please make sure you have read the legal notice at the bottom of this page.

 

PayPalDonate

Legal notice: By making a donation to the PS App Deployment Toolkit project you signify that you acknowledged, understood, accepted, and agreed to the terms and conditions contained in this notice. Your donation to the PS App Deployment Toolkit project is voluntary and is not a fee for any services, goods, or advantages, and making a donation to the PS App Deployment Toolkit project does not entitle you to any services, goods, or advantages. We have the right to use the money you donate to the PS App Deployment Toolkit project in any lawful way and for any lawful purpose we see fit and we are not obligated to disclose the way and purpose to any party unless required by applicable law. Although PS App Deployment Toolkit is free software, to our best knowledge the PS App Deployment Toolkit project does not have any tax exempt status (the PS App Deployment Toolkit project is neither a registered non-profit corporation nor a registered charity in any country). Your donation may or may not be tax-deductible; please consult this with your tax advisor. We will not publish/disclose your name and e-mail address without your consent, unless required by applicable law. Your donation is non-refundable.

Updated Wiki: Reviews and Presentations

$
0
0

“Truly powerful application deployment toolkit written in PowerShell! Solving some classic problems “

Jörgen Nilsson, Microsoft MVP, Enterprise Client Management

“Another very cool SCCM 2012 must have tool - PowerShell App Deployment Toolkit”

Kent Agerlund, Microsoft MVP, Enterprise Client Management

“This is really an exceptional Toolkit! It's the swiss army knive for software deployment. For every task you possible need to perform, there is a function for it. And you can extend it with your own functions if you like. Even when you're using something like SCCM to deploy your software, the toolkit can have real value as it fills the gabs left by SCCM. Thanks!”

Quint

“Excellent support guys! This toolkit is the best thing around to easily wrap and deploy software to end users and it just keeps on getting better with every release!”

Maarten Pauchet

“The PowerShell App Deployment toolkit rocks! I tried it today and love it.”

Alex Verboon

“Life Saver! PowerShell App Deployment Toolkit allows me 100% flexibility when deploying applications via SCCM. I couldn't do my job without it.”

Duffney

“Amazing work, very useful for a variety of deployment challenges, especially where deployments depend on closing of in-use applications to succeed. Although I am not a PowerShell expert by any means, I've found the PS App Deployment Toolkit to be invaluable for filling some "gaps" in our deployment capacity. We use SCCM 2012 R2 but with the toolkit having the ability to prompt users to close apps and allow deferrals as well as friendly completion dialogs and all the other customisation and extensibility when required is awesome! Thanks to all the people involved for making this happen!”Amazing work, very useful for a variety of deployment challenges, especially where deployments depend on closing of in-use applications to succeed.

ZeJackal

“The new Send-Keys function is very powerful, I love the addition! It's great that you guys are actively seeking out useful extensions from community members. Although PSADT is intended to be used as an add-on to SCCM, I have found it to be invaluable for our deployment suite, Altiris.”

Souporman

“Our team currently manages approximately 30,000 PCs in our organization along with hundreds of applications. Our current managed application packages are wrapped with Wise script. We had plans to migrate our wrapper scripting to PowerShell. However, we knew that writing our years old standard Wise package wrapper template from scratch in PowerShell was going to be very challenging. App Deployment Toolkit is the exact toolkit we needed. Thanks for the great solution. This will make our migration to PowerShell Application Package Wrapper Standard a whole lot easier.”
husnukaplan

This toolkit is an app packager's dream come true, the Microsoft SCCM team could learn a thing or two from this tool. The SCCM application model is great but since most apps require scripting unloading the app installation into a non standard script is just not going to work on the long term. This toolkit provides structure, customization and greatly reduced packaging time. This tookit really shines if you need meaningful user interaction.
IoanPopovici

“This is an amazing helpful tool! Thank you so much for your work guys!”
Melampus

“Very useful toolkit for software deployment with a nice set of features.”
Jerre

“Works great for deploying Java by forcing for the shutdown of browsers and java updating system to allow for a smooth, clean install.”
Severud

“Great work you guys. I've been in app packaging and deployment for 10 years and this is THE BEST tool i've seen to date. Thank you!“

Cymroz

“Since I have moved to using this toolkit for all my installs I have found adjusting the installations are much quicker and smoother. A lot of times I need to close apps or uninstall old version and the one-off script to accomplish the task at hand is less than perfect. Now I have a template ps1 file to incorporate all the things I have had to do thus far so I never have to reinvent the wheel for things I have already done. The fact that all the ps1 files have the same look and feel is also nice. The logging provided has also allowed me to quickly troubleshoot issues that would have taken much longer in the past. Now all my deployments have logging be default. I can't say enough good things about toolkit.
Thanks Again!”

mniccum

“Everything that I have been looking to do with Application Deployments in SCCM has always been hindered by a couple things. Non-standard scripts to install, needing the user to shut certain programs down and keep them closed - even the program returning a reboot code when I tried to suppress. This toolkit has allowed me to resolve all of these issues. If it weren't for the fact that others have reviewed it - I would have assumed they wrote it with me in mind! This tool will make any Application Deployment much, much better. I wish I could give it more than 5 stars!”

bkubitz

“I now package all my applications using this and have started to go back and repackage my old powershell installations. This toolkit rocks. Thank you!”

jgaswint

Presentations

The PS App Deployment Toolkit has featured in the following industry conferences:

- “Become the Hero of the Day - Master ConfigMgr 2012 R2 with a Limited Budget and Free Community Tools” sessions at NIC Conference 2013 and System Center Universe 2014 (Kent Agerlund).

- “Microsoft System Center Configuration Manager Community Jewels session at MS TechEd North America 2014 (Jorgen Nilsson, Stefan Schörling) – see video @ 18 mins: http://channel9.msdn.com/Events/TechEd/NorthAmerica/2014/PCIT-B320#fbid=

- “Microsoft System Center Configuration Manager Community Jewels” session at MS TechEd Europe 2014 (Jorgen Nilsson, Stefan Schörling) – see video @ 21 mins:

http://channel9.msdn.com/Events/TechEd/Europe/2014/EM-B308

Updated Wiki: Reviews and Presentations

$
0
0

“Truly powerful application deployment toolkit written in PowerShell! Solving some classic problems “

Jörgen Nilsson, Microsoft MVP, Enterprise Client Management

“Another very cool SCCM 2012 must have tool - PowerShell App Deployment Toolkit”

Kent Agerlund, Microsoft MVP, Enterprise Client Management

“This is really an exceptional Toolkit! It's the swiss army knive for software deployment. For every task you possible need to perform, there is a function for it. And you can extend it with your own functions if you like. Even when you're using something like SCCM to deploy your software, the toolkit can have real value as it fills the gabs left by SCCM. Thanks!”

Quint

“Excellent support guys! This toolkit is the best thing around to easily wrap and deploy software to end users and it just keeps on getting better with every release!”

Maarten Pauchet

“The PowerShell App Deployment toolkit rocks! I tried it today and love it.”

Alex Verboon

“Life Saver! PowerShell App Deployment Toolkit allows me 100% flexibility when deploying applications via SCCM. I couldn't do my job without it.”

Duffney

“Amazing work, very useful for a variety of deployment challenges, especially where deployments depend on closing of in-use applications to succeed. Although I am not a PowerShell expert by any means, I've found the PS App Deployment Toolkit to be invaluable for filling some "gaps" in our deployment capacity. We use SCCM 2012 R2 but with the toolkit having the ability to prompt users to close apps and allow deferrals as well as friendly completion dialogs and all the other customisation and extensibility when required is awesome! Thanks to all the people involved for making this happen!”Amazing work, very useful for a variety of deployment challenges, especially where deployments depend on closing of in-use applications to succeed.

ZeJackal

“The new Send-Keys function is very powerful, I love the addition! It's great that you guys are actively seeking out useful extensions from community members. Although PSADT is intended to be used as an add-on to SCCM, I have found it to be invaluable for our deployment suite, Altiris.”

Souporman

“Our team currently manages approximately 30,000 PCs in our organization along with hundreds of applications. Our current managed application packages are wrapped with Wise script. We had plans to migrate our wrapper scripting to PowerShell. However, we knew that writing our years old standard Wise package wrapper template from scratch in PowerShell was going to be very challenging. App Deployment Toolkit is the exact toolkit we needed. Thanks for the great solution. This will make our migration to PowerShell Application Package Wrapper Standard a whole lot easier.”
husnukaplan

This toolkit is an app packager's dream come true, the Microsoft SCCM team could learn a thing or two from this tool. The SCCM application model is great but since most apps require scripting unloading the app installation into a non standard script is just not going to work on the long term. This toolkit provides structure, customization and greatly reduced packaging time. This tookit really shines if you need meaningful user interaction.
IoanPopovici

“This is an amazing helpful tool! Thank you so much for your work guys!”
Melampus

“Very useful toolkit for software deployment with a nice set of features.”
Jerre

“Works great for deploying Java by forcing for the shutdown of browsers and java updating system to allow for a smooth, clean install.”
Severud

“Great work you guys. I've been in app packaging and deployment for 10 years and this is THE BEST tool i've seen to date. Thank you!“

Cymroz

“Since I have moved to using this toolkit for all my installs I have found adjusting the installations are much quicker and smoother. A lot of times I need to close apps or uninstall old version and the one-off script to accomplish the task at hand is less than perfect. Now I have a template ps1 file to incorporate all the things I have had to do thus far so I never have to reinvent the wheel for things I have already done. The fact that all the ps1 files have the same look and feel is also nice. The logging provided has also allowed me to quickly troubleshoot issues that would have taken much longer in the past. Now all my deployments have logging be default. I can't say enough good things about toolkit.
Thanks Again!”

mniccum

“Everything that I have been looking to do with Application Deployments in SCCM has always been hindered by a couple things. Non-standard scripts to install, needing the user to shut certain programs down and keep them closed - even the program returning a reboot code when I tried to suppress. This toolkit has allowed me to resolve all of these issues. If it weren't for the fact that others have reviewed it - I would have assumed they wrote it with me in mind! This tool will make any Application Deployment much, much better. I wish I could give it more than 5 stars!”

bkubitz

“I now package all my applications using this and have started to go back and repackage my old powershell installations. This toolkit rocks. Thank you!”

jgaswint

Presentations

The PS App Deployment Toolkit has featured in the following industry conferences:

- “Become the Hero of the Day - Master ConfigMgr 2012 R2 with a Limited Budget and Free Community Tools” sessions at NIC Conference 2013 and System Center Universe 2014 (Kent Agerlund).

- “Microsoft System Center Configuration Manager Community Jewels session at MS TechEd North America 2014 (Jorgen Nilsson, Stefan Schörling) – see video @ 18 mins: http://channel9.msdn.com/Events/TechEd/NorthAmerica/2014/PCIT-B320#fbid=

- “Microsoft System Center Configuration Manager Community Jewels” session at MS TechEd Europe 2014 (Jorgen Nilsson, Stefan Schörling) – see video @ 21 mins:

http://channel9.msdn.com/Events/TechEd/Europe/2014/EM-B308


New Post: Show-InstallationWelcome -PersistPrompt not working

$
0
0
Thanks for raising this - I was able to reproduce it. It's fixed in the latest source code (v3.5 beta) which will be released next week.

Source code checked in, #77500036b8e02640b01424d016829697fbf473b7

$
0
0
Fixed CloseAppsCountdown and PersistPrompt in Show-InstallationWelcome (bug introduced in v3.2)

Source code checked in, #e9c32d3d7a17f1cc6a15b93caca51d023cf6ade6

$
0
0
change to balloon tip disposal to prevent first disposal from also disposing second balloon

New Post: DeployMode “Interactive” not detailed

$
0
0
Thanks for reporting this. It's been updated in the latest 3.5 beta.

Source code checked in, #05ebd973da0be3f1e3f1df964d474406459885d3

$
0
0
Fixed issue with Deploy-Application.exe, updated documentation Fixed issue with Deploy-Application.wse/Deploy-Application.exe so that it would honor /32 switch to launch 32-bit PowerShell on 64-bit systems
Viewing all 2341 articles
Browse latest View live


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