List Info

Thread: MCPmag.com: PowerShell Operators; DNS Resolution; SBS 2008; More




MCPmag.com: PowerShell Operators; DNS Resolution; SBS 2008; More
country flaguser name
United States
2008-04-16 20:38:54
April 16, 2008
MCPmag.com News
http://MCPmag.com
MCPmag.com: PowerShell Operators; DNS Resolution; SBS 2008;
More   

============================================================
===========
THIS ISSUE SPONSORED BY:

- Putting a User in the Wrong Group Costs You Money
http://in
fo.101com.com/default.asp?id=48942

- Free Windows Server 2003 (MCSE) Training CD or Download
http://in
fo.101com.com/default.asp?id=48943

- Fax Purchasing Decision: Fax Server or Fax Service?
http://in
fo.101com.com/default.asp?id=48925
============================================================
===========

----------->>>> NOTE: GET THIS NEWSLETTER IN
HTML FORMAT <<<<-----------

You are receiving MCPmag News in text format, but you can
now receive 
this newsletter in HTML format. To change formats, go to: 

https://newsletters.1105pubs.com/nl/URMGf.do?e=nesstosharedlog.com

----------->>>> 
---------------------------------------
<<<<-----------

IN THIS ISSUE:
- Prof. PowerShell: Up Close and Personal with PowerShell
Operators 
- Redmond Radio: Microsoft, Yahoo Takeover Getting Hostile;
more 
- IT Cert/Discussions: DNS Resolution; SBS 2008; More 
- Special Offers: TechMentor Orlando; Two-Factor
Authentication

============================================================
===========
SPONSOR: Fix Your Groups -- save money and increase security

============================================================
===========
Distribution Lists and Security Groups are out of control?
Is your 
IT department manually maintaining your groups? Accurate
groups are a 
necessity in today's world. Improve productivity! Improve
security! 
Fix your groups with Imanami's Group Management Solutions. 

Free 30 Day Trial. http://in
fo.101com.com/default.asp?id=48942
============================================================
===========

PROF. POWERSHELL: Smooth Operator 

By Jeffery Hicks 

Like any console, PowerShell has its own set of operators
that allow 
you get accomplish things, such as performing mathematical 
operations, a comparison or evaluating a logical expression.

PowerShell has many operators but you will most likely make
use of 
operators from these groups:

* Arithmetic 
* Comparison 
* Assignment 
* Logical 

The Arithmetic operators are the same math operators you've
come to 
know and love in the past: * + - /

PS C:> 3.14*5
15.7
PS C:> 25/5
5
PS C:> ((17-3)+4)/(6*1.2)
2.5

By default PowerShell is case-insensitive. Although you can
make 
case-sensitive comparisons if you want and PowerShell fully
supports 
regular expressions. PowerShell's comparison operators are a
little 
different than what you may have used in the past. You can't
use the 
mathematical symbols you may be used to. All operators are
preceded 
by a dash: 

-eq (equal)
-lt (less than)
-le (less than or equal to)
-gt (greater than)
-ge (greater than or equal to)
PS C:> $var=5
PS C:> $var -eq 5
True
PS C:> $var -lt 4
False
PS C:> $var -ge 3
True

You likely already know the main assignment operator, the
equal sign. 
This operator is used to assign a value to a variable as I
did above. 
But PowerShell has a few other assignment operators which
save a 
few keystrokes: 

+= Increment by value and Assignment
-= Decrement by value and Assignment
*= Multiply by value and Assignment
/= Divide by value and Assignment
%= Modulo by value and Assignment
PS C:> $var=10
PS C:> $var+=1
PS C:> $var
11
PS C:> $var-=1
PS C:> $var
10
PS C:> $var/=2
PS C:> $var
5

Finally, logical operators are used in more complex
evaluations:

PS C:> ($var -gt 0) -and ($var -eq 10)
True
PS C:> ($var -gt 110) -and ($var -eq 10)
False
PS C:> ($var -gt 110) -or ($var -eq 10)
True

When using the -And operator, both expressions must be True
for 
the entire expression to be True. When using the -Or
operator, at 
least one of the expressions must be True for the entire 
expression to be True.

Once you get used to using -eq instead of = (which is
something 
I still catch myself doing simply out of many years of
CMD.exe 
habit), you'll find PowerShell's operators easy to use 
and understand.

To learn more about the different classes of operators, at a

