By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,983 Members | 1,110 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,983 IT Pros & Developers. It's quick & easy.

General advice

P: n/a
Hi,
I started to learn C# last year and was doing really well. Started writing
ASP.NET apps for my company, then I was pulled back into server
administration. I tried to modify an app that I wrote last year, and
realized I forgot almost EVERYTHING I've learned. It's because I had not
done it in about a year :(
I'd love to use C# in my every day work so I don't forget it again.. so,
here's my question...
Can C# be used in place of VBScript for doing Server/Network administration
stuff? I know it's extreme overkill for administrative scripting, but can
it be done? I was about to start learning vbscript for admin tasks, but if
I can do it in C#, would rather.
And if so, is there a web or papers or any info on doing this?
Tnx!
May 16 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Hello John,

Forget about vbscritps, PowerShell comming. See http://www.microsoft.com/windowsserv...l/default.mspx
it totally rocks for the scripting

J> I started to learn C# last year and was doing really well. Started
J> writing
J> ASP.NET apps for my company, then I was pulled back into server
J> administration. I tried to modify an app that I wrote last year, and
J> realized I forgot almost EVERYTHING I've learned. It's because I had
J> not
J> done it in about a year :(
J> I'd love to use C# in my every day work so I don't forget it again..
J> so,
J> here's my question...
J> Can C# be used in place of VBScript for doing Server/Network
J> administration
J> stuff? I know it's extreme overkill for administrative scripting,
J> but can
J> it be done? I was about to start learning vbscript for admin tasks,
J> but if
J> I can do it in C#, would rather.
J> And if so, is there a web or papers or any info on doing this?
J> Tnx!
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
May 16 '06 #2

P: n/a
I would actually look at power shell (monad) for your admin tasks.

Cheers,

Greg Young
MVP-C#
"John" <no@email.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Hi,
I started to learn C# last year and was doing really well. Started writing
ASP.NET apps for my company, then I was pulled back into server
administration. I tried to modify an app that I wrote last year, and
realized I forgot almost EVERYTHING I've learned. It's because I had not
done it in about a year :(
I'd love to use C# in my every day work so I don't forget it again.. so,
here's my question...
Can C# be used in place of VBScript for doing Server/Network
administration stuff? I know it's extreme overkill for administrative
scripting, but can it be done? I was about to start learning vbscript for
admin tasks, but if I can do it in C#, would rather.
And if so, is there a web or papers or any info on doing this?
Tnx!

May 16 '06 #3

P: n/a
Hi guys,
Thanks.
I did see that was coming. But also need to maintain my C# apps... so would
rather use C#.. IF it makes sense to do such? I prefer to do development
work rather than Admin work in the future anyway... but being stuck doing
admin work, I thought I could sneak in C# there by using it for the "script
jobs".

So, I assume do either scripting, or c# I guess rather than forcing one to
do the other?

Thanks again.
"John" <no@email.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Hi,
I started to learn C# last year and was doing really well. Started writing
ASP.NET apps for my company, then I was pulled back into server
administration. I tried to modify an app that I wrote last year, and
realized I forgot almost EVERYTHING I've learned. It's because I had not
done it in about a year :(
I'd love to use C# in my every day work so I don't forget it again.. so,
here's my question...
Can C# be used in place of VBScript for doing Server/Network
administration stuff? I know it's extreme overkill for administrative
scripting, but can it be done? I was about to start learning vbscript for
admin tasks, but if I can do it in C#, would rather.
And if so, is there a web or papers or any info on doing this?
Tnx!

May 16 '06 #4

P: n/a
You could write C# console applications to do specific jobs, then
string them together with scipts to perform your admin work.

Admittedly this wouldn't much help you maintain your ASP.NET skills,
but at least you'd keep your hand in with simple C# apps.

May 16 '06 #5

P: n/a
Sure you could. But you wouldn't be able to "script" it. It's compiled.
Still, you could certainly create assemblies and executables in C# to do
what you're doing with scripts now.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"John" <no@email.com> wrote in message
news:uu**************@TK2MSFTNGP04.phx.gbl...
Hi guys,
Thanks.
I did see that was coming. But also need to maintain my C# apps... so
would rather use C#.. IF it makes sense to do such? I prefer to do
development work rather than Admin work in the future anyway... but being
stuck doing admin work, I thought I could sneak in C# there by using it
for the "script jobs".

So, I assume do either scripting, or c# I guess rather than forcing one to
do the other?

Thanks again.
"John" <no@email.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Hi,
I started to learn C# last year and was doing really well. Started
writing ASP.NET apps for my company, then I was pulled back into server
administration. I tried to modify an app that I wrote last year, and
realized I forgot almost EVERYTHING I've learned. It's because I had not
done it in about a year :(
I'd love to use C# in my every day work so I don't forget it again.. so,
here's my question...
Can C# be used in place of VBScript for doing Server/Network
administration stuff? I know it's extreme overkill for administrative
scripting, but can it be done? I was about to start learning vbscript
for admin tasks, but if I can do it in C#, would rather.
And if so, is there a web or papers or any info on doing this?
Tnx!


May 17 '06 #6

P: n/a
The whole point of Power shell is that it's extensible, that means that you
can add your own 'commandlets' to the ones available with the base distro.
It's also possible to create Shell AddIn's which can be dynamically added to
the shell.
A CmdLet can be authored using any managed language and can be scripted, so
this is realy what you are ooking for.

Willy.
"John" <no@email.com> wrote in message
news:uu**************@TK2MSFTNGP04.phx.gbl...
| Hi guys,
| Thanks.
| I did see that was coming. But also need to maintain my C# apps... so
would
| rather use C#.. IF it makes sense to do such? I prefer to do development
| work rather than Admin work in the future anyway... but being stuck doing
| admin work, I thought I could sneak in C# there by using it for the
"script
| jobs".
|
| So, I assume do either scripting, or c# I guess rather than forcing one to
| do the other?
|
| Thanks again.
|
|
| "John" <no@email.com> wrote in message
| news:%2****************@TK2MSFTNGP05.phx.gbl...
| > Hi,
| > I started to learn C# last year and was doing really well. Started
writing
| > ASP.NET apps for my company, then I was pulled back into server
| > administration. I tried to modify an app that I wrote last year, and
| > realized I forgot almost EVERYTHING I've learned. It's because I had
not
| > done it in about a year :(
| > I'd love to use C# in my every day work so I don't forget it again.. so,
| > here's my question...
| > Can C# be used in place of VBScript for doing Server/Network
| > administration stuff? I know it's extreme overkill for administrative
| > scripting, but can it be done? I was about to start learning vbscript
for
| > admin tasks, but if I can do it in C#, would rather.
| > And if so, is there a web or papers or any info on doing this?
| > Tnx!
| >
|
|
May 17 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.