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.

    0
  • Good article. I Look forward to more.

    0
  • 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."
    }
    do
    {
    Show-Menu
    $input = Read-Host "Please select a task by number Or Q to Quit"
    switch ($input)
    {
    '1' {
    cls
    'You chose option #1'
    } '2' {
    cls
    'You chose option #2'
    } '3' {
    cls
    'You chose option #3'
    } 'q' {
    return
    }
    }
    pause
    }
    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

     

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

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

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

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

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

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

    0
  • 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:

    ByPassForLocal:

    DNSSuffix:

    EDPModeID:

    InstanceID: <CompanyName>%20AlwaysOn%VPN

    Lockdown:

    ParentID:./Vendor/MSFT/VPNv2

    ProfileXML:

    RememberCredentials:

    TrustedNetworkDetection:

    PSComputerName:

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

    Script Complete

    Appreciate suggestions/input.

    Thank you,

    0
  • 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

    0
  • 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.

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

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

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

    1+
  • This worked man. Thank you really much.

    Greetings from Germany,
    Norman

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

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

    1+

CONTACT US

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

Sending
© 4sysops 2006 - 2018

Log in with your credentials

or    

Forgot your details?

Create Account