Tuesday, April 7, 2015

PowerShell, VBscript and Batch information: File management Comparisons

Automation and scripting for home windows has been round ever because windows became windows.  First there were batch files, then VBscript (VBS) and now PowerShell.  sure, there have been some others along the manner however, for the most part, first rate ol' batch, VBS and PowerShell were the mainstays.  over the years, scripts have develop into no longer handiest more convenient to jot down however extra potent as smartly. You not have to be a developer to be mindful windows scripting with PowerShell.  here is top notch news for IT pros however now not all and sundry is up to snuff on the latest windows PowerShell cmdlets. For people just dipping their toe in the PowerShell pool, it's vital to have a shallow end to slowly wade into as a substitute of pushing into the deep conclusion head first.

The PowerShell "shallow end" is demonstrating the historical components of automating windows (batch and VBS) vs. the new formulation (PowerShell).  It's positive to look facet-via-side comparisons as opposed to saying "Discard that batch and VBS expertise you've realized over a couple many years. It's nugatory now."  reasonably, display an apples-to-apples assessment of quite a few issue-fixing techniques and the way to resolve them in each language.  When shown side-by-facet like this the best components will clearly exhibit via.

Let's get all started by means of specializing in file administration.  File management is a typical floor that each one methods have adventure with. We'll go over just a few events activities when managing files using each method to help you decide which is the least difficult.  We'll start from standard projects akin to managing single information the entire option to making a CSV file of a folder's contents.  Pay shut attention as the tougher the ideas get the more you'll see batch files and VBscript code wreck down whereas PowerShell will maintain a consistent ease of use.

First up is managing a single file.  in this illustration, each option seems equivalent in syntax aside from the at all times imprecise VBscript.

Batch:

copy C:\MyFile.txt C:\SomeOtherFolder

stream C:\MyFile.txt C:\SomeOtherFolder

del C:\MyFile.txt

VBscript:

Set objFs = CreateObject("Scripting.FileSystemObject")

objFs.CopyFile "C:\MyFile.txt", "C:\SomeOtherFolder\"

objFs.MoveFile "C:\MyFile.txt", "C:\SomeOtherFolder\"

objFs.DeleteFile "C:\MyFile.txt"

Powershell:

reproduction-merchandise -course 'C:\MyFile.txt' -destination 'C:\SomeOtherFolder'

circulation-item -path 'C:\MyFile.txt' -destination 'C:\SomeOtherFolder'

eradicate-item -course 'C:\MyFile.txt'

next up is getting the contents in a folder.  once more, batch and PowerShell are each one-liners but what's up with VBscript? Now you be aware of why so many VBscripters rejoiced when PowerShell came alongside.

Batch:

dir C:\

VBscript:

Set objFs = CreateObject("Scripting.FileSystemObject")

