Thursday, March 15, 2018

App-V 5.x User Scripts not working


Attempting to use App-V user start process scripts on a stand alone Windows 7 computer with local user accounts results in an error of


The application failed to launch
This may be due to a network failure
Error code: 0x0DF01725-00000534

Annoyingly, on Windows 10 (Anniversary) there is no visible or logged error at all, the app just fails to launch, even though the log acknowledges (4004 event) that the script has been called.

The workaround is to use domain accounts not local accounts.

Thanks to Dan Gough for posting this
http://packageology.com/2014/03/user-scripts-broken-app-v-5-0-sp2-local-accounts

Thursday, March 8, 2018

timeout


timeout is a batch file command which produces a visible countdown in a batch file command window.

keywords
wait sleep pause

Wednesday, March 7, 2018

Enabling the Windows 10 Native App-V Client


The Windows 10 Native App-V Client is not enabled by default.

Attempting to start the Microsoft App-V Client services produces an error:

Windows could not start the Microsoft App-V client on Local Computer.  For more information, review the System Event Log.  If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code <error code here>.

You can enable the client by entering the powershell command

Enable-AppV

Group Policy can be used:
Open the device’s Local Group Policy Editor.
Navigate to Computer Configuration > Administrative Templates > System > App-V.
Run Enables App-V Client and then select Enabled on the screen that appears.
Restart the device.



There is also a reference to this problem here:

https://blogs.technet.microsoft.com/appv/2014/09/03/support-tip-the-app-v-client-service-fails-to-start-and-logs-event-id-7024/

Monday, March 5, 2018

Hide a drive in Windows Explorer


To hide drives in Windows Explorer set a registry key as shown below or use this group policy to set the required keys.

HKLM –> Software –> Microsoft –> Windows –> CurrentVersion ->Explorer
or
HKCU –> Software –> Microsoft –> Windows –> CurrentVersion ->Explorer

NoDrives DWORD decimal setting as follows.

A: 1, B: 2, C: 4, D: 8, E: 16, F: 32, G: 64, H: 128, I: 256, J: 512, K: 1024, L: 2048, M: 4096, N: 8192, O: 16384, P: 32768, Q: 65536, R: 131072, S: 262144, T: 524288, U: 1048576, V: 2097152, W: 4194304, X: 8388608, Y: 16777216, Z: 33554432, All: 67108863

Add values to select multiple drives.

To hide drives in Windows Explorer set a registry key as shown below or use the group policy to set the required keys.