Functions – output function 2 who is used in function 1 shows too late

Welcome Forums General PowerShell Q&A Functions – output function 2 who is used in function 1 shows too late

  • This topic has 1 reply, 2 voices, and was last updated 4 months ago by
    Participant
    .
Viewing 1 reply thread
  • Author
    Posts
    • #228889
      Participant
      Topics: 1
      Replies: 0
      Points: 11
      Rank: Member

      Hi,

      I’m busy with a full admin tool to manage office365 easy and quickly. I made many functions and two of them i translate all so there could be a typo.

      The function create_user asks the input from the keyboard by read-host and put this in a var. After the read-host accountname i will show the function show_license with the output from the command: write-host -f red “All licences in the tenant” and
      Get-MsolAccountSku. The first write-host works fine but Get-MsolAccountSku shows the output after confirmation question.

      Is there someone who can show me in example / explain why this goes wrong?

      • This topic was modified 4 months ago by gfrerix24.
    • #228901
      Participant
      Topics: 7
      Replies: 2458
      Points: 6,439
      Helping Hand
      Rank: Community MVP

      Gerard, welcome to Powershell.org. Please take a moment and read the very first post on top of the list of this forum: Read Me Before Posting! You’ll be Glad You Did!.

      When you post code, error messages, sample data or console output format it as code, please.
      In the “Text” view you can use the code tags “PRE“, in the “Visual” view you can use the format template “Preformatted“. You can go back edit your post and fix the formatting – you don’t have to create a new one.
      Thanks in advance.

      … but Get-MsolAccountSku shows the output after confirmation question

      You may show the “confirmation question” you get (formated as code please). Please keep in mind – we cannot see your screen and we cannot read your mind.

Viewing 1 reply thread
  • The topic ‘Functions – output function 2 who is used in function 1 shows too late’ is closed to new replies.