PowerShell Script–Set App-V 4.6 Cache Size

Background: As part of our migration process from Configuration Manager 2007 to Configuration Manager 2012 R2 we also adjust the App-V Cache Size that is currently set to 6GB to 11GB because the ConfigMgr Agent Cache is set to 10GB, this by following the best practice described in Microsoft’s whitepaper Virtual Application Management with Microsoft Application Virtualization 4.5/4.6 and System Center Configuration Manager 2007 R2 where it says. “The App-V Client cache free disk space Read More …

PowerShell App Deployment Toolkit– How to make the message Font size larger

I have had a request this week to make the font size of the Message text displayed by the PowerShell App Deployment Tookit function Show-InstallationPrompt a bit larger. To make the font of the message larger, all you need to do is adding 2 lines of code to the Function Show-InstallationPrompt that is embedded within the AppDeployToolkitMain.ps1 file. Add the following code just above the “#button left” section. #custom – Bigger text size$Font = New-Object Read More …

PowerShell Desired State Configuration – My first experiences

During the past weeks I have been reading and listening about PowerShell Desired State Configuration a new feature introduced with PowerShell 4.0 which ships with Windows 8.1 and Server 2012R2 but is also available for Windows 7 SP1 and Server 2008 R2 as part of the Windows Management Framework 4.0 To keep things simple at first, I have only focused at running DSC on a local client and only used two built-in configuration resources. What Read More …

PowerShell Script – Are we running as Admin?

While exploring some of the new cmdlets that come with Windows 8.1 I came across Test-NetConnection. and noticed that it has a property called IsAdmin. When running the cmdlet in an elevated PowerShell session the property returns True otherwise False. So I put together a very simple script to check whether we are running as admin or not.

Other (and probably more reliable) ways to determine whether we are running as admin are described Read More …

ConfigMgr PowerShell Script to check if Application or Program is allowed to run in TS without being deployed

Kind of a long title for a blog post, but I could not come up with something shorter to describe the content of this blog post. The below script shows the status of the “Allow this Application / program to be installed from the Application / program install task sequence action without being deployed” setting.  

Additional Information SMS_Program Server WMI Class (ProgramFlags) Application.AutoInstall Property Application Members

PowerShell Script to detect ConfigMgr Task Sequence unfriendly Software Updates

Update: 15 Une 2014 – Added KB2965788 If you’re dealing with ConfigMgr and OS Deployment task sequences you’re probably aware of the KB article recently published by Microsoft called “Task sequence fails in Configuration Manager if software updates require multiple restarts”. Let’s hope the list of KBs causing this issue isn’t going to grow too much over time, in any case we’ve decided that we would continue to review the article whenever we add new Read More …