Quantcast
Channel: PowerShell General
Browsing all 10624 articles
Browse latest View live

adding new values to a psobject?

Hi,maybe I'm too stupid but I looked through the web for two days now and I can't find a solution.I created a PSobject and added some properties and values. it looks like this:  $script:resultall =...

View Article


Download files from Codeplex with start-bitstransfer

Hello, I'm quite new to Powershell. I want to download some files from the internet. In some cases there is no problem:Getting Windows6.1-KB974405-x64.msu from Microsoft: Start-BitsTransfer...

View Article


how to get the master OU for every user and populate it in ExtensionAttribute8

Hello All, I am working on a script to add the master OU name only to the users extensionAttribute8 but i failed to do this.e.g. I have these users distinguishedName 1-...

View Article

Call a 2nd PS, as another user and bring back paramters

Hi I'm new to PS, but not scripting in general and am trying to create a script to automate our Win7 build process.For various reasons, the machine will be built off the domain, then join itself to an...

View Article

Odd param behaviour

Hello AllCan anyone explain the following odd behaviourExample 1Param...

View Article


reboot a list of servers and output results to file.

I am new to powershell and i am trying to write a simple script that will reboot a list of machines (XP, and 7) and input the results of the reboots to a text file.  I created the below script that...

View Article

Change a .lnk target

Hi 'm fairly new to PowerShell and I' m looking for a way to use a PowerShell script to change a short cuts target from an HTTP:\\ link to C:\Windows\System32\rundll32.exe dsquery.dll,OpenQueryWindow...

View Article

Add hebrew to powershell

My mailboxes have hebrew names. When i want to view or use hebrew at the exchange it show up as gibberish. So i cannot use many of the commands. How can i set the exchange shell to use hebrew?  

View Article


Powershell and WSUS - Get-WSUSClient - possible bug?

Tim here...I am attempting to write a script that looks at my Active Directory for specific OUs where I have Policies set to run Windows Updates. I have everything working as I would want.  My issue is...

View Article


convert PSH script to LDAP format

Hello, one of our developer need my below script in the LDAP syntax and i never tried this before, would you please help me   $date=get-date -Uformat %m-%d-%y $Filepath =...

View Article

CSV piped to Convertto-XML

This works:$csv = Get-Content "c:\temp\products.csv"$obj = $csv | convertfrom-csv -Delimiter ","$xml = $obj | convertto-xml$xml.InnerXml | Out-File -Width 80 "c:\temp\products.xml"But the output is a...

View Article

Powershell is driving me insane

I am very familiar with Linux shell language, and since I am now learning Powershell, I need to show you something very basic for which, apparently, there is no workaround, and it is a bug for any...

View Article

Search Multiple Computer's Regestry

Hello, I'm very new to Powershell/scripting in general and have found this website to be a great resource. So far my Powershelling has been limited to little one liners but I now want to challenge...

View Article


Input parameters not available when calling powershell script from VBA

Hello. I am having some issues when calling a PowerShell script from within VBA. The issue seems that the input parameters to the script do not seem to have a global scope as they do when you call the...

View Article

Modify script to be recursive and save to .csv file?

I've found (on this site: http://powershell.com/cs/blogs/tobias/archive/2008/11/25/cleaning-hard-drives-and-finding-folders-total-size.aspx ) a great script dir C:\ | Where-Object { $_.PSisContainer }...

View Article


Change print que's settings

HiI have this script I found on the web to batch install printersWorking great ( server 2008 )But i want do add default settings as greyscale and duplexis that possible and if so, how?I Can live with...

View Article

Limit to the length of an array

I'm building an advanced function to parse the security log. It seems when I add a 23rd element to my array $list, the script breaks. As long as I stay at 22 or less, it works. Below is the guts of my...

View Article


Image may be NSFW.
Clik here to view.

How to create a list of files Zipped

I have a couple of huge zip files I need to report on. This was an extraction from a legacy db. There are multiple sub directories and the names are longer than 256 characters so winzip truncated the...

View Article

The specified path, file name, or both are too long

HiHoping someone can help, I've been running a script to delete files/folders and it's been running great, however recently some of the folder names have become very long and the script cannot delete...

View Article

run a command with anther user credential

Hi, I wrote a PS script that ruining a command that deal with user email.I have the admin privilege for running this command.By default the mailbox user owner and the exchange admin have privilege to...

View Article
Browsing all 10624 articles
Browse latest View live