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

Discover Application by Versions other than?

I am building a script that will use the get-wmiobject cmdlet using the Win32_Product class.  I am trying to do the following and getting stuck.  I am trying to find for instance any Autodesk Inventor...

View Article


Powershell Command to install a MSI with a MST

I am able to use the following commandline to install a MSI with the arguments I want{Start-Process -FilePath "msiexec.exe" -ArgumentList "/i TEST.msi /qb" -Wait -Passthru}I am unable to get the...

View Article


System.Object[] as value in CSV

Hi all, i have this:Invoke-Command -ComputerName $i.computer -ScriptBlock { Get-Eventlog -LogName system   |  Where-Object {$_.EventID -eq "6008"}  }                                 if i write it out...

View Article

Install software with powershell

Hi All,I am trying to build a script which would install some softwares one  after the other. As the exe's cannot be tuned to use with powershell, I am using something like this, invoke-expression,...

View Article

Results into array

Hello,I'm the below works fine but I'm trying to get the results into an array.Basically Write-Host $row.Item("Username") $row.Item("SizeMB"); gives me what I want on the screen but I need to get that...

View Article


Trying to create a repeating directory tree

Gents and ladies, I am trying to add multiple folders and subfolders to an existing directory tree. I can get the first level new folders added to the root level:...

View Article

Verifying .NET usage

As part of a security audit, we need to:1.  Identify versions of .NET installd.2. Document any application which is using .NETThe guidelines provided to us for (1.) is to get the version of...

View Article

get-QADUser how to display samaccountname?

Hi there,total noob here, I cant seem to figure out how to display the samaccountname in the output, I can get the name, type and DN. but Ive tried a number of methods and cant seem to display the...

View Article


check for service installed & get status, output report, almost there I think?

Howdy,I have been trying to get a script working to check for a single service and I'm getting stuck.  I have the script below which does get all services and I'm not far off, but I'm not sure how to...

View Article


How to copy the file from one computer to other computers.

Hi,I need to copy the contents of hosts file to multiple systems as i don't have dns on my lab.If anyone help me to copy the contents of hosts file to other systems or just overwrite hosts file from...

View Article

[datetime]::ParseExact questions

So, i'm working with importing a csv file and the format of the one of the columns is 08/15/2013 11:00 So, I am just trying a few things with no success.. Format of column is 8/15/2013 8:38First, I...

View Article

How to exclude an OU during a search?

I have this code that works to move old computer accounts to an inactive OU.   $Inactive_computer_OU = 'OU=InactiveComputers,DC=Acme,DC=com'$sourceOU =...

View Article

Make `n to create a new line for redirected output

HelloI have a string as below:$String = "Test1`nTest2"While printing to screen, I have 2 lines. But on redirection I get one line.Code: $String >> Log.logOutput for Log.log: Test1Test2How can I...

View Article


Get process

hi by using this script i am getting process detail i.e as below  Get-Process | Out-File -Append c:\test.txtissue is i hve to run separtly in all severs one by one and which take lot of time. i tired...

View Article

delete only pst Files from Exchange Users

Hello, i'm trying to create a backup script for my exchange server. I want to export all mailboxes with these script. I have two folders with read/write permissions for the Exchange Trusted...

View Article


Creating MultiUsers with PS

HELLO ALL! I'm new with all this staff and i know some basic functions.i want to know how can i write script for creating users. i mean that when i run the script the PC just ask me for the FirstName...

View Article

Connect PowerShell to Oracle 7.3

I need to connect from PowerShell V2 or V3 to an old Oracle DB V7.3.Can I do this and what do I need?Thank You!!--Goo

View Article


Replace output csv from commas to zero

I have a script that outputs csv with number of user per app122,22,3,4,6Then it imported into sql table which works If the output csv contains commas instead of a number if fails because the sql table...

View Article

Run a PowerShell Command as a different user not the script

I am building a GUI to get-GPResulantSetOfPolicyI want to open the GUI as myself but run the following command as a User Account that is in the Domain Admins group. Here is my cmd for getting the...

View Article

Script WIll not Run as Scheduled Task

Hello,I have  script that runs fine in ISE but when I try to run it as a scheduled task nothing happens. I am trying to output the results of test-connection to Excel. The point of the script is to...

View Article
Browsing all 6937 articles
Browse latest View live