Set objFolder = objFs.GetFolder("C:\")

Set colFiles = objFolder.data

For each objFile in colFiles

    Wscript.Echo objFile.name

next

Powershell:

Get-ChildItem -direction C:\

You doubtless already comprehend how to checklist information in a folder, but what if we best need some information that healthy a particular pattern?

Batch:

dir C:\*somestringinsideafile*

VBscript:

Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")

Set colFiles = objWMIService.ExecQuery("choose * from CIM_DataFile where name LIKE 'C:\%somestringinsideafile%\'")

For each and every objFile in colFiles

    Wscript.Echo objFile.FileName

subsequent

Powershell:

Get-ChildItem -path C:\*somestringinsideafile*

once again, batch and PowerShell are very identical however VBscript goes off the rails with complexity as a result of we're forced to make use of WMI.

at last, let's in fact put each formulation to the look at various and add some complexity.  during this example, I are looking to discover the file names in a folder and then generate a report for my supervisor with these file names and the file size interior a straightforward to study CSV file.

Batch:

(for %F in (C:\*) do @echo "%~dpF","%~nxF",%~zF)>>info.csv

VBscript:

Set objFs = CreateObject("Scripting.FileSystemObject")

Set objFile = objFs.CreateTextFile("C:\data.csv")

Wscript.sleep(2000) 'Pause while file is being created

Set objFile = objFs.GetFile("C:\information.csv")

Const ForWriting = 2

Set outputFile = objFs.OpenTextFile("C:\files.csv", ForWriting)

Set objFolder = objFs.GetFolder("C:\")

Set colFiles = objFolder.information

For every objFile in colFiles

    OutputFile.Write "C:\," & objFile.identify & "," & objFile.dimension

    Wscript.Echo "C:\," & objFile.identify & "," & objFile.size

next

OutputFile.shut

PowerShell:

Get-ChildItem -route C:\ -File | select-Object directory,identify,size | Export-Csv C:\csv.csv -Append -NoTypeInformation

in case you're nonetheless scripting with batch files or VBscript this facet-through-facet evaluation should have resonated with you.  it would show that:

  • VBscript's return on time identifying the way to automate whatever thing is terrible compared to batch or PowerShell.

  • that you could take what you've discovered scripting with batch data and easily move those competencies over to PowerShell.

  • As script complexity increases, batch, and especially VBscript's code, complexity raises exponentially vs with PowerShell most effective a little.

  • make a decision for your self.  Which language is less complicated to study?  which might be less demanding to use on your everyday tasks? and at last, which language is getting greater aid these days?  when you answer these questions, the language of alternative should still be clear.

    TVU and Bitcentral mix For File switch and Asset administration

    Michael Balderston /04.06.2015 08:fifty one AM

    TVU and Bitcentral combine For File switch and Asset administration

    Integration immediately transfers info wirelessly from the container to information station

    MOUNTAINVIEW, CALIF. – Calif.-primarily based businesses TVU Networks, a company of reside cellular IP newsgathering know-how, and Bitcentral, a company of open news production, management and publishing expertise, have teamed up to bring integrated file transfer and asset management know-how.

    with the aid of combining Bitcentral's Oasis content material administration, archiving and collaboration platform and TVU's TVUPack cellular IP video transmission technology container newshounds and crews can immediately transfer information wirelessly to the Bitcentral Oasis. the usage of TVUPack's diverse statistics connections concurrently, container crews are capable of ingest uncooked video content material, edited experiences and other big information to the Bitcentral creation workflow at once. The transferred file is automatically purchasable to information directors, producers and different station personnel.

    TVU, sales space SU3605, and Bitcentral, SU4410 will screen the brand new know-how at the 2015 NAB show.

    No feedback found

    Columnists fees

    Tuesday 03:07 PMWMUR-television Says FAA Drone rules avert ENG

    The FAA's current suggestions and proposed ban on flight over people, requirement of visual line of sight and restrict on midnight flying, simply limit broadcasters from the use of united statesfor newsgathering. ~ WMUR-tv regularly occurring supervisor Jeff Bartlett

    Monday, April 6, 2015

    How MSPs Can Work with today's IT Managers

    The position of the IT supervisor ain't what it was once. There turned into a time when obligations essentially blanketed constructing a utility stack, managing the business's infrastructure, and operating company-owned machine. With the quick adoption of cloud expertise, together with cloud-primarily based file sharing, those roles and duties have changed dramatically – and it's essential for MSPs to remember this shift.

    IT managers now fill more of a relationship manager function and are ideally seen as partners by using enterprise leaders and department heads. MSPs looking to supply cloud services to customers need to understand this shift in roles in an effort to work – and be successful with – the brand new IT department.

    Russ Banham from Forbes lately outlined one of the vital issues IT professionals are doing now as a substitute of managing infrastructure. here are just a few issues IT managers are doing now that MSPs should still be organized for:

    manage backyard Contractors and MSPs

    IT isn't managing their own infrastructure, they're the use of third-celebration apps, MSPs, and SaaS to do the job. The IT manager's job becomes managing all of these outdoor elements.

    the new IT manager may be, especially for small corporations, the complete IT branch. it is extra cost effective for smaller companies to hire one grownup to manipulate the business's usage of mobile business apps, cloud platforms, SaaS, and MSPs as opposed to staffing a complete team to manipulate a built-in-condo infrastructure.

    a large part of the old IT supervisor's job was to build and maintain an in-condo server. These servers can now be replaced with a cloud-based file sharing program for a great deal less can charge and trouble as their in-condominium counterparts. highlight the fact that you and your services will also be without difficulty managed by way of their IT compared to an in-condominium server or compared to other MSPs.

    focus on Infrastructure Integration

    Now that the IT supervisor has no onsite device to hold and debug as mandatory, they've greater time to research facts and produce in new equipment to optimize their infrastructure. IT managers at the moment are focused on optimizing their infrastructure and bringing in new equipment so as to assist with that.

    whereas the functions provided with the aid of MSPs are cloud-primarily based, the programs themselves still deserve to work in the computer systems' records facilities seamlessly. Having an MSP inclined to work with the IT manager on optimal practices of integrating their systems with the business's hardware is huge step to building and keeping a long-lasting working relationship.

    evaluate technology for brand new opportunities

    With time now freed up from not having to keep a whole server and application stack, IT managers are able to research new alternatives for growth. once cloud-based mostly file sharing is introduced and successfully applied, IT managers should be extra open to jumping into different cloud functions the MSP may must offer, corresponding to cloud-based archiving or document again-up. it will make the IT supervisor's job tons simpler to have all these applied capabilities provided by means of one MSP that they already have a longtime relationship with and understand is reliable.

    Working with this new set of IT managers, it's critical for MSPs to build have faith and a recognition for reliability. they've a whole new set of tasks of their job description and a lot more on their plate. They don't have time to fret about debugging, maintaining, or fixing a misguided gadget or software. supply services they can depend upon, work with them as part of their crew, and you'll have a loyal client for all times.

    M-files Updates enterprise information administration Platform

    M-info' entertaining method organizes suggestions by means of what it's, versus a normal folder-primarily based method that depends upon the place or not it's saved.

    document administration professional M-data introduced the availability of M-files 2015, which includes the potential to create graphical workflows to enhance enterprise system efficiency.The graphical workflow editor in the updated version makes it possible for the introduction and screen of workflow processes as graphical diagrams, featuring the ability to visualize and manage complicated workflows.moreover, for organizations with regulatory or high-quality mandates, diagrams can be exported to guide compliance necessities.M-files is in line with a different strategy that organizes suggestions via what it's, in place of a traditional folder-primarily based approach that depends on where or not it's kept. In M-information, place turns into inappropriate, as an tips asset isn't during this folder or that one, however categorized with the aid of its metadata and relationships, which set up context and relevance for the suggestions asset. as an example, a notion is important because it is regarding the consumer, and while this approach is designed to convey greater consequences involving how advice is prepared, managed and processed, a big driver within the company's construction strategy involving ease of use is that it presents a simpler and greater intuitive strategy for the user."doc administration and information management is becoming more complex for businesses as a result of the ever-expanding quantity of content that's created after which frequently managed in disconnected systems and guidance silos," Greg Milliken, vice chairman of advertising, advised eWEEK. "organizations rely on fast access to present assistance to make smarter and faster decisions to force increase and profitability and to benefit competitive competencies. however, many agencies are drowning in a sea of information that grows larger and greater daily."The platform also aspects better replication capabilities that deliver stronger assist for company continuity and hybrid cloud deployments. The replication capabilities in this release permit groups with either cloud or on-premises M-files deployments to leverage free cloud storage, powered with the aid of Microsoft Azure, to store and control opt for data to the cloud to ensure content material is secured, protected and obtainable.additional new features and capabilities in M-information 2015 encompass extra potent mobile app information administration capabilities.The cell apps permit remote laborers to create, edit, share and technique advice on the go, and M-information cell app capabilities include the capability to create new objects, such as documents, consumers and debts, edit files, share data with others and access documents in offline mode.M-info mobile apps may also be downloaded for free for iPhone, iPad, Android and home windows telephone devices."the use of mobile contraptions within the enterprise for having access to, sharing and processing files and different tips is becoming increasingly pervasive," Mi lliken noted. "further and further organizations are getting at ease with permitting their workforce to use mobile contraptions for doc management and method management-related activities."From featuring at ease cellular access to even the most sensitive and mission-important information, to streamlining workflows and automating compliance tactics, companies in a big range of industries are increasingly leveraging and depending on mobile technology to make their staffs extra productive while protecting handle over personal counsel and guaranteeing compliance, Milliken stated. 

    Sunday, April 5, 2015

    PowerShell, VBscript and Batch data: File management Comparisons

    Automation and scripting for windows has been around ever since windows became home windows.  First there have been batch data, then VBscript (VBS) and now PowerShell.  certain, there were some others alongside the way but, for the most part, decent ol' batch, VBS and PowerShell had been the mainstays.  through the years, scripts have turn into not best less difficult to write but greater powerful as well. You not need to be a developer to be aware windows scripting with PowerShell.  here's first-rate news for IT professionals however not every person is up to snuff on the latest windows PowerShell cmdlets. For people simply dipping their toe in the PowerShell pool, it's critical to have a shallow end to slowly wade into as an alternative of pushing into the deep end head first.

    The PowerShell "shallow end" is demonstrating the historical formulation of automating home windows (batch and VBS) vs. the brand new formulation (PowerShell).  It's helpful to peer side-by means of-facet comparisons in preference to announcing "Discard that batch and VBS skills you've discovered over a pair many years. It's nugatory now."  reasonably, display an apples-to-apples assessment of various problem-fixing options and how to solve them in each and every language.  When shown aspect-by way of-side like this the most effective method will certainly show via.

    Let's get started through specializing in file management.  File administration is a common floor that each one methods have journey with. We'll go over a couple of hobbies activities when managing info the usage of each and every components to let you decide which is the simplest.  We'll start from fundamental initiatives comparable to managing single files all the way to making a CSV file of a folder's contents.  Pay close attention as the tougher the ideas get the more you'll see batch data and VBscript code spoil down whereas PowerShell will keep a constant ease of use.

    First up is managing a single file.  in this instance, each and every alternative seems equivalent in syntax other than the all the time imprecise VBscript.

    Batch:

    reproduction C:\MyFile.txt C:\SomeOtherFolder

    movement C:\MyFile.txt C:\SomeOtherFolder

    del C:\MyFile.txt

    VBscript:

    Set objFs = CreateObject("Scripting.FileSystemObject")

    objFs.CopyFile "C:\MyFile.txt", "C:\SomeOtherFolder\"

    objFs.MoveFile "C:\MyFile.txt", "C:\SomeOtherFolder\"

    objFs.DeleteFile "C:\MyFile.txt"

    Powershell:

    copy-item -direction 'C:\MyFile.txt' -destination 'C:\SomeOtherFolder'

    stream-merchandise -course 'C:\MyFile.txt' -destination 'C:\SomeOtherFolder'

    get rid of-item -route 'C:\MyFile.txt'

    subsequent up is getting the contents in a folder.  once more, batch and PowerShell are both one-liners however what's up with VBscript? Now you recognize why so many VBscripters had fun when PowerShell got here alongside.

    Batch:

    dir C:\

    VBscript:

    Set objFs = CreateObject("Scripting.FileSystemObject")

    Set objFolder = objFs.GetFolder("C:\")

    Set colFiles = objFolder.data

    For each objFile in colFiles

        Wscript.Echo objFile.name

    next

    Powershell:

    Get-ChildItem -course C:\

    You likely already know how to listing information in a folder, but what if we only want some info that in shape a specific sample?

    Batch:

    dir C:\*somestringinsideafile*

    VBscript:

    Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")

    Set colFiles = objWMIService.ExecQuery("opt for * from CIM_DataFile the place identify LIKE 'C:\%somestringinsideafile%\'")

    For each and every objFile in colFiles

        Wscript.Echo objFile.FileName

    subsequent

    Powershell:

    Get-ChildItem -course C:\*somestringinsideafile*

    once more, batch and PowerShell are very identical but VBscript goes off the rails with complexity as a result of we're forced to make use of WMI.

    ultimately, let's definitely put each and every system to the look at various and add some complexity.  in this example, I need to locate the file names in a folder and then generate a record for my manager with these file names and the file size interior a straightforward to study CSV file.

    Batch:

    (for %F in (C:\*) do @echo "%~dpF","%~nxF",%~zF)>>files.csv

    VBscript:

    Set objFs = CreateObject("Scripting.FileSystemObject")

    Set objFile = objFs.CreateTextFile("C:\info.csv")

    Wscript.sleep(2000) 'Pause while file is being created

    Set objFile = objFs.GetFile("C:\files.csv")

    Const ForWriting = 2

    Set outputFile = objFs.OpenTextFile("C:\info.csv", ForWriting)

    Set objFolder = objFs.GetFolder("C:\")

    Set colFiles = objFolder.files

    For every objFile in colFiles

        OutputFile.Write "C:\," & objFile.name & "," & objFile.measurement

        Wscript.Echo "C:\," & objFile.identify & "," & objFile.size

    next

    OutputFile.shut

    PowerShell:

    Get-ChildItem -course C:\ -File | select-Object listing,identify,length | Export-Csv C:\csv.csv -Append -NoTypeInformation

    in case you're nevertheless scripting with batch files or VBscript this side-by way of-facet evaluation should still have resonated with you.  it can display that:

  • VBscript's return on time determining a way to automate whatever is bad compared to batch or PowerShell.

  • that you may take what you've learned scripting with batch info and easily move these advantage over to PowerShell.

  • As script complexity raises, batch, and especially VBscript's code, complexity increases exponentially vs with PowerShell most effective slightly.

  • make a decision for your self.  Which language is easier to read?  which would be less difficult to make use of to your day-to-day projects? and finally, which language is getting more help at the moment?  when you answer these questions, the language of choice should be clear.

    Multi Commander 5.1 construct 1922

    Multi Commander

    Multi Commander is a multi-tabbed file supervisor it is a substitute for the general windows Explorer. It uses the very widely wide-spread and effective dual-panel layout. Multi Commander has a everything you want for your day by day works with data to make your work fast and productive.

    It has all the normal points like a file manager has like replica, circulation, rename, view. however Multi Commanders huge strength is the particular points that assist you to do advanced task with ease. Like Auto-unpacking , Auto-sorting , Browse internal archives, registry and FTP, seek file, View data and photographs and the Scripting support allow you to automate many task. And it lets you do every thing from the keyboard the use of shortcut so you can work quick and efficient.

    Multi Commander offers a big range of facets:

  • help each home windows Explorer styled keyboard/mouse setup and the regular Commander Styled keyboard/mouse setup
  • help Drag & Drop
  • copy/circulation operation guide filtering and plugin for particular condition.
  • Zip, 7Zip, Tar, Gz may also be browsed like a folder.
  • FTP, portable gadget , Registry are uncovered in the file gadget
  • Multi-Rename device with effective rename operations.
  • View textual content/logs information of ANY measurement with minimal reminiscence usage (even of the log file are many gigabytes)
  • And plenty greater.
  • What's new during this version:

  • on-line documentation can now be downloaded as PDF
  • Mouse wheel motion is forwarded to window beneath mouse cursor
  • MultiScript can now download file from the web
  • FolderTree can now filter what instruments to reveal
  • File coloring refreshes more suitable, And Font trend from coloring kept when selected.
  • Gridlines color will also be configured, and center of attention indicate color may also be pressured
  • Over a hundred and twenty+ changes on the grounds that v5.0
  • down load 32-bit: Multi Commander 5.1 construct 1922 | portable | ~8.0 MB (Freeware)down load sixty four-bit: Multi Commander 5.1 construct 1922 | transportable |link: Multi Commander home page | Multi Commander aid

    Saturday, April 4, 2015

    M-files Updates enterprise guidance administration Platform

    M-files' enjoyable approach organizes tips by way of what it is, versus a traditional folder-primarily based approach that depends upon where or not it's stored.

    document administration professional M-files introduced the availability of M-data 2015, which includes the means to create graphical workflows to boost enterprise manner effectivity.The graphical workflow editor within the up to date version enables the introduction and display of workflow tactics as graphical diagrams, presenting the skill to imagine and manage complex workflows.furthermore, for groups with regulatory or exceptional mandates, diagrams can also be exported to assist compliance requirements.M-info is in keeping with a unique approach that organizes tips by way of what it's, in preference to a normal folder-based method that depends on where it's kept. In M-data, place turns into inappropriate, as an counsel asset isn't during this folder or that one, but labeled by using its metadata and relationships, which establish context and relevance for the assistance asset. for instance, a concept is essential since it is involving the customer, and while this approach is designed to carry more desirable outcomes related to how counsel is geared up, managed and processed, a tremendous driver within the business's building approach concerning ease of use is that it offers a simpler and more intuitive strategy for the consumer."doc administration and advice management is fitting greater complicated for companies as a result of the ever-increasing volume of content material it's created after which frequently managed in disconnected programs and assistance silos," Greg Milliken, vice chairman of marketing, instructed eWEEK. "companies depend on quickly entry to present advice to make smarter and quicker selections to drive growth and profitability and to gain competitive abilities. although, many companies are drowning in a sea of suggestions that grows bigger and larger everyday."The platform also facets improved replication capabilities that give better help for enterprise continuity and hybrid cloud deployments. The replication capabilities during this unencumber permit corporations with either cloud or on-premises M-info deployments to leverage free cloud storage, powered through Microsoft Azure, to save and manage opt for files to the cloud to ensure content material is secured, protected and purchasable.further new features and capabilities in M-information 2015 consist of greater powerful cell app suggestions management capabilities.The cellular apps enable far off people to create, edit, share and process information on the go, and M-files mobile app capabilities encompass the potential to create new objects, similar to documents, valued clientele and bills, edit info, share info with others and entry files in offline mode.M-data cell apps can also be downloaded for free of charge for iPhone, iPad, Android and home windows cell gadgets."the use of mobile contraptions in the enterprise for gaining access to, sharing and processing documents and different advice is becoming increasingly p ervasive," Milliken observed. "further and further organizations are getting comfy with allowing their staff to use cell gadgets for document administration and method administration-linked actions."From presenting comfy mobile entry to even the most sensitive and mission-crucial guidance, to streamlining workflows and automating compliance processes, corporations in a big range of industries are more and more leveraging and counting on mobile technology to make their staffs greater productive whereas maintaining manage over confidential advice and making certain compliance, Milliken talked about.