https://worldofeuc.com logo
Join Slack
Powered by
# _dev-scripting
  • s

    Slackbot

    04/08/2023, 3:58 PM
    This message was deleted.
    r
    w
    • 3
    • 2
  • s

    Slackbot

    04/13/2023, 11:15 AM
    This message was deleted.
    l
    r
    • 3
    • 8
  • s

    Slackbot

    04/13/2023, 11:17 AM
    This message was deleted.
    👍 4
    😅 1
    r
    w
    • 3
    • 4
  • s

    Slackbot

    04/14/2023, 12:07 AM
    This message was deleted.
    🧐 1
    a
    a
    • 3
    • 4
  • s

    Slackbot

    04/14/2023, 6:26 PM
    This message was deleted.
    a
    o
    • 3
    • 9
  • w

    Webster Webster

    04/19/2023, 5:48 PM
    Updated script: Backup VMware Virtual Distributed Switches V1.01 - https://carlwebster.com/backup-vmware-virtual-distributed-switches-v1-01/
  • w

    Webster Webster

    04/21/2023, 2:28 PM
    Updated script: VMware vCenter Documentation Script Update Version 2.00 - https://carlwebster.com/vmware-vcenter-documentation-script-update-version-2-00/ @Jacob Rutski (keeping it going) Thanks to T.E.R. for testing with vCenter 8
  • b

    Balint Oberrauch

    05/19/2023, 1:06 PM
    does anyone have a script, which adds automatically VMs to a Machine Catalog based on a certain OU? If not, I'll develop one
    👍 1
  • s

    Slackbot

    05/24/2023, 1:04 PM
    This message was deleted.
    n
    b
    • 3
    • 13
  • s

    Slackbot

    06/26/2023, 2:16 PM
    This message was deleted.
    r
    s
    • 3
    • 3
  • s

    Slackbot

    08/10/2023, 6:08 PM
    This message was deleted.
    d
    r
    +4
    • 7
    • 14
  • s

    Slackbot

    08/24/2023, 3:08 PM
    This message was deleted.
    n
    a
    • 3
    • 4
  • s

    Slackbot

    10/04/2023, 9:00 PM
    This message was deleted.
    a
    • 2
    • 1
  • s

    Slackbot

    10/30/2023, 4:34 PM
    This message was deleted.
    🤘 5
    r
    • 2
    • 1
  • s

    Slackbot

    11/30/2023, 9:22 AM
    This message was deleted.
    b
    g
    • 3
    • 3
  • s

    Slackbot

    01/16/2024, 3:06 PM
    This message was deleted.
    n
    a
    • 3
    • 17
  • j

    Jonathan Pitre

    02/29/2024, 2:47 PM
    Download and install all required policy definitions files with a single command line. You're welcome 😎 EvergreenAdmx 2402 • Fixed Get-WindowsAdmxOnline version return • Improved function Get-WindowsAdmxOnline, added default parameters • Improved function Get-WindowsAdmxDownloadId, added default parameters • Improved Get-WindowsAdmx speed by switching to MSI extraction #41 • Improved Adobe admx downloads with https URLs #37 • Added admx for Microsoft Windows 11 (23H2) #38 • Added back WindowsVersion parameter as an alias for Windows11Version • Added admx for Azure Virtual Desktop #17 • Added new functions Get-Link, Get-Version and Resolve-Uri. Thanks Dan Gough! • Added new function Invoke-Download to improve download speed and get last modified date. Thanks Dan Gough! • Replaced Get-RedirectUrl function by Resolve-Uri Thanks Dan Gough! • Fixed and improved Zoom Desktop Client version and url detection. Now works on PowerShell 5.1 as well! Thanks Dan Gough! • Fixed Zoom Desktop Client admx copy to policy definitions • Fixed and improved Get-MicrosoftOfficeAdmxOnline version detection • Fixed and improved Get-MDOPAdmxOnline version detection • Improved Get-FSLogixOnline • Fixed and improved Get-OneDriveOnline, now use EvergreenApi method for version and url detection • Microsoft OneDrive now install silently • Fixed typo • Updated help
    💯 5
    👍🏼 1
    👍 3
  • m

    Marco Hofmann

    03/27/2024, 4:33 PM
    Context: Master Images for Citrix created by MDT or Packer, not talking about Patches for Clients as of now. I never got my head around PSAppDeployToolkit. I don't know why. All my Scripts look like the examples from @Eric as he helped me to get started with MDT 6 years ago. Example: https://github.com/haavarstein/Applications/blob/master/Misc/NotePadPlusPlus/Install.ps1 Today I took a just another look at PSADT via the 101 Webinar from PatchMyPC. I still can't get my head around it. I partly get it for EXE and MSI files that never or rarely change. Of course it has lots of useful helper cmdlets, and I think that's the main benefit? But what about the Evergreen stuff, like Browser and PDF Reader? My background is mainly creating Citrix master images. Are there benefits to combine those? Does anybody have some examples for me on how to combine Evergreen (@Aaron Parker) and PSADT in a meaningful way? Or would that be the wrong approach? Otherwise I will stick to the examples from Eric forever, as they just work.
    j
    d
    +2
    • 5
    • 11
  • m

    Marco Hofmann

    04/10/2024, 11:07 AM
    Question for the more experienced PowerShell scripters: In the past I think I've learned wrong how the correct way is to write status messages or log entries in a PowerShell script. What is the correct way to do this? For example: I often use Start-Transcript. Inside my functions I could use: • Write-Host • Write-Output • Write-Verbose • Write-Debug In my understanding I should use them as following: • Write-Host: To see something in the console or in the transcript • Write-Output: To make something available elsewhere • Write-Verbose: Combined with CmdletBinding to make more meaningful messages available if necessary • Write-Debug: Combined with CmdletBinding to make more meaningful messages available if necessary Is there anything to add?
    a
    • 2
    • 1
  • a

    Aaron Parker

    07/23/2024, 11:49 AM
    Would anyone have any sample code for reading/writing JSON files directly in blob storage on an Azure storage account?
  • m

    Marco Hofmann

    09/10/2024, 3:49 PM
    Upgrading our Citrix Controllers to 2402.1000 broke part of my scripts as the expected feedback changed:
    Copy code
    PS C:\Windows\system32> Get-ProvScheme
    WARNING: The names of some imported commands from the module 'Citrix.MachineCreation.PowerShellSnapIn' include
    unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the
    Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
    Does anybody know how to circumvent that? Must I now use
    Import-Module 'Citrix.MachineCreation.Commands' -DisableNameChecking
    in my scripts? Do I have to create a CTX case about that? Are others also affected? The affected CMDlets are:
    Copy code
    Import-Module 'Citrix.MachineCreation.Commands' -Verbose
    Cancel-ProvVMUpdate
    Schedule-ProvVMUpdate
    n
    • 2
    • 10
  • j

    Jarian Gibson

    09/27/2024, 8:44 PM
    Check it out!
    🎉 2
    💯 1
    d
    • 2
    • 1
  • n

    Nick Panaccio

    10/23/2024, 6:15 PM
    Anyone ever experience timeouts in Azure scripts in PS? I have a script that takes about 2.5 hours to run, and it is failing a little over 2 hours in, and I haven't been able to catch the error. Going to do more testing tomorrow, but I was wondering if it's wise to add a Connect-AzAccount to refresh the token.
  • j

    Jonathan Pitre

    12/05/2024, 5:43 PM
    A quick preview of an upcoming script template I'm working from that leverage PSADTv4 and Evergreen! I also intend to write a function to detect if the deployment is running from Intune or SCCM and another one to detect if it's running from a VDI environment. One deployment script to do it all is the end goal.
    👍 4
    👀 1
    👍🏼 1
    j
    • 2
    • 3
  • j

    Jonathan Pitre

    12/06/2024, 3:09 AM
    The best privacy first browser ADMX is broken, folks we can't let that happens. 😁 Automation never ends.
  • a

    Aaron Parker

    12/11/2024, 10:27 PM
    Does anyone know whether there's an equivalent of Bicep's
    uniqueString
    in PowerShell? For example, here's an example in Bicep code for generating a unique string based on the resource group -
    uniqueString(resourceGroup().id, location), 0, 10)
    - I'm looking to do the same via PowerShell.
    • 1
    • 1
  • b

    Balint Oberrauch

    12/15/2024, 1:20 PM
    Customer has redirected their browser profiles for Chrome and Edge to a network share. Is there any tool available that could assist admins/users in migrating the content back into the FSLogix profile? Something similar to https://bretty.me.uk/projects/EUC-Profile-Buddy/?
  • n

    Nick Panaccio

    01/23/2025, 12:08 PM
    Anyone here use the Microsoft.PowerShell.SecretManagement PS module for storing/retrieving passwords into a vault (in my case, KeePass)? Trying to figure out if the slowness I see when running Set-Secret is expected or not.
    m
    • 2
    • 2
  • j

    Jonathan Pitre

    01/31/2025, 1:42 AM
    Intune experts I need your feedback to help the PSADT team add detection support for remediations script and Win32 App. Please share your insights. Thank you. CC: @Aaron Parker @Eric https://github.com/PSAppDeployToolkit/PSAppDeployToolkit/issues/1305
    👍 2
    👍🏻 1
  • j

    Jonathan Pitre

    03/12/2025, 6:32 PM
    EvergreenADMX just accepted my pull request. Enjoy! 2503.1 • Added script parameter WindowsVersion that supports value 10, 11, 2022 and 2025 (
    breaking change
    ) • Replaced script parameter Windows10Version and Windows11Version by WindowsFeatureVersion (
    breaking change
    ) • Renamed product Microsoft Office to Microsoft 365 Apps (
    breaking change
    ) • Renamed product Azure Virtual Desktop to Microsoft AVD (
    breaking change
    ) • Renamed product FSLogix to Microsoft FSlogix (
    breaking change
    ) • Renamed product Zoom Desktop Client to Zoom (
    breaking change
    ) • Improved script parameters validation • Improved verbose logging • Fixed issues with PreferLocalOneDrive parameter • Added admx for Windows Server 2025 • Added admx for Windows Server 2022 • Added admx for Zoom VDI • Renamed functions to get url and latest version of policy definitions files from Get-$ProductAdmxOnline to Get-EvergreenAdmx%Product% • Renamed functions to download policy definitions files from Get-$ProductAdmx to Invoke-EvergreenAdmx%Product% • Added new Update-AdmxVersion function • Added admx for Brave Browser #48 Thanks Tom Plant! • Fixed scrapping for OneDrive #55 Thanks Tom Plant! • Fix Windows 11, OneDrive and 365 apps admx downloads #51 Thanks Tom Plant! • Fixed errors reported by PSScriptAnalyzer rules • Improved code formatting based on powershell and markdown best practices
    🍻 8
    🙌 1
    🙌🏻 1