Solved

powershell define starting point of script

Posted on 2016-10-18
1
10 Views
Last Modified: 2016-10-18
I am fairly new to this but I am writing a script in PS, I have written all my functions (below eg) but how do I tell powershell to start with the 'menu' function which then links into all the other functions....

---

Function CreateFinanceUser
{
a load of commands specific to finance users
}

Function CreateAdminUser
{
a load of commands specific to admin users
}

Function Menu
{
a menu with choice to either create a finance or admin user
}
0
Comment
Question by:Pete
1 Comment
 
LVL 82

Accepted Solution

by:
oBdA earned 500 total points
Comment Utility
Just call the function:
Function CreateFinanceUser
{
# a load of commands specific to finance users
}

Function CreateAdminUser
{
# a load of commands specific to admin users
}

Function Menu
{
# a menu with choice to either create a finance or admin user
}

Menu

Open in new window

0

Featured Post

Do email signature updates give you a headache?

Do you feel like all of your time is spent managing email signatures? Too busy to visit every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

Join & Write a Comment

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
Synchronize a new Active Directory domain with an existing Office 365 tenant
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now