Posted by: reuben | October 4, 2009

Restarting a remote machine

I think a lot of people out there know about this already – but I wanted to write about it anyway. Restarting a remote machine via  command line tool is a very useful utility.

The shutdown command can be use via the command prompt, the remote shutdown dialog window, or in a batch file.  You can logoff, shutdown, or restart a computer with this tool.  You can even set the shutdown tool to perform a task at a certain time on certain days and to many computers at one time using a batch file. This is a good tool to easily shutdown or restart lots of computers on a network at one time.  It can also be handy for helpdesk technicians when fixing remote computers.

Shutdown via Dialog Window

To open the dialog window click start, click run, type cmd and press enter.  A black DOS looking window will open.  Type shutdown -i and press enter.  A window similar to the one below will popup.  Type the network name of the computer you want to shutdown, restart, or logoff.  In this example I will use \yourcomputer.  You can use your computer’s name to try the commands on your computer if you like. If you don’t know a computers name right click my computer, select properties, select the computer name tab.  Your computer name is listed next to full computer name. To send these commands to other computers across your network you need to have administrative privileges on those computers.  An easy way to see if you have administrative privileges on a networked computer is to try browsing to it.  Click start, click run, type \yourcomputer (replace yourcomputer with your computer’s name of course) and press enter.  If you are able to access the computer you will be able to send shutdown commands to it.  If you get asked for a password or it denies access you don’t have administrative privileges and you won’t be able to send shutdown commands to that computer.

The first thing you need to do is add which computer you want to shutdown.  Click add and type your computer name in the add computers box. You can send the command to multiple computers by pressing enter after the name of each computer and typing the name of the next computer on the next line.  Each computer needs to be on its own line. Click OK when you are finished adding the computer(s) you want to send the command to.

 051506_shutdown_1s

Under what do you want these computers to do: tell it to shutdown, restart, or logoff. If you want a box to popup on the computer(s) you are sending the command to that lets them know the computer is about to shutdown, restart, or logoff in X many seconds leave warn users of the action checked off.  If you want to change how many seconds to countdown before performing the action you can change that next to seconds. You can tell a user on the computer you are about to perform the action on why you are performing that action by typing your message in under comment.

Click OK to send the command to the computer(s).

051506_shutdown_3s
 

Shutdown Command via Command Prompt

The shutdown command becomes more flexible and automated when used from the command prompt.  To run the shutdown command from the command prompt, go to start, run, type cmd, and press enter.  In the black box (the command prompt) type shutdown and the switches you want to use with the shutdown command.  You have to use at east one switch for the shutdown command to work.

The Switches

The shutdown command has a few options called switches.  You can always see them by typing shutdown -? in the command prompt if you forget any of them.

-i: Display GUI interface, must be the first option
-l: Log off (cannot be used with -m option)
-s: Shutdown the computer
-r: Shutdown and restart the computer
-a: Abort a system shutdown
-m \computername: Remote computer to shutdown/restart/abort
-t xx: Set timeout for shutdown to xx seconds
-c “comment”: Shutdown comment (maximum of 127 characters)
-f: Forces running applications to close without warning
-d [u][p]:xx:yy: The reason code for the shutdown u is the user code p is a planned shutdown code xx is the major reason code (positive integer less than 256) yy is the minor reason code (positive integer less than 65536)
Examples

shutdown –m \computername –r –f  This command will restart the computer named computername and force any programs that might still be running to stop.

shutdown –m \computername –r –f –c “I’m restarting your computer.  Please save your work now.” –t 120  This command will restart the computer named computername, force any programs that might still be running to stop, give to user on that computer a message, and countdown 120 seconds before it restarts.

shutdown –m \computername –a  This command will abort a previous shutdown command that is in progress.

Using a Batch File

You can create a file that performs the shutdown command on many computers at one time.

In this example I’m going to create a batch file that will use the shutdown command to shut down 3 computers on my home network before I go to bed.

Open notepad and type the shutdown command to shut down a computer for each computer on the network.  Make sure each shutdown command is on its own line.  An example of what should be typed in notepad is below.

shutdown –m \computer1 –s
shutdown –m \computer2 –s
shutdown –m \computer3 -s

Now I’ll save it as a batch file by going to file, save as, change save as type to all files, give the file a name ending with .bat.  I named mine shutdown.bat.  Pick the location to save the batch file in and save it.

When you run the batch file it’ll shutdown computer1, 2, and 3 for you.

Posted by: reuben | August 27, 2009

Installing an OS on new MS VPC 2007

If you’re reading this article, chances are you’ve googled ‘ installing OS VPC 2007″ or “installing operating system on microsoft virtual pc 2007″ or…the list goes on. Either ways, I’m excited that you’re here to find out how to install an operating system on a VPC 2007. This is a pretty trivial task. But if you’ve never done this before, you could find this article useful. I was working on setting up a new SharePoint VPC and realized it would be helpful to others if I share what I encounter along the way.

