Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Browsing all 8583 articles
Browse latest View live

Exporting User Objects to a CSV file ready for importing again?

Hi All,I am extremely new to powershell but I am working on a script to export user objects from AD - effectively taking a backup of them and then I would like to be able to restore them using csvde or...

View Article


Need IP address and Mac address and Names of all printers connected to domain

Dear all, I am trying to get a script which can fetch Names + IP + Mac addess of all the printers connected to Domainwe have 1600 Printers and 80 sitesI have got hold of few but I need to do the...

View Article


Need script to generate logs for actions on any file like creating ,...

Hi Tobias,I need a script which running once keeps on generating the readable logs for the actions like   creating , Modifying or deleting the any file in the system.It would be Grateful if you could...

View Article

install server roles with powershell

Hi All,In windows server 2008 and higher, I want to install server roles and SOME of their sub-roles with powershell. As far as I know, there are two ways to acheive this. Using...

View Article

An ASDI interface and Method question.

Hello AllHelloCan someone please help me with the following question? In some respects it is a little unusual and quirky.  I understand what went wrong and how to fix it, but there is an element I am a...

View Article


Powershell Hourly trigger

Hello, I have been readed this link : http://blogs.technet.com/b/heyscriptingguy/archive/2012/09/18/create-a-powershell-scheduled-job.aspx to create a scheduled job.But I did not find the answer to my...

View Article

Illegal characters in powershell parameter

Hello -I am a powershell novice, and I am seeking advice on how to prevent powershell from interpretting characters which I intend to be used inside of a variable.  My apologies if this answer exists...

View Article

Formating XML Output

Hello together,I have an XML-File with a content like this:<?xml version="1.0" ?> <objects> <cn>Share1</cn> <ownership> <role type="OWNER"...

View Article


invoke expression with variable paramters - 7zip

I am trying to use invoke-expression to use 7zip to unzip a file.  The parameters are variable.  I seem to have a problem that stems from what I found to be the unintuitive nature of how the double and...

View Article


Displaying a jpg or icon image, this doesn't work.

I am trying to get this to work but it won't  $Image = [system.drawing.image]::fromfile('c:\users\Public\Public Pictures\Sample Pictures\Desert.jpg')   $form = new system.windows.forms.form...

View Article

Introduction to WMI Basics with PowerShell Part 3 (WQL and Select Data Queries)

Windows Management Instrumentation Query Language also known as WQL is the language we use to express queries against WMI to extract information from it. he language is like a stripped down version of...

View Article

Managing Hyper-V with PowerShell

There's no doubt that PowerShell is Microsoft's preferred server management tool heading into the future—and for many good reasons.Read More

View Article

Powershell and psake background file watcher

Your starting a new web project and you want to use sass/less for css and require.js for javascript dependency management. Maybe you want to use jslint/jshint to verify your javascript syntax and...

View Article


PowerShell Usage in DBA Work

One challenge in a super-multiple server (say a few hundred servers) environment is to know what sql services (SSRS/SSAS/SSIS/Engine/Agent etc) are installed and what their versions and the startup...

View Article

Need help on output

I have a script below to gather Driver Name and Version from a conputer list but can't seem to get the output format I wanted in either excel or html format belowDriverNamame                 Computer1...

View Article


Import-CSV / Export-CSV with special characters / Bug?

Is there a way to make import/export-csv work with special characters? Try this:cd $homemd öttödir | select-object Name | export-csvtest.csvimport-csvtest.csvAll special characters appear as "?".  -Tobias

View Article

Clean up old files using PowerShell

I've been working on this blog for just over 6 months now, and my most popular article, by far, is about using PowerShell to extract worksheets from an Excel file. I basically took an old script idea...

View Article


Run cmd with arguments not work

"c:\jenkins\nightbuild\Setup-Application Name-8.12-#28.exe"  /c=installCmd.xml- this is working script started automatic instalacion.Im not able start this command line using PowerShell.I tryed many...

View Article

Further filter a get- on Win32_NetworkAdapterConfiguration

Hello all!I am creating a large script that sets defaults on "Active" network adapters. I have this script that works (not uncommon at all)Get-WmiObject Win32_NetworkAdapterConfiguration |...

View Article

System Center Configuration Manager Powershell Basics

Hello Configuration Manager administrators. It’s time to get acquainted with Windows PowerShell! We’ve finally introduced native Windows PowerShell support with System Center 2012 Configuration Manager...

View Article
Browsing all 8583 articles
Browse latest View live