PowerShell prompt type: help *operator* and then look at
each 
individual help topic.

Comment: http://mcpmag.com/columns/article.asp?editorialsid=2
578#post

Jeffery Hicks, MCSE, MCSA, is a Microsoft PowerShell MVP and

scripting guru for SAPIEN Technologies. Jeff is a 16 year IT
veteran 
who has co-authored and written several books, courseware
and 
training videos on administrative scripting and automation.
He is 
the co-author of Advanced VBScript for Microsoft Windows
Administrators (Microsoft Press) and Windows PowerShell:TFM

(SAPIEN Press). His latest is WSH and VBSCript Core:TFM
(SAPIEN Press). 

Check out MCPmag.com's column archive for more savvy tips
and tricks 
from Jeff, Greg Shields, Chris Wolf and other frequent
contributors. 
http://mcpmag.com/columns/


============================================================
===========
SPONSOR: Free Windows Server 2003 (MCSE) Training CD or
Download 
============================================================
===========
Become MCSE 2003 certified with exam prep tools from AppDev,

award-winning provider of technical learning. Get a FREE
training 
CD-ROM or download from one of our Windows Server 2003
courses 
($115 value). 

New titles now available -- get your FREE training CD-ROM or
download 
now at http://i
nfo.101com.com/default.aspx?id=48943
============================================================
===========

REDMOND RADIO for Week of April 14 
Hosted by Michael Domingo

Take a quick listen to what made news last week in the world
of 
Redmond and IT: 

* Microsoft's bid for Yahoo growing hostile 
* Microsoft issues protocol documentation 
* Windows Live OneCare 2.5 beta, Robotics Developer Studio 
  2008 CTP released 
* Small percentage of CIOs cutting 2008 IT budgets 

Plus, listen to find out how to enter the weekly Redmond 
T-Shirt Giveaway:


http://mcpmag.com/webcasts/mcpradio/radio.asp?id=287 

iTunes/iPodder listeners: Download the show automatically by
pointing 
your applet at http://mcpmag.com/rs
s/podcasts/. 

Problems listening to the podcast? Write to mdomingo1105media.com 
and describe the problem to get help. We want you to listen
if you 
want to hear it! 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~

IT/CERT DISCUSSION FORUMS: 

Need troubleshooting help? Post your questions to
MCPmag.com's 
IT/Certification Discussion Forums, where experts Andy Barkl
and 
Andy Goodman, as well as a host of regular members, can
offer 
solutions to your most difficult IT dilemmas. 

The messages are always free to read, but registration
(which is 
also free) is required to post. Go to http://mcpmag.com/forums/ 
and start posting. 

Also check out and post your questions and issues to the new

Virtualization section at 
http://mcp
mag.com/forums/default.asp?C=12. 

Check out these recent posts: 

SINGLE URL WON'T RESOLVE ON INTERNAL DNS: I set up a dynamic
DNS 
domain for a Small Business Server so users can connect to
its 
Remote Web Workplace from their homes. At home I have a
normal 
W2K3 domain set up with AD integrated DNS. When I connect a

computer directly to my cable modem outside my router, I can

resolve and connect to the SBS Remote Web Workplace. When I
take 
the same computer and connect it within my LAN on my W2K3
Active 
Directory, it can resolve all Internet traffic and URLs
EXCEPT 
the SBS Remote Web Workplace. 

NetMonitor 3.1 shows that the DNS queries are not being
resolved 
by my internal DNS, nor is this particular query for SBS
being 
forwarded. Instead I just get an error message saying... 

Read rest: htt
p://mcpmag.com/forums/forum_posts.asp?tid=4332

SBS 2008: Any word on what the size limit for the Exchange 
Information Store will be in SBS 2008? 

Comment: htt
p://mcpmag.com/forums/forum_posts.asp?tid=4346

MICROSOFT EXCHANGE OK BUT NO SHARE: SBS 2003 SP1 with MS
Exch 
6.5 -- After installing Symantic 11.0 Management console and

End-Point Protection, user can no longer access the server
for 
file share or printers. E-mail still works, but error
message 
"Server not configured for transactions" pops up
every time 
users try to contact the server. As everything from
contracts 
to job files to QuickBooks is on server, we got shut down. 
Any suggestions? 

Comment: htt
p://mcpmag.com/forums/forum_posts.asp?tid=4125

NO NETWORK ACCESS, WINLOGON.EXE AT 50%: Beginning on Monday

of last week I had 5 workstations and counting (amongst 400)

that have lost the ability to connect to and authenticate to

our network server shares or AD, but yet are able to access

the Internet. The issue is also not limited to the
individual
user profile, as our own (admin) logins on the affected 
systems also fail to reach these servers from affected 
machines.... 

Read rest: htt
p://mcpmag.com/forums/forum_posts.asp?tid=4345

Want to join the discussion? Go to http://mcpmag.com/forums/ and 
start posting. 

============================================================
===========
SPONSOR: Fax Purchasing Decision: Fax Server or Fax Service?
  
============================================================
===========
Whether you want to upgrade an existing fax server or
integrate 
production faxing with an application, using an automated
fax 
solution can help you better manage fax activity. This paper

outlines key factors to consider when determining whether to
go 
with a fax server or fax service. 

Get it today. http://in
fo.101com.com/default.asp?id=48925
============================================================
===========

SPECIAL OFFERS FOR MCPMAG.COM READERS:

** TechMentor Conference | May 12-16 | Orlando, FL
   Save $200 when you register by April 16
   
Join IT professionals for a week of deep technical content
by industry 
experts. These knowledgeable instructors will give you
techniques and 
strategies to automate, design, migrate, manage, secure and
control 
Microsoft Windows server systems. 

Save $200! Register by April 16. Download conference
brochure! 
http://i
nfo.101com.com/default.aspx?id=48404

** Webcast: "SafeWord 2008: Best Two-Factor
Authentication for 
   Your Windows Environment"

In this webcast, you?ll learn why two-factor authentication
is critical 
for your enterprise and new ways to leverage your existing
investment 
in Windows and Active Directory. 

Free Webcast Registration 
http://i
nfo.101com.com/default.aspx?id=48593

** Discounts on Windows 2008/Books at Amazon.com

Now that Windows Server 2008 is available, there are gobs of

resources to hlep you deploy at Amazon.com. Check out
"Introducing 
Windows Server 2008" http://tinyurl.com/3ca5k9 by Mitch Tulloch and 
the Microsoft Windows Server Team (Microsoft Press) and
"Windows 
Server 2008 Unleashed" http://tinyurl.com/3ca5k9 from Rand Morimoto 
et al. (Sams). Dozens more at deep discount at Amazon.com. 

You can also order Windows Server 2008 Standard Edition with
5 CALs 
http://tinyurl.com/3yk9qx along with the Windows Server 2008 
Resource Kit http://tinyurl.com/2l7w7m , both at less than retail. 

More Windows Server 2008 resources at Amazon.com. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~

FREE MAGAZINE OFFER 
Sign up today for a free yearly subscription to Redmond
magazine! 
Each issue brings you hands-on problem solving advice,
tactical tips, 
real-world reviews, news analysis and strategic insights.
Start or 
continue your FREE subscription now! 
https://subscribe.1105pubs.com/sub/MI?WP=N
EWFREE&TC=1&P=enews1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~
FREE NEWSLETTERS
We cover Enterprise Windows news, certification, security
updates, 
SQL, Java, SOA, virtualization and more. To review the
entire 
list and subscribe, click here: 

https://newsletters.1105pubs.com/nl/URMG.do?pc=R07NL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~

CONTACTING MCPMAG.COM:

NEWSLETTER FEEDBACK: Michael Domingo, Editor,
michaeldmcpmag.com

ADVERTISERS -- Want to sponsor this newsletter? Contact
Matt Morollo at mmorollo1105media.com

Microsoft Certified Professional Magazine, MCPmag.com
Redmond Media Group
16261 Laguna Canyon Road, Suite 130
Irvine, CA 92618-3608
Phone 949-265-1520
Fax   949-265-1528

Newsletter problems: RED1105service.com  

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~
UNSUBSCRIBE OR CHANGE E-MAIL ADDRESS:
https://newsletters.1105pubs.com/nl/URMGf.do?e=nesstosharedlog.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~

To review our Privacy Policy, visit our Web site at
http://www.1105
media.com/privacy.aspx

Copyright 2008 1105 Media, Inc. MCPmag.com News may only be

redistributed in its unedited form. Written permission from
the 
editor must be obtained to reprint the information contained
within 
this newsletter. mdomingo1105media.com



[1]

about | contact  Other archives ( Real Estate discussion Medical topics )