New Post: Set-ExecutionPolicy from inside an already running script
If you don't have execution policy set for your company via group policy or if you did not specify the execution policy when you launched PowerShell from the command line, then the script will set the...
View ArticleNew Post: Set-ExecutionPolicy from inside an already running script
Hi, If the script is running then the set-execution Policy is correctly set. Right? Once the script is start, I would think the set-execution Policy is not need?! Or it is use for the try? Thanks,...
View ArticleNew Post: INE parameter
Hi, What is the signification of : If ($deploymentType -ine 'Uninstall')? ne mean not equal but ine?? I found no reference about "ine". I was looking to the script and found you are using a lot of if...
View ArticleNew Post: Set-ExecutionPolicy from inside an already running script
No, the script can run without the execution policy being set. The execution policy must be set before you take any actions in the script. That's why it must be the first thing you do in your script....
View ArticleNew Post: INE parameter
The PowerShell comparison operators such as -ne are case-insensitive by default. But if you want to explicitly specify case-insensitivity, you can add an "i" in front of any of them. If you wanted to...
View ArticleNew Post: INE parameter
Do you have a reference about the "i"? You are right, if is a matter of choice/style. Thanks, François
View ArticleNew Post: INE parameter
http://technet.microsoft.com/en-us/library/hh847759.aspx Just search on the page for "case" and you should see the text about this.
View ArticleNew Post: INE parameter
We could probably use switch statements more than we have but they are limited in that you can't perform comparisons with them and more complex workflow logic requires the use of if-else statements.
View ArticleNew Post: INE parameter
I thought the same until last night when I was working on something :). See the below for an example of how to do comparisons with switches:Swtich ($_) { 'a' { Do something } 2 { Do something } { $_...
View ArticleNew Post: INE parameter
Hi, I was thinking about the main job of a package: Install, Uninstall.. and repair (for MSI). I believe using if elseif is trivial in those situation. Sound betterr to use Switch install, uninstall,...
View ArticleNew Post: How To - Converting Commands
Hey All, Hoping to find someone with some experience using PSAppDeploy Toolkit. i am trying to deploy a program out using some specific switches and no matter what i try it just errors out. would...
View ArticleNew Post: Show-InstallationWelcome -PersistPrompt not working
I tested it and it is fixed now...thanks
View ArticleNew Post: Show-InstallationWelcome CloseApps is failing
I tested with version 3.5.0 but this issue is still there :-( This command is working: Show-InstallationWelcome -PersistPrompt -AllowDefer -DeferTimes 3 or Show-InstallationWelcome -CloseApps...
View ArticleNew Post: Show-InstallationWelcome CloseApps is failing
UPDATE !!!! When -CloseApps contains "notes" the command is failing. The error is:<![LOG[[Installation] :: Display Dialog Box with message: Error Record: ------------- Message : Cannot bind argument...
View ArticleNew Post: /32 switch not working
Thanks for replying and the quick fix. I will test as soon as I have a little time. I had figured out a workaround to keep going before.
View ArticleNew Post: Invoke-HKCURegistrySettingsForAllUsers Question
You seem to have updated this tool at the right time I was looking for something that can help me work with HKCU when deploying an install as SYSTEM. My small scenario is that I need to remove a key...
View ArticleNew Post: Regarding the SCCM limitation with Applications and "allow user to...
Where can we download the latest version of the beta? I'm working with v4.00 released 8/4 and am experiencing the issue with ServiceUI returning error code 5 on 32-bit machines.
View ArticleNew Post: /32 switch not working
I was able to test it today and it appears to be working. Thanks!
View ArticleNew Post: Invoke-HKCURegistrySettingsForAllUsers Question
Yup you've got it right, the removal is just a one time thing.
View ArticleNew Post: Regarding the SCCM limitation with Applications and "allow user to...
There is currently no beta. We just released 3.5 as final yesterday. The beta 4.00 beta release you downloaded before probably never made it to 4 and the changes got incorporated into some other...
View Article