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

New Post: Set-RegistryKey - wrong format

$
0
0
or specify the Type parameter like so?:
Set-RegistryKey -Key 'HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.7z\DefaultIcon' -Name '(Default)' -Value 'C:\Program Files\7-Zip\7z.dll,0' -Type [Microsoft.Win32.RegistryValueKind]'String'

New Post: Set-RegistryKey - wrong format

$
0
0
Sorry, I tested it again and your solution work for me.

Thx

Rudolf

New Post: Set-RegistryKey - wrong format

New Post: Set-RegistryKey - wrong format

$
0
0
Your first advice using ' instead ".

Rudo

Thx again

New Post: Set-RegistryKey - wrong format

$
0
0
Cool, yw. Using " instead of ' interchangeably works in most cases but strange bugs can crop up sometimes if not being careful because PowerShell will always scan text inside " quotes to see if they can be interpreted in any way. Using ' string literals where you know it's just text avoids such issues. In some cases, using the two interchangeably can also open you to security vulnerabilities when accepting input from some source for execution.

Commented Feature: Feature Request: User settings function [79]

$
0
0
Sometimes you need to change user settings when deploying packages and it would be nice to have a function for this. The dream scenario would be if the function could handle these things.

- Add HKCU registry keys for users.
- Copy custom files/scripts to a folder on the client and then run this from the users context.
- Run the above file/script for the current logged in user.

The first two things is possible with scripts and Active Setup but the last one is a bit more complex which I'm not sure how to solve. I have seen other Client Management systems handle this but I don't know if it's possible with scripting only. If it isn't possible then the two first things would be nice anyway.
Comments: Yup, that's why I said it's only partially addressed and I haven't closed the ticket ;) We're exploring a number of options with regard to tackling items in the current users context - for users that haven't been created, activesetup remains the best way of doing it. Stay tuned...

Commented Feature: Feature Request: User settings function [79]

$
0
0
Sometimes you need to change user settings when deploying packages and it would be nice to have a function for this. The dream scenario would be if the function could handle these things.

- Add HKCU registry keys for users.
- Copy custom files/scripts to a folder on the client and then run this from the users context.
- Run the above file/script for the current logged in user.

The first two things is possible with scripts and Active Setup but the last one is a bit more complex which I'm not sure how to solve. I have seen other Client Management systems handle this but I don't know if it's possible with scripting only. If it isn't possible then the two first things would be nice anyway.
Comments: Set-HKCURegistrySettingsForAllUsers will actually work for users that do not exist yet because it modifies the default registry hive. When new users are created, their registry is provisioned from the default registry hive. So for strictly registry based edits, I prefer this method over Active Setup.

Commented Feature: Feature Request: User settings function [79]

$
0
0
Sometimes you need to change user settings when deploying packages and it would be nice to have a function for this. The dream scenario would be if the function could handle these things.

- Add HKCU registry keys for users.
- Copy custom files/scripts to a folder on the client and then run this from the users context.
- Run the above file/script for the current logged in user.

The first two things is possible with scripts and Active Setup but the last one is a bit more complex which I'm not sure how to solve. I have seen other Client Management systems handle this but I don't know if it's possible with scripting only. If it isn't possible then the two first things would be nice anyway.
Comments: For files in the User profile folder, new users get their profile files provisioned from the default profile folder under C:\Users\Default. So if it is a a case of simply adding or deleting a file, you can modify all profiles and then modify the default profile to take care of new users. Anything more complicated than simple addition/deleting of files will of course not work for new users.

Commented Feature: Feature Request: User settings function [79]

$
0
0
Sometimes you need to change user settings when deploying packages and it would be nice to have a function for this. The dream scenario would be if the function could handle these things.

- Add HKCU registry keys for users.
- Copy custom files/scripts to a folder on the client and then run this from the users context.
- Run the above file/script for the current logged in user.

The first two things is possible with scripts and Active Setup but the last one is a bit more complex which I'm not sure how to solve. I have seen other Client Management systems handle this but I don't know if it's possible with scripting only. If it isn't possible then the two first things would be nice anyway.
Comments: Also, not sure what you meant by "Citrix Users that are not logged on." Not too familiar with Citrix, so if something novel happens with Citrix users, I'd be interested to know. Otherwise, Set-HKCURegistrySettingsForAllUsers will modify registry settings for users that are not logged on as long as they have a profile on the system with their registry hive file present.

Commented Feature: Feature Request: User settings function [79]

$
0
0
Sometimes you need to change user settings when deploying packages and it would be nice to have a function for this. The dream scenario would be if the function could handle these things.

- Add HKCU registry keys for users.
- Copy custom files/scripts to a folder on the client and then run this from the users context.
- Run the above file/script for the current logged in user.

