Solved

powershell to c# conversion help

Posted on 2012-04-12
3
570 Views
Last Modified: 2012-08-13
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
Comment
Question by:freezingHot
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Expert Comment

by:PeteEngineer
ID: 37841128
0
 
LVL 8

Accepted Solution

by:
PeteEngineer earned 500 total points
ID: 37841137
0
 
LVL 1

Author Comment

by:freezingHot
ID: 37841860
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

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

707 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