Solved

powershell to c# conversion help

Posted on 2012-04-12
3
553 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
Comment Utility
0
 
LVL 8

Accepted Solution

by:
PeteEngineer earned 500 total points
Comment Utility
0
 
LVL 1

Author Comment

by:freezingHot
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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.
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to count occurrences of each item in an array.

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

12 Experts available now in Live!

Get 1:1 Help Now