Solved

powershell to c# conversion help

Posted on 2012-04-12
3
566 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
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

830 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