Jump to content

Recommended Posts

Posted

Hi Guys,

 

I'm learning C#, with the aim of creating a self help IT Support app for the trust I work at.

 

So far, I've got the following features...

 

 

  • Show time and date of last reboot on main page.
  • Show Computer Name and IP addresses on main page.
  • Show tick or cross for internet and trust network connectivity on main page.
  • Links to each install of Spiceworks helpdesk (we have 3) that open within the app, also displaying IP and computer name on the page.
  • All the following are accessed by clicking buttons, not all on the same page.
    • Script to reset outlook mail profiles for all versions of outlook.
    • Call to program that can reset student passwords.
    • Script to clear icon cache.
    • Script to clear offline files cache.
    • List of phone extensions for each school in the trust.
    • Trust AUP.
    • Various guides and how to's for things like email signatures, reinstalling SIMS, accessing public calendars, using Google Drive, unblocking websites in ublock origin.
    • Installing rarely used software such as the Egress Client.
    • Script to refresh shared drives and printers.

 

I've basically been given the go ahead to roll it out this September. The only thing I need to do is add some more useful things like guides and self help scripts that could save us time.

 

Only thing is, I think I've pretty much covered all the bases for the common problems we deal with.

There are some things that I can't script, like deleting the users local profile off the machine, because you can't delete your own profile while you're logged in for example.

 

But if anyone else has some ideas, I'm all ears.

Posted

I don't know if it will work but what about delprof2.

 

User clicks a button, in background a script downloads delprof2 to a folder, but only selects the user logged in (if it can do that). Once downloaded the user is prompted to restart machine. At startup the script is run, running the delprof then deletes the script so it doesn't run again unless triggered. This could be triggered by the presence of a file in a specific location??

 

 

Wild and whacky but maybe it will work, need thoroughly testing though.

Posted

Maybe show the PC's MAC address?

Depending on your organisational structure, who to contact in the event of $MajorService failing on each site? (I'm talking about who within your team you'd go to for specific things such as Exchange, rather than who end-users would contact).

 

Beyond that it looks like a fantastic idea!

Posted (edited)

Ty for the ideas. I did look in to delprof, but it seems things are still limited because the user is currently logged in.

@Bedders, There isn't really a separation between roles in our trust. There are 7 schools and only 5+director of us IT bods. I am however going to add something like that but more general.

 

EDIT: Now that I think about it, a short line or two of powershell that would check if a user is a member of a security group would be really REALLY handy.

Edited by Weidass
Posted

The Delprof idea is good. Execute it by creating a scheduled task from you app the creates the parameters and set it to run after reboot once. This would resolve the issue of the user being logged in currently.

 

Untested sample below (taken from a working one i use)

Pass arguments for the name of the task as Tname and the TArguments, such as exclude directories names etc for delprof I.e "/d:5 /ed:admin* /U /ntuserini"

 

public void CreateSTasks(string Tname, string TArguments )

{

using (TaskService ts = new TaskService())

{

TaskDefinition td = ts.NewTask();

td.RegistrationInfo.Description = "Run DelProf";

// Create a trigger that will fire after the system boot

td.Triggers.Add(new BootTrigger() );

td.Actions.Add(new ExecAction(@"c:\delprof.exe", TArguments, null));

ts.RootFolder.RegisterTaskDefinition(Tname, td);

 

}

}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...