The first two things is possible with scripts and Active Setup but the last one is a bit more complex which I'm not sure how to solve. I have seen other Client Management systems handle this but I don't know if it's possible with scripting only. If it isn't possible then the two first things would be nice anyway.
Comments: Modifying the Default profile is polluting the Default profile. I did that years ago and I got into trouble. I also do not see a Remove-HKCURegistrySettingsForAllUsers unless it's one and the same. As long as we have multiple methods and one is Active Setup, I'll be happy.

Commented Feature: Feature Request: User settings function [79]

$
0
0
Sometimes you need to change user settings when deploying packages and it would be nice to have a function for this. The dream scenario would be if the function could handle these things.

- Add HKCU registry keys for users.
- Copy custom files/scripts to a folder on the client and then run this from the users context.
- Run the above file/script for the current logged in user.

The first two things is possible with scripts and Active Setup but the last one is a bit more complex which I'm not sure how to solve. I have seen other Client Management systems handle this but I don't know if it's possible with scripting only. If it isn't possible then the two first things would be nice anyway.
Comments: About Citrix: Our setup has a separate Profile Server (or share). The profiles are copied to the Citrix server only just before the user logs on. When the user logs off, his profile is copied back to the Profile Server (or share) and the profile is deleted from the Citrix server.

Commented Feature: Feature Request: User settings function [79]

$
0
0
Sometimes you need to change user settings when deploying packages and it would be nice to have a function for this. The dream scenario would be if the function could handle these things.

- Add HKCU registry keys for users.
- Copy custom files/scripts to a folder on the client and then run this from the users context.
- Run the above file/script for the current logged in user.

The first two things is possible with scripts and Active Setup but the last one is a bit more complex which I'm not sure how to solve. I have seen other Client Management systems handle this but I don't know if it's possible with scripting only. If it isn't possible then the two first things would be nice anyway.
Comments: The function can do any registry manipulation as it executes a script block you pass to it.

Source code checked in, #5c8070e4ea54556a3a2598268547c105736aedba

$
0
0
Fixed bug in Windows Shell detection

New Post: Can't open installation package

$
0
0
Awesome. Using the MSI fixed it. Do you know why? Is there something in the Toolkit that prevents using EXE installers?
Thanks for you help on this, I really appreciate it.

New Post: Deployment Script: Citrix Receiver 14.1.0.0 (4.1)

$
0
0
I keep getting an error on some clients of 1602. Uninstalls go fine but shortly after the install begins I get error code 1602. It seems it bugs out at the ICA portion of the install. Any ideas? Previous version that was installed was 13.4.0.25.

New Post: Test-Powerpoint

$
0
0
Yep, this is a common setup. When working a multi-monitor mode, full-screen presentation is occuring on one screen and the focus is usually on another screen with so called "presenter view". There a presenter sees running time, notes, handouts, etc. Thus in the multi-monitor environment the full-screen presentation would likely be occuring on a screen different than the one with the focus.

Created Unassigned: How to update HKEY_CURRENT_USER registry key [95]

$
0
0
Hi I want to create new Key and value under

HKEY_CURRENT_USER\Software\Microsoft\Office\Excel\Addins

But my users doesn't have admin rights and registry editing is disabled for them so even if I an using set-REgistryKey command its running smoothly but not creating entry for currently logged on user.

Please suggest how to do that

Edited Unassigned: How to update HKEY_CURRENT_USER registry key [95]

$
0
0
Hi I want to create new Key and value under

HKEY_CURRENT_USER\Software\Microsoft\Office\Excel\Addins

But my users doesn't have admin rights and registry editing is disabled for them so even if I an using set-REgistryKey command its running smoothly but not creating entry for currently logged on user.

Please suggest how to do that, I have attached script which i am using.

New Post: Java install on Windows 7 64 bit detection

$
0
0
We have some Windows 7 64 bit machines that have Java 7 32 bit and some that have java 7 64 bit, and some that have both. I want to put application detection in my script. I think I have for 32 bit version but how would I get it for 64 bit detection as well?

Here is for 32 bit :

[version]$JavaVersion = Get-InstalledApplication "Java 7 Update" | select "DisplayVersion" -expand "DisplayVersion"

If ($JavaVersion -lt [version]"7.0.670.1" -or $JavaVersion -eq $null) {
 Execute-MSI -Action Install -Path "$dirFiles\x64\jre1.7.0_67.msi" -Parameters "SPONSORS=0 ALLUSERS=1 JAVAUPDATE=0 AUTOUPDATECHECK=0 REBOOT=REALLYSUPPRESS WEBSTARTICON=0 SYSTRAY=0   /qn"    
}

New Post: Java install on Windows 7 64 bit detection

$
0
0
actually the above wouldnt work either as I do not want installation to happen if java is not installed on the system....thoughts anyone?
Viewing all 2341 articles
Browse latest View live


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