Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 579
  • Last Modified:

powershell to c# conversion help

can someone please help me convert the following powershell script file to c#?

some of it i understand; however, there are a few things that i don't understand.  i commented some stuff out (registry and active directory stuff - i know how to do this in c#).  the one function in the script is OctetToHours - this is where i need the help.

Thank you very much.
adLogonHours-PowerScript.txt
0
freezingHot
Asked:
freezingHot
  • 2
1 Solution
 
PeteEngineerCommented:
0
 
freezingHotAuthor Commented:
The first link is c# to power shell- I need it the other way.

The second link is calling a script from c#.

 

Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now