Installing the new OS on Virtual PC 2007
1. First step involved is to boot the guest machine. Here, you’ll need to select the appropriate virtual machine from the list of the configured VMs as shown in the screen shot below and click Start.

boot_vm_1

2. You’ll notice the VM recognizes certain attributes like the amount of physical RAM that you allocated to it during the VM’s configuration. It also recognizes the number of hard disks allocated to the VM. You can configure a max. of 3 disks for a VM.

boot_vm_2

3. Here, we’re missing an OS on the hard disk. So the VM will boot like any other hard disk that has no operating system installed. In this case, it attempts to boot via the network. In most cases it will not succeed, unless you have some sort of RIS or other PXE-based network booting system set up on your network.

boot_vm_5

boot_vm_3

4. In your VM’s window, click CD and then Capture ISO Image and browse to the .ISO’s location, or insert a real installation media in the host’s physical CD/DVD drive.

boot_vm_4

5. Reset your VM by pressing RIGHT ALT+R, or clicking on Action > Reset.

boot_vm_6

boot_vm_7

6. After the reset, the setup process will begin.

boot_vm_8

boot_vm_9

Microsoft Virtual PC is a fantastic and easy way to deploy environments totally free of cost.

Posted by: reuben | August 27, 2009

What is Web 2.0?

The wikipedia definition of Web 2.0 is:
“web development and web design that facilitates interactive information sharing, interoperability, user-centered design and collaboration on the World Wide Web”

What this really comes down to is
1) web based communites and applications such as Facebook,
2) video hosting/sharing sites such as YouTube,
3) blogs such as those from WordPress,
4) mashups (pages using open APIs and data sources to produce results that form a new feature),
5) wikis suchs as WikiWikiWeb or Wikipedia
6) social networking sites such as Facebook and LinkedIn

It’s important to note that Web 2.0 isn’t an upgrade to the existing world wide web’s technical specifications. Rather, it’s a bunch of features collectively termed “Web 2.0″.

Web 2.0 allows users to interact with the web in more than a “read-only” manner. Instead, users can now build interactive applications that use the web as a networking platform. Applications can now be served entirely via a browser.

Sites geared toward Web 2.0 generally include the following features:
1) Search
2) Ad hoc Links
3) Authoring of content
4) Categorization of content by using Tags
5) Algorithms that leverage the web as an application platform (Extensions)
6) Use of RSS to rapidly notify subscribers about content changes via RSS

From a developer’s perspective: Asynchronous JavaScript and XML (Ajax_(programming)), Microsoft Silverlight, Adobe Flash, and Javascript/Ajax frameworks such as Yahoo! UI Library, Dojo Toolkit, Mootools, and jQuery are used as client-side/web browser technologies used in Web 2.0 development. Ajax programming uses JavaScript to upload and download new data from the web server without undergoing a full page reload. An Ajax_(programming) request is typically formatted in XML or JSON (Javascript Object Notation) format, two widely used structured data formats to retreive data without doing a “full page refresh”. When data is received via Ajax, Javascript program then uses the Document Object Model (DOM) to dynamically update the web page based on the new data, allowing for a rapid and interactive user experience.

Microsoft Silverlight and Adobe Flash are other technologies often used in Web 2.0 applications. Microsoft’s Silverlight and Adobe’s Flash are capable of doing many things which are not currently possible in HTML.

All-in-all, Web 2.0 is a very exciting realm of technologies for both – the end user and developers.

Posted by: reuben | June 24, 2009

WSS vs MOSS

I find a lot of people asking me this at times – what’s the difference between Windows SharePoint Services and MOSS (Microsoft Office SharePoint Server).

Simply put – WSS 3.0 and MOSS 2007 are collaboration tools made available by Microsoft. Both these tools are build on Microsoft’s .NET platform.

Either one or both products are used to communicate, collaborate, and share data within an organization. The most basic difference between the two solutions is the upfront investment.

Basically, WSS is the free framework that runs the underlying objects that make up “SharePoint”. MOSS is a commercial enterprise collaboration and portal application that runs on top of this WSS framework. In short, WSS is free to most companies whereas MOSS requires a minimum of software purchases and sometimes requires a hardware purchase.

Windows SharePoint Services 3.0 (WSS) ships bundled with the purchase of Windows Server 2003 or Microsoft Small Business Server 2003. This allows organizations to quickly implement WSS and setup an internal company web. The creation of sites and spaces is easy and once the underlying foundation is set up, requires little if no assistance from an organization’s IT team. Microsoft Office SharePoint Server 2007 (MOSS 2007) takes the collaborative foundation of WSS to another level. With an additional software investment, MOSS 2007 allows organizations to take the foundation laid by WSS v3.0 and expand on it. Additional features sit on top of WSS, use the core WSS framework, and extend it in such a way that is beneficial to larger companies, enterprise deployments, and portal scenarios. Below is a short list of key differentiating features and functions inherent to MOSS 2007

Older Posts »

Categories