Blog and Wiki Posts

IT Administration News

Site Activity

  • Glad you liked it and thanks for taking the time to leave a note of thanks. If there's a topic that you would like to read about, let me know and I'll see what I can come up with.

  • Good article. I Look forward to more.

  • Hi Adam,

    I managed to create an interactive menu, how would I get it to run some get script i have already develop example

    So I have some individual script that can get a AAD user etc and i want to use an interactive menu to give the user the option

    example below

    Write-Host "================ $Title ================"

    Write-Host "1: Press '1' Get AAD Users."
    Write-Host "2: Press '2' Get AAD Devices."
    Write-Host "3: Press '3' Get AAD Devices"
    Write-Host "Q: Press 'Q' to quit."
    $input = Read-Host "Please select a task by number Or Q to Quit"
    switch ($input)
    '1' {
    'You chose option #1'
    } '2' {
    'You chose option #2'
    } '3' {
    'You chose option #3'
    } 'q' {
    until ($input -eq 'q')

    im getting the menu option but i need to now pass the function to a menu parameter the script at the end of each action to execute my script or do i add a loop.

    any direction would be helpful


  • Bart Jacobs became a registered member 5 hours, 58 minutes ago

  • 0
  • Or at the very least you should maybe discuss the security implications of doing so, and how the exposure might be limited

  • It really sounds like something you're not supposed to do..

  • Paul became a registered member 10 hours, 47 minutes ago

  • Rick, I no longer update this blog post. The updated version is now in the wiki. Still need to add PowerShell Core, though.

  • Powershell 5 now is out for Win 7, 8, 10, 2012, 2012R2

  • Having some trouble and hope you can point me in the right direction to troubleshoot. I've successfully edited the "MakeProfile.ps1" script with my companies parameters and it has successfully created both the VPN_Profile.ps1 script as well as the VPN_Profile.xml file which look correct.

    I've then successfully run the script on a few test clients while logged in as a local admin running powershell as an admin and... successfully deployed the script via an SCCM package however under both methods, I never see a VPN profile get created or a VPN adapter created in Network connections.

    I've searched Windows application, system, etc... logs, not sure where to start troubleshooting. The Microsoft deployment guide provides a powershell command to check for successful creation which seems wrong.

    Remote Access Always On VPN Deployment Guide for Windows Server 2016 and Windows 10

    Get-WmiObject -Namespace root\cimv2\mdm\dmmap -Class MDM_VPNv2_01

    I get an error when running the command above from pg 61.

    When I run this -

    Get-WmiObject -Namespace rootcimv2mdmdmmap -Class MDM_VPNv2_01

    I get no return .

    After running the script manually as admin, teh return is:

    Always On:




    InstanceID: <CompanyName>%20AlwaysOn%VPN







    "Created <company name> Always On VPN Profile."

    Script Complete

    Appreciate suggestions/input.

    Thank you,

  • 3+
  • FSLogix would definitely help you get around this issue, but obviously it has a dollar value attached to it 🙂 Feel free to hit me up if you want more info

  • We have had the same issue on and off since we started, I opened a ticket with Microsoft to get this sorted out.  Out environment is fully patched,  All servers are server 2012 r2.  We are using RDVH servers, Also we are using Microsoft Virtual Desktops.  No Citrix or anything.  All that to say we have been working with Microsoft support to get it fixed and they actually could not help and basically said this is a known issue that only half of their customers experience and it is not high enough on the priority list for the engineers to work on fixing.  Just my thoughts on the matter.  We use a program called SIDDer to help fix the problem with it happens.  This program shows what UPD goes to which Username.  Which greatly reduces the time to fix the issue.   We have about 20 users that experience this issue on a weekly basis.  I am curious if this FSlogic product could help us in our environment.

  • MiroVasilev became a registered member 1 day, 8 hours ago

  • MiroVasilev‘s profile was updated 1 day, 8 hours ago

  • aymeric Chardon became a registered member 1 day, 11 hours ago

  • This worked man. Thank you really much.

    Greetings from Germany,

  • 0
  • Juan Debattista became a registered member 1 day, 15 hours ago

  • Renny Lui became a registered member 1 day, 16 hours ago



Please ask IT administration questions in the forum. Any other messages are welcome.

© 4sysops 2006 - 2018

Log in with your credentials


Forgot your details?

Create Account