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

Script for file update on two storage location

 I want to run a script for file update on two storage location. Currently I am running a copy script from Server1 to Storage1 & 2. So if anybody put any doc file on server1 it’s automatically get...

View Article


How run cmd script from powershel using variable with spaces.

I am trying to run cmd script from powershell using variables.If variable contains no spaces script works well, what should I do?My script (c:\scripts\script.cmd):C:\scripts\sed\sed.exe -T -n -e...

View Article


New-GPO

I need create about 60 new GPO Objects and I found this web site  http://technet.microsoft.com/en-us/library/ee461027.aspx  and on it I see the NEW-GPO command.   When I execute this command I get this...

View Article

How to use Powershell script to unmanage the multiple nodes

I am trying to use PowerShell script to unmanage the testweb5 and the testweb6 nodes in Solarwinds using for loop. I got something below but I am not sure of the syntax. Please help ...For ($i=5;...

View Article

Exporting Distribution Group Members

I am trying to run the following script but it gives me a message about Input being NULL.  What am I missing? $report=foreach($i in Get-DistributionGroup | where {$_.Name -like '*equity*'}) {...

View Article


Xml filter

hi Sir,pls,  have probleme to collect after filtering the items:count member:$Xcount = ($Xreconnect.reconnect.city | ? {($_.name -and $_.av -eq "BAO")}).count# filter:                    foreach...

View Article

Wrong encoding on PowerShell Invoke-WebRequest POST

I'm using Invoke-WebRequest POST method to send an text data. After sendingthetextin the post body is wrong.$postData = "žluťoučký kůň úpěl ďábelské ódy" Invoke-WebRequest -Uri...

View Article

Application Installation Using PowerShell

Hi All,Good Day to all. Iam new to PowerShell (just started using it)...Iam trying to install an application using powershell, but iam unable to get the status in text format (like installation...

View Article


Import user from a csv file to field department

HyCan somebody help me I have a csv file inside I have Samaccountname and department and I would like to put the information in the AD for everyusers I have in my csv fileThanks Nathalie

View Article


How to get MS Office product key

Hello all, I would like to ask if is possible to get MS Office Product key from registry using powershell. I have one script which gets Windows Product key I need same think for office. Is it possible...

View Article

Adding text to multiple files

I'm trying to update dozens of different files with the same information and then save each individual file out to a different filename.  I'm currently doing this on a UNIX server but need to do it...

View Article

Used Disk Space

Hi Masters, I would like to get "remotely" more servers Disk infos as: Diskname,WholeDiskSize,FreeSpace,UsedDiskSpace.What I have done until now:function Get-FreeSpace {gwmi win32_volume -Filter...

View Article

Powershell in a Month Day 15 – Jobs

This is part of my Powershell Challenge, to learn more about PowerShell (PoSh) using the Learn Windows Powershell 3 in a Month of Lunches book by Don Jones.Read More

View Article


Retrieving Status Through PowerShell's Graphical Windows Form

Prof. PowerShell is back with another alternative for displaying status messages in PowerShell.Read More 

View Article

Adding AD Global groups to Domain Local via PS script.

Hi everyone.I have already posted a task here about cloning all AD global groups to AD Domain Local groups, and some members here have helped me correct my script so now it runs normally. Now I need to...

View Article


Need help with creating local user accounts from Excel spreadsheet by using...

Hello,I am new to Powershell and I am currently working as a coop student. I need to know the correct script of how can I read the spreadsheet containing user accounts by Powershell scripting. I don't...

View Article

Function for CRC16

HiCould any one post a function which generates a Hexa Decimal CRC16 Polynom 0x8005I have verified what would be the correct results with an online calculator.Data sequence : 123456789Result:BB3DI am...

View Article


Batch file execution with PowerShell Question

I run scripts in folders - Each folder(Build 01, Build 02 etc) contains a batch file that executes the ps1 file in that particular folder.  I would like to have a batch file that executes each ps1 file...

View Article

Make a variable runable

Tried searching the forum but I dont really know how to search for this, Sorry if its been asked.  Trying to make a variable as part of a script.  Very simplified example would be:$Command = Read-Host...

View Article

Registering an Incompatible VM with PowerShell Rate This

If you have ever tried to register a virtual machine in Hyper-V Manager, and the virtual machine was not compatible with your current computer, you would have seen something like this:Read More

View Article
Browsing all 6937 articles
Browse latest View live