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

Getting a report with hidden users

Hi Guys,Exchange 2010I am trying to find all users that are hidden in exchange and that are forwarding emails to others. Or if you have something better to find disabled users forwarding email will...

View Article


How to prevent PS from saving a single command?

I want to run a command in PS, however I do not want PS to record it in the history. This is possible in bash by using  a space before the command. 

View Article


Create a zip archive then move a file to it

I've just started using Powershell and I want to create z zip archive then move a file to itCreating the zip works fine but I am having no joy moving the file to it I'm using:$zipfilename =...

View Article

Image may be NSFW.
Clik here to view.

Read each line from text file and write to excel

Hi All,I am currently working on script where I have a list of servers in a text file. Something like,server01server02server03one by one in a line. Now I want to read each line from this text file and...

View Article

Image may be NSFW.
Clik here to view.

Remote powershell script fails to execute

ExecuteCommand(Directory.GetCurrentDirectory & "\psexec \\myservername -u username-p passsword %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe") Public Sub ExecuteCommand(ByVal Command...

View Article


copy paste file or file with modifiction date from one server to other server

if file is modified on one server say on path \\server1\c$\folder\xml.txtthis file is present on other server also \\server2\c$\folder\xml.txtthose changes on server1 should reflect on server2 also or...

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

AD System Service Account Password Reset

HiToday someone in my company has reset the password of our service account. I need to know who reset the password  and at what time it was reset. Pls let me know how can i achieve this through...

View Article


Creating Windows Task Schedule

Hi all, How can I create an windows task shceduler with powershell script (2.0) at XP sp3 and W2K3 ?This task will call a .ps1Thanks a lot !!!   

View Article


Net framework version

i want know .net framework version but locally i m getting using this scripti.eGet-WmiObject -Class Win32_Product | Where-Object {$_.Name -like "Microsoft .NET*"} | Format-Table name, version output :...

View Article

Administering SharePoint 2013 with PowerShell: Site Collections

The sites and site collections of your intranet, extranet, and publishing portals make up the foundational structure for your users. A SharePoint farm can grow quickly once the site collections are...

View Article

What’s new in the SQL Server PowerShell in the SQL Server 2014 CTP1 ?

These days I decided to play around with SQL Server 2014, and of course, one of the first things I went to check was the  PowerShell Host to see if there was any difference in SQL Server 2012.Read More

View Article

Send-MailMessage Issue

Hi,I want to use Send-MailMessage in my script to send emails.When I test the command I am getting this error.Command : Send-MailMessage -From user1@xxxx.comuser1@xxxx.com -Subject "Tesdt" -Body "test...

View Article


Restart server & then email

I am trying to write a script to restart a server and then email when the restart is done.I started with this basic command:  Restart-Computer -ComputerName <string[ ]>,But I can't get it into a...

View Article

HTML Output with Color Text

Hello,    I am just beginning my powershell adventures and I am having a few issues.  I have written the below script to go out to a List of Servers and check the status for only these specific windows...

View Article


Import AD module

Hi,I have Exchange 2007 hub server (2003 64 R2), in PS exchange management shell I'm trying to run:Import-Module activedirectoryI get an error :Import-Module : The specified module 'activedirectory'...

View Article

Cannot convert result form Invoke-Command to csv type

Hi to all . I have a problem with converting results from Invoke-Command into csv type. Code below : $remoteResultEventLog += Invoke-Command -ScriptBlock { Param ( [string]$EventLogName,...

View Article


Question Reg HTML Output

Hi Experts.My actual question was answered in the below post and very well explained.http://powershell.com/cs/forums/t/12627.aspxBut the requirement what i have is bit different.$Style =...

View Article

Error warmup script for sharepoint 2007 / windows server 2003

I have a script and the spesification of the script is to warm up the iis pool for applications.So the first user that uses the server will not have to wait all day.This is a sharepoint 2007 (yes,  we...

View Article

HBA card

need hlp how to check how many HBA cards are there installed in server (windows)any script 

View Article
Browsing all 8583 articles
Browse latest View live