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

merge 2 files with powershell?

I have 2 filesA.txtthis is a test line 1 A fileThis is 2nd line A fileThis is end lines A file B.txtThis is 1st line B file This is 3rd lines B fileThis is 4rd lines.....This is 1000 lines+ in B...

View Article


DBA with PowerShell = What task?

Goal: Understand better how a DBA use PowerShell in his/here daily work. Problem: I really don't understand what specific assignment does a DBA use PowerShell in order to complete task or assignment...

View Article


What PowerShell can be used For Business Intelligence

Goal: Understand better how and why PowerShell can be used in business intelligence. Problem: I really don't understand what specific assignment what PowerShell can be used in order to complete task or...

View Article

Try Catch with Nested ForEach

Hi ,I have the following code which checks for scheduled tasks on a list of computers and returns those which were not created by Microsoft and run as administrator. I'm trying to write any errors to...

View Article

Powershell system temperature

Hello, is it possible to get system temperature information with powershell ?  Thanks 

View Article


Find and change value of extensionAttributes

Hello, I'm trying to write a script that will find all of the expired and disabled AD accounts. So far I have that part working in my script. The second part of the script needs to look at the...

View Article

Image may be NSFW.
Clik here to view.

Making sure a Users is logged on

Hello, I am wondering if powershell would be useful for a problem that arises every so often.We have a Domain Controller that has tasks that need to run every hour, the tasks are run under a DBA...

View Article

Wanting to compare 2 separate .csv files and ouput the differences to another...

I have two .csv lists, single column.  I want to read them both, compare them, and exportthe ones that do not have a match to another ,csv file.  Obviously one list has more data/records than the...

View Article


I need to list all the Exchange server in AD

Hi,I need to list all the computer in the Active Directory which are Exchange server only.How to do that ?

View Article


Workflow output

HiI converted a foreach to a workflowworks amazingly fastonly thing is I am struggling with output a little:)this is the workflow:<div class="pscode">workflow <span...

View Article

Need script to import folder list from csv and create a zip file for each folder

Hello,I am trying to import folder list from csv and create a zip file file for each folder . For example : C:\Inetpub\vhost\site1.com C:\Inetpub\vhost\site2.comand script will create a zip folder for...

View Article

March: Active Directory Health Check

Meeting Date: Thursday, March 6, 2014 - 19:00 - 20:30Read More

View Article

Out-File Question

I have this code that works on my local Windows 7 machine. (get-wmiobject win32_operatingsystem).converttodatetime((get-wmiobject win32_operatingsystem).installdate) but both sets of code below fail....

View Article


PowerShell script and scheduled task

Hello, I have made a script that makes some backup and then sends a confirmation email. The script works fine when run from ISE but it does not work from Task Scheduler. In Task Scheduler the result is...

View Article

Difference between workflow and module

Hi,Can anyone please explain what is the diff between workflow in posh 3.0 and module? As far as I know, the series of commands can be grouped together as workflow. when ever needed, we just call the...

View Article


Please update

Can some please update/correct the below. I am new to this. Please help(dhingraamit@hotmail.com)Thanks $ErrorActionPreference="SilentlyContinue"Stop-Transcript | out-null$ErrorActionPreference =...

View Article

Please help

 Please help and correct/update the below as I am very new to this(dhingraamit@hotmail.com)Thanks <Exec Condition = $Configuration)==testcurrent Command="PowerShell -command...

View Article


How to add source IP address in this test-connection script ?

Hi everyone,Can anyone help me to modify this script to show the source IP address ?because at the moment it is only showing the target IP address and hostname.Test-Connection server1,server2, mail...

View Article

PowerShell Tip: Never Leave the Console for OS Commands

Here's something you may not be aware of. Did you know that the majority of OS commands can be run directly from within the PowerShell window?Read More

View Article

Reset a Computer Account's Active Directory Password from the Command Line

Q: How can I reset a Windows computer account's Active Directory password from the command line?Read More

View Article
Browsing all 8583 articles
Browse